發(fā)表日期:2018-06 文章編輯:小燈 瀏覽次數(shù):2951
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ù):3478
日期:2018-06 瀏覽次數(shù):3297
日期:2018-06 瀏覽次數(shù):3336
日期:2018-06 瀏覽次數(shù):3321
日期:2018-06 瀏覽次數(shù):3140
日期:2018-06 瀏覽次數(shù):3362
日期:2018-06 瀏覽次數(shù):3194
日期:2018-06 瀏覽次數(shù):3301
日期:2018-06 瀏覽次數(shù):3466
日期:2018-06 瀏覽次數(shù):3204
日期:2018-06 瀏覽次數(shù):2951
日期:2018-06 瀏覽次數(shù):2994
日期:2018-06 瀏覽次數(shù):3022
日期:2018-06 瀏覽次數(shù):2682
日期:2018-06 瀏覽次數(shù):2920
日期:2018-06 瀏覽次數(shù):2763
日期:2018-06 瀏覽次數(shù):2676
日期:2018-06 瀏覽次數(shù):2861
Copyright ? 2013-2018 Tadeng NetWork Technology Co., LTD. All Rights Reserved.