Welcome Guest, Not a member yet? Register   Sign In
Is there a way to route an entire controller?
#4

(08-07-2017, 01:29 PM)desbest Wrote:
(08-01-2017, 10:46 AM)skunkbad Wrote: Rewrite in .htaccess:

RewriteRule ^debate$ /main/debate [L]

Or just use CI routing.

Yes but I want to route the entire controller, not each method individually. How do I do that?

It's not possible. You may be able to come up with a RewriteRule or CI routing that uses a regular expression, but there is no magic way to do what you want to do. A CI route like this might work:

PHP Code:
$route['(debate|question)'] = 'main/$1'
Reply


Messages In This Thread
RE: Is there a way to route an entire controller? - by skunkbad - 08-07-2017, 02:35 PM



Theme © iAndrew 2016 - Forum software by © MyBB