[eluser]Jawed[/eluser]
Hi to all,
I am very new to CI.
I created a controller by the name Page2, save it with the file name page2. In this controller I made an index function that called a view and made another function that called other view. the code is as below
class Home extends Controller {
function Home()
{
parent::Controller();
$this->load->helper('url');
$this->load->helper('form');
}
function index()
{
$this->load->view('welcome_message');
}
function page2()
{
$this->load->view('page2');
}
//////////////////////////////////mail////////////////////////////////////////////
}
The view folder has both two files with the names welcome_message.php and page2.
And I put the controller name in the auto load controller. and suppose my site name is abc.com
then when i press enter after abc.com the welcome message page is called. but when I type
abc.com/page2 then enter or abc.com/home/page2/ I got a 404 error. there is no htaccess in my code. I dont know that i am missing. Please help
Thanks in advance
Jawed