Questions tagged «codeigniter-2»



11
CodeIgniter:如何获取控制器,操作,URL信息
我有以下网址: http://backend.domain.com/system/setting/edit/12 http://backend.domain.com/product/edit/1 如何从这些URL获取控制器名称,动作名称。我是CodeIgniter新手。是否有任何辅助功能来获取此信息 例如: $params = helper_function( current_url() ) 哪里$params变得像 array ( 'controller' => 'system/settings', 'action' => 'edit', '...'=>'...' )
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.