自定義MVC框架-定義常量

  將一些經常使用的路徑定義成常量,便於後期維護 在入口文件中加入代碼 //定義常用常量 define("ROOT_PATH",str_replace("\\","/",getcwd()."/")); define("FRAMEWORK_PATH",ROOT_PATH."framework/"); define("APP_PATH",ROOT_PATH."application/"); 然後修改下
相關文章
相關標籤/搜索