PHP头条
热点:

phpcms学习总结


||||  – caches_*|||||||||||||  –  admin.|  –  index.|  –  crossdomain.|  –  robots.|  –  favicon.PHPCMS是采用MVC设计模式开发,/模块名称    phpcms//modules/模块
    'extended_1' => 'hostname' => '10.10.125.2',
        'database' => 'phpcms',
        'username' => 'admin',
        'password' => 'admin',
        'tablepre' => 'v9_',
        'charset' => 'gbk',
        'type' => 'mysql',
        'debug' => ,
        'pconnect' => 0,
        'autoconnect' => 0,?>/configs/route.<? 'default'=>('m'=>'admin', 'c'=>'index', 'a'=>'init'),
    'test.youname.com'=>('m'=>'test', 'c'=>'index', 'a'=>'init'),?>['catid'<? 'default'=>'m'=>'phpcms',
        'c'=>'index',
        'a'=>'init',
        'data'=>'POST'=>'catid'=>1,
            'GET'=>'contentid'=>1?>=2那么你在程序中使用/configs/.1.2.3.4.5.6.///:"default"/modules/模块/+.php,例如一个名为mytest的控制器,那么他的命名为mytest.1.mytest.<?
?>:
http:
2.mytest_admin.<?('IN_PHPCMS') or ('No permission resources.'::load_app_class('admin','admin',0 mytest_admin    = 'oh,i am phpcmser' ?>1.\模块名称 目录中,本示例也就在phpcms\templates\:
 template('test', 'mytest', 'default',.  = 'hello world!' template('test', 'mytest', 'default'2. ->admin_tpl('mytest_admin_list'.tpl.php,注意:后台模板必须以.tpl..  = 'oh,i am phpcmser' ->admin_tpl('mytest_admin_list'/model/+'_model.class.php'"test",首先需要建立一个数据库模型文件,文件名称为'test_model.class.php'<?('IN_PHPCMS') or ('No permission resources.'::load_sys_class('model', '', 0 test_model  ->db_config = pc_base::load_config('database'->db_setting = 'default'->table_name = 'test'::?>1.2.->db_setting = 'default'3.->table_name = 'test'->db = pc_base::load_model('test_model'<?
?>->db中所支持的方法请参照phpcms/libs/classes/model..php中方法

 

www.phpzy.comtrue/php/7863.htmlTechArticlephpcms学习总结 | | | | caches_* | | | | | | | | | | | | | admin. | index. | crossdomain. | robots. | favicon. PHPCMS 是采用MVC设计模式开发 , /模块名称 phpcms/ /modules/模块 'extended_1' = 'hostname' = '10.10.125.2', 'data...

相关文章

相关频道:

PHP之友评论

今天推荐