<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><br><br>Hi,<br><br>I'm rather new to CodeIgniter. I'm using version 2.0.3 and am using the provided .htaccess code to remove index.php from the URL. <br><br>I'm working on a control panel and would like to set up a controller for each table to keep things simple and modular. (any feedback on a better idea is much appreciated)<br><br>I was thinking I needed to configure the controllers this way<br><br>1) $route['cp/pages/(:any)'] = "cp_pages"; (would contain only controller code for managing the pages table.)<br><br>2) $route['cp/users/(:any)'] = "cp_users"; (would contain only controller code for managing the users table.)<br><br>.... other table configured with their own control panel.<br><br>3) $route['cp/'] = "cp"; (splash page and menu. If not logged in presents the log in form)<br><br>/cp/ gives me the splash page. so far so
good.<br><br>/cp/pages - cp controller - not what I was expecting. I was wanting the index function of the cp_pages controler.<br><br>/cp/pages/list/ - takes me to the cp_pages controller / index function<br><br>What I would like to configure is:<br><br>/cp/ - use cp controller<br><br>/cp/pages/ - use the cp_pages controller / index function<br>/cp/pages/add/ - use the cp_pages controller / add function <br>/cp/pages/list - use the cp_pages controller /list function<br>/cp/pages/list/10 - use the cp_pages controller /list function with segment set to 10 as starting point.<br><br>If I'm going down the wrong path please let me know.<br><br>Thank you! <br><br><br>------------------------<br>
Keith Smith</td></tr></table>