Newbie Can't get the page load [Solved] - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Newbie Can't get the page load [Solved] (/showthread.php?tid=55274) |
Newbie Can't get the page load [Solved] - El Forum - 10-18-2012 [eluser]GabrieleMartino[/eluser] I had to set well the routes in config file. Hi, i'm trying to learn php and codeigniter therefore i suppose you will find simple my problem. I'm following the user_guide with some adaptation to what i need. I have a db with a table user with columns like email and user_name. I create a class User_model with a method to get the information from the db. After that i create a controller with a method to call the data and display them. After i create a view that catch the variable to visualize. I have no clear how to make them work bacause not header and footer are displayed. I post some code for be exaustive. I omitt what i don't think is relevant. file users_model.php in models folder: Code: class Users_Model extends CI_Model { file user.php in controllers folder Code: class Users extends CI_Controller { File user/view1.php in views folder: Code: <?php foreach ($users as $users_item): ?> |