建一个独立的项目, 用php写业务的代码
在common的 config.php里, 配置前端:
//前台页面路径,这里只有html,smart方式赋值过去
'VIEW_PATH' => APP_PATH . '/../../tpl/order/',
//这里是js,css所有前端的文件
'__PUBLIC__' => 'http://stage.wangxiao.com/order',
后台处理独立的项目,把值写到view里。
前端改js,css,就可以独立上线了。