In Codeigniter 2.2.0,
We are setting the default controller as $route['default_controller'] = "welcome";
I want to replace default_controller
with some other variable name.
For example: $route['default_url'] = "welcome";
How can I change it? I think it is possible to replace the variable inside core/Router.php
.But Is that a correct approach?
是的,@ Alex是正确的...您应该将主控制器名称放入$ route ['default_controller']并使用条件将其重定向到特定的url。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.