Welcome Guest, Not a member yet? Register   Sign In
having problem creating a default controller
#6

[eluser]UdayD[/eluser]
sorry for the earlier mistake i've made.
my code is as below
Code:
class main extends Controller
{
    function main()
    {
         parent::controller();
    }

function page()
{
$this->load->view('main');
}
}
here i have a view as main.php and a controller as main.php in the controller i have a function page which i have to call when my default controller loads.
So my question is do i need to write an index funtion instead of page function. or how will my page functions get called when my user access following url
Code:
http://server.com/index.php
this url must call my page function which will load my main view.


Messages In This Thread
having problem creating a default controller - by El Forum - 06-13-2010, 11:55 PM
having problem creating a default controller - by El Forum - 06-14-2010, 01:56 AM
having problem creating a default controller - by El Forum - 06-14-2010, 01:59 AM
having problem creating a default controller - by El Forum - 06-14-2010, 02:16 AM
having problem creating a default controller - by El Forum - 06-14-2010, 02:27 AM
having problem creating a default controller - by El Forum - 06-14-2010, 03:16 AM
having problem creating a default controller - by El Forum - 06-14-2010, 03:21 AM
having problem creating a default controller - by El Forum - 06-17-2010, 07:24 AM



Theme © iAndrew 2016 - Forum software by © MyBB