Home>Article>Backend Development> Recommended resources for Band of Brothers ThinkPHP3.1 basic video tutorial
ThinkPHP was born to simplify enterprise-level application development and agile WEB application development. It was first born in early 2006, and was officially renamed ThinkPHP on New Year's Day 2007, and was released under the Apache2 open source agreement. ThinkPHP has been adhering to the simple and practical design principle since its birth. While maintaining excellent performance and minimal code, it also focuses on ease of use. And it has many original functions and features. With the active participation of the community team, it is continuously optimized and improved in terms of ease of use, scalability and performance.
Course playback address://m.sbmmt.com/course/383.html
The teacher’s teaching style:
The teacher’s lectures are simple, clear, layer-by-layer analysis, interlocking, rigorous argumentation, rigorous structure, and use the logical power of thinking to attract students’ attention Strength, use reason to control the classroom teaching process. The teaching skills are full of wit. Various teaching methods and techniques are readily available and can be used freely and appropriately without any trace of polishing.
The more difficult points in this video should be: grouping, page jump and ajax:
1. Multi-application configuration skills
2. Use Grouping
3. Page jump
$this->success('Query successful',U('User/test'));
$this->redirect('User/test', '',5,'The page is jumping');
4. Ajax skills
前后台公用公共配置文件: $ pwd /cygdrive/c/wamp/www/thinkphp5/Admin/Conf Administrator@QCEE61NZ66FEX2D /cygdrive/c/wamp/www/thinkphp5/Admin/Conf $ ls config.php Administrator@QCEE61NZ66FEX2D /cygdrive/c/wamp/www/thinkphp5/Admin/Conf $ cat config.php // 当前目录下的config.php,这个当前是指主入口的路径: $arr=include './config.php'; 公用配置文件: $ pwd /cygdrive/c/wamp/www/thinkphp5 Administrator@QCEE61NZ66FEX2D /cygdrive/c/wamp/www/thinkphp5 $ ls -ltr config.php -rwxrwx---+ 1 Administrators None 393 五月 9 13:14 config.php Administrator@QCEE61NZ66FEX2D /cygdrive/c/wamp/www/thinkphp5 $ cat config.php '配置值' 'TMPL_L_DELIM'=>'<{', //配置左定界符 'TMPL_R_DELIM'=>'}>', //配置右定界符 'DB_PREFIX'=>'', //设置表前缀 'DB_DSN'=>'mysql://root:1234567@192.168.32.79:3306/devops', //DSN方式配置数据库信息 'SHOW_PAGE_TRACE'=>true,//开启页面Trace /* 'URL_ROUTER_ON'=>true, 'URL_ROUTE_RULES'=>array( ':id/:num'=>'Index/index', ), */ ); ?> Administrator@QCEE61NZ66FEX2D /cygdrive/c/wamp/www/thinkphp5 thinkphp 分组机制: 'APP_GROUP_LIST' => 'Home,Admin', //项目分组设定 'DEFAULT_GROUP' => 'Home', //默认分组 在同一个应用下,再分不同的应用: $ pwd /cygdrive/c/wamp/www/thinkphp6/App/Lib/Action Administrator@QCEE61NZ66FEX2D /cygdrive/c/wamp/www/thinkphp6/App/Lib/Action $ ls Admin Home IndexAction.class.php 整个应用叫app应用: 推荐使用分应用的方式,而不是分组 分应用情况下的访问方式,多应用配置技巧: $ pwd /cygdrive/c/wamp/www/thinkphp5 Administrator@QCEE61NZ66FEX2D /cygdrive/c/wamp/www/thinkphp5 $ ls Admin admin.php config.php Home index.php ThinkPHP Home前台应用文件夹: Admin后台应用文件夹: http://localhost/thinkphp5/admin.php http://localhost/thinkphp5/index.php //页面跳转: select(); dump($arr); //分配给前台,表示为list $this->assign('list','$arr'); $this->display(); } } 前端页面:Document
<{$vo.username}> |
<{$vo.username}> |
The above is the detailed content of Recommended resources for Band of Brothers ThinkPHP3.1 basic video tutorial. For more information, please follow other related articles on the PHP Chinese website!