發(fā)表日期:2018-06 文章編輯:小燈 瀏覽次數(shù):2904
1.如果要對已存在的控制器進(jìn)行二次開發(fā),為了方便升級不建議直接對內(nèi)核文件直接修改該,您可以通過"MY_*.php"的形式進(jìn)行二次開發(fā)。
例如您要對改phpcms/mood/index.php進(jìn)行二次開發(fā)。您可以在與index.php同級的目錄下建立"MY_index.php"
MY_index.php代碼如下
<?phpclass MY_index extends index{function __construct() {parent::__construct();}……your code}
日期:2018-06 瀏覽次數(shù):3429
日期:2018-06 瀏覽次數(shù):3253
日期:2018-06 瀏覽次數(shù):3298
日期:2018-06 瀏覽次數(shù):3275
日期:2018-06 瀏覽次數(shù):3083
日期:2018-06 瀏覽次數(shù):3295
日期:2018-06 瀏覽次數(shù):3121
日期:2018-06 瀏覽次數(shù):3259
日期:2018-06 瀏覽次數(shù):3410
日期:2018-06 瀏覽次數(shù):3153
日期:2018-06 瀏覽次數(shù):2903
日期:2018-06 瀏覽次數(shù):2946
日期:2018-06 瀏覽次數(shù):2949
日期:2018-06 瀏覽次數(shù):2626
日期:2018-06 瀏覽次數(shù):2876
日期:2018-06 瀏覽次數(shù):2719
日期:2018-06 瀏覽次數(shù):2631
日期:2018-06 瀏覽次數(shù):2819
Copyright ? 2013-2018 Tadeng NetWork Technology Co., LTD. All Rights Reserved.