Php 如何在cli中运行CodeIgniter控制器,同时使用$\u GET传递值

Php 如何在cli中运行CodeIgniter控制器,同时使用$\u GET传递值,php,codeigniter,command-line-interface,Php,Codeigniter,Command Line Interface,如何在CLI(CentOS 6)中运行CodeIgniter控制器,同时通过$\u GET和/或$this->input->GET()传递值 我试着这样做: php index.php <controller_name> [<method_name>] [<parameter_1> <parameter_2> ...] php index.php[][…] 它可以工作,但我需要在控制器的方法上传递$\u GET值。在另一个方法中,使用GET参数

如何在CLI(CentOS 6)中运行CodeIgniter控制器,同时通过
$\u GET
和/或
$this->input->GET()传递值

我试着这样做:

php index.php <controller_name> [<method_name>] [<parameter_1> <parameter_2> ...]
php index.php[][…]

它可以工作,但我需要在控制器的方法上传递$\u GET值。

在另一个方法中,使用GET参数调用方法
php index.php[]
和在另一个使用GET参数调用方法的方法中的
public function method2_name(){$this->method_name($parameter1,$parameter2)}
php index.php[]
和在另一个使用GET参数调用方法的方法中的
public function method2_name(){$this->method_name($parameter1,$parameter2)}
php index.php[]
和在
public function method2_name(){$this->method_name($parameter1,$parameter2)}