Cannot load views when running xampp |
[eluser]WavyDavy[/eluser]
I am trying to follow this tutorial here and I cannot load any views. codeigniter-from-scratch-day-1/ I can echo no problems but I cant do anything else. Is my code ok or do I need to configure something in xampp? This is the code for my controller site.php; Code: <?php And this is the code for my view home.php Code: <html>
[eluser]Cro_Crx[/eluser]
Your Site controller needs to have a constructor. Like this: Code: <?php It's good practice to leave out the ending ?> tag on your code. http://ellislab.com/codeigniter/user-gui...losing_tag
[eluser]WavyDavy[/eluser]
Thanks for your reply. I tried the code you gave but unfortunately it doesnt fix the problem. Maybe there is something I need to config in the config folder or maybe this problem is a bug with 1.7.2?
[eluser]flaky[/eluser]
make this little test Code: function index() and put the result here
[eluser]flaky[/eluser]
it looks like codeigniter can't find your view, either the file name is wrong or you placed it somewhere else.
[eluser]WavyDavy[/eluser]
Its in my views folder, is that the right place for it?
[eluser]WavyDavy[/eluser]
Here is a link to a screenshot of how my folders are setup. I have tried moving the application folder back inside of the systems folder but that doesnt seem to fix it either. I will try setting up a new Codeigniter directory from scratch.
[eluser]flaky[/eluser]
Next time don't forget to mention the "small" details (that you've moved the application folder and other stuff) |
Welcome Guest, Not a member yet? Register Sign In |