Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] Model killing the script...
#1

[eluser]überfuzz[/eluser]
A couple of weeks ago I posted the same issue, but on an other site. Seems like loading models still puzzles me... :-(

Code:
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

Model: veckobrev.php
class Veckobrev extends Model
{
    function Veckobrev()
    {
        parent::Model();
    }

    function insert_brev()
    {
        $row = array( 'rubrik' => $this->input->post('rubrik'), 'text_unparsed' => $this->input->post('text'));
        $insert = $this->db->insert('veckobrev', $row);

        if($insert)
        {
            return TRUE;
        }
    }

}

part of controller:
Code:
$this->load->model('Veckobrev');
$this->Veckobrev->insert_brev();

When I load the model I get white screen of death. Can anyone spot the error? :-(


Messages In This Thread
[SOLVED] Model killing the script... - by El Forum - 11-14-2009, 06:05 AM
[SOLVED] Model killing the script... - by El Forum - 11-14-2009, 06:31 AM
[SOLVED] Model killing the script... - by El Forum - 11-14-2009, 07:22 AM
[SOLVED] Model killing the script... - by El Forum - 11-14-2009, 07:33 AM
[SOLVED] Model killing the script... - by El Forum - 11-14-2009, 07:38 AM



Theme © iAndrew 2016 - Forum software by © MyBB