php - Access codeigniter controller from command line -


i'm playing around ci around php cli.

i'm able access whole ci structure via global variable $ci (followed tutorial here http://codeigniter.com/wiki/dip_into_ci/)

$ci = new $class(); $ci -> load->view ('header'); 

now works good, don't know how access controller thru $ci variable.

let's have controller called main(); i'd able :

$ci->main->myfunction($params); 

must real simple can't figure out

that's possible little crazy. use codeigniter reactor. controllers can respond command line perfectly.

https://bitbucket.org/ellislab/codeigniter-reactor

php index.php controller method param1 param2

works routing , everything.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -