<?php define("APP_PATH", realpath(dirname(__FILE__) . ‘/../‘)); /* 指向public的上一级 */ $env = get_cfg_var(‘env_type‘); if(!$env){ echo "Undefined ‘env_type‘,Please Check php.ini"; exit; } $app = new Yaf_Application(APP_PATH . "/conf/".$env."_application.ini"); $app->bootstrap(); $app->getDispatcher()->dispatch(new Yaf_Request_Simple("CLI", "Merchant", "Mer", "ingoods",));