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

Popular posts from this blog

Using Android Volley to post an array to PHP -

python - How to add an model instance to a django queryset? -

angularjs - No 'Access-Control-Allow-Origin' error from local domain to public API -