more one controller |
[eluser]danmontgomery[/eluser]
Hi Herton, You can create as many controllers as you'd like, you just use the URI structure: Quote:http://www.yourdomain.com/[controller]/[method]/[parameter] This is assuming CI is installed in webroot (/) and .htaccess is used to remove index.php For example, if you have a "News" controller and a "Blog" controller, you might access each of them this way Quote:http://www.yourdomain.com/news/view/128 The first would look for: Controller: News Method: view() Parameter: 128 The second for: Controller: Blog Method: edit() Parameter: "this-is-a-blog" You can pass as many parameters as you'd like, or define custom routing to specify how this parameters will be passed. http://ellislab.com/codeigniter/user-gui...uting.html |
Messages In This Thread |
more one controller - by El Forum - 02-15-2010, 09:01 AM
more one controller - by El Forum - 02-15-2010, 09:32 AM
more one controller - by El Forum - 02-15-2010, 11:02 AM
|