Welcome Guest, Not a member yet? Register   Sign In
Problem with Controller
#1

[eluser]phrozen3[/eluser]
When I use the default index function when using a controller, the website comes up perfectly. But if I call a different function in the controller, the stylesheet doesn't come up.

Example Code
------------------------------------------------------------------------

<?php

class Edit extends Controller {

function index() {
$data['PageHeader'] = "Delete User";
$this->load->view("deluser",$data);
}

function adduser() {
$data['PageHeader'] = "Add User";
$this->load->view("adduser",$data);
}
}
?>
------------------------------------------------------------------------

If I call the index page http://www.website.com/edit, it works but if I use http://www.website.com/edit/adduser, the page comes up but it doesn't recognize the stylesheet. I've also tried the _remap function and encountered the same problem.

What could be the problem?

Thanks in advance...


Messages In This Thread
Problem with Controller - by El Forum - 08-22-2007, 02:38 PM
Problem with Controller - by El Forum - 08-22-2007, 03:08 PM
Problem with Controller - by El Forum - 08-22-2007, 03:12 PM
Problem with Controller - by El Forum - 08-22-2007, 03:17 PM
Problem with Controller - by El Forum - 08-22-2007, 03:25 PM



Theme © iAndrew 2016 - Forum software by © MyBB