Welcome Guest, Not a member yet? Register   Sign In
how to create a new page
#1

[eluser]macleodjb[/eluser]
I created a controller called register with the following code

Code:
class Register extends Controller {

    function Register()
    {
        parent::Controller();    
    }
    
    function index()
    {
        $data['page_title'] = "title";
        $data['page_desc'] = "register";
        $data['page_keywords'] = "keywords";
        $this->load->view('account/register', $data);
    }
}

and i created a view page called register.php under the folder account

when i go to my site it seems to redirect me to my index page. Should my function be called register?


Messages In This Thread
how to create a new page - by El Forum - 01-24-2009, 01:23 PM
how to create a new page - by El Forum - 01-24-2009, 01:42 PM
how to create a new page - by El Forum - 01-24-2009, 02:16 PM
how to create a new page - by El Forum - 01-24-2009, 02:39 PM
how to create a new page - by El Forum - 01-24-2009, 02:57 PM
how to create a new page - by El Forum - 01-24-2009, 03:12 PM



Theme © iAndrew 2016 - Forum software by © MyBB