Php/codeigniter/コマンド
提供: 初心者エンジニアの簡易メモ
モジュールなしのとき
env CI_ENV=development php ci3app/index.php Citest
class Citest extends MY_Controller { public function index() { echo 'Citest'; }
モジュールありのとき
アプリケーションpathがapplication_project_path1だったとき、Batchクラスのtestメソッドにアクセスする
CI_ENV=production php application_project_path1/index.php batch test
class Batch extends MY_Controller { public function test() { echo 'Batch'; } }