首页 > 技术文章 > CI CLI执行方式

RainLi 2016-04-20 15:16 原文

优点:不需要启动web服务器

首先定位到index.php目录

php index.php controller_name function_name $param

如果配置文件有多个需指定具体的

CI_ENV=production php index.php controller_name function_name $param

推荐阅读