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

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -