how to redirect from CI index.php to folder/index.php? |
[eluser]qwertyjjj[/eluser]
[quote author="InsiteFX" date="1329392957"] Code: $route['catalog'] = 'catalog/index'; In Contoller Code: redirect('catalog/index', 'refresh'); Sorry, I'm a bit lost on that (I've read through tutorials but still a long way to go with learning) The controller folder only has welcome.php and index.html. Do I need to make an index.php controller and then an index.php view? Where do I put $route['catalog'] = 'catalog/index'; is it application/config? I changed welcome.php in the controllers to: public function index() { redirect('catalog/index', 'refresh'); //$this->load->view('welcome_message'); } but now I just get a blank page when going to http://localhost ...or am I supposed to put the entire OSCommerce application, stylesheets, and folders into the application folder? |
Welcome Guest, Not a member yet? Register Sign In |