php - codeigniter controller -
php - codeigniter controller -
i want write new controller file, example:
aaa.php
class aaa extends ci_controller { public function bbb() { // stuff } } how can come in aaa.php's bbb(),
the illustration files begin welcome.php's index() function.
how can alter begin new controller file?
if provide nil base of operations url, ci assume want index action. localhost/foo phone call foo's index() action. localhost/foo/bar, phone call foo's bar() action. if want phone call localhost , want access foo's index(), need check $route['default_controller'] = 'foo'; correctly setup in config.php. (if that's not working, check .htaccess , index.php add together manually)
php codeigniter
Comments
Post a Comment