![]() |
Not loading the constructor - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Not loading the constructor (/showthread.php?tid=8630) |
Not loading the constructor - El Forum - 05-25-2008 [eluser]Unknown[/eluser] Hi all. First, I would like to introduce myself. I'm a programmer from Croatia. A little bit young, but been around for 3 years now. I have done some sites using CodeIgniter (my blog, a little company site) etc. Now, to the problem. Yesterday I started a new project, and ... well, wanted to use CodeIgniter ![]() I have created a small model called Template: Code: <?php So that you can understand my problem, let's look at a simple controller: Code: <?php So the theory now ![]() When I access the url /index.php/start I get a 404 error. I've renamed the function _template() inside the controller to template(), and when accessing the url /index.php/start/template, I get the contents of the models/start.php twice (because of the template() function been called twice (inside the constructor and also manually)). But, when accessing the url /index.php/start I get nothing.. Maybe it is a simple error, but I can't find it. Help ![]() Sorry for my bad english Not loading the constructor - El Forum - 05-25-2008 [eluser]Unknown[/eluser] Solved, dear God, the index() function ![]() Not loading the constructor - El Forum - 05-25-2008 [eluser]Derek Allard[/eluser] Nitko, I've been making silly mistakes like that all week. I'm sorry to say that it won't go away no matter how much longer you program ![]() |