White page of death - loading a model |
[eluser]überfuzz[/eluser]
I'm trying to load a model from a controller, but I'm getting white page. I can't spot the error... Code: function index() public.php: Code: function get_brev()
[eluser]pistolPete[/eluser]
Does public.php only contain that one function? It should be a full model class. Enable error_reporting() in your index.php to see which PHP errors occur: Code: error_reporting(E_ALL);
[eluser]jedd[/eluser]
Also - [quote author="überfuzz" date="1257131604"] [code] $this->data['brev'] = $this->public->get_brev(); [code] [/quote] - should use upper-case model name, viz $this->Public->get_brev(), as described in the user guide. Also - of all the words you could use to name a class, a reserved word is probably not the absolute smartest choice.
[eluser]überfuzz[/eluser]
[quote author="jedd" date="1257132512"]Also - - should use upper-case model name, viz $this->Public->get_brev(), as described in the user guide. Also - of all the words you could use to name a class, a reserved word is probably not the absolute smartest choice.[/quote] I never read that part of the user_guide. ;-) I got one thing to say about public, let's keep it quite, it is embarrassing! |
Welcome Guest, Not a member yet? Register Sign In |