thinkphp package Download URL: http://www.thinkphp.cn
I download the full version of version 3.2, unzip the following
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/58/B1/wKiom1S37KehdydoAADcIobgwc0080.jpg "title=" {% ' 1 " w$ $B 9sxne%0wba% (q.png "alt=" Wkiom1s37kehdydoaadciobgwc0080.jpg "/>
Take one of the thinkphp files to the root of the development Web site and create a portal file index.php
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/58/B1/wKiom1S37TuhdT27AABRI_xOiUM371.jpg "title=" Lkfyme %vmln]b@q$f7e ' [[y.png ' alt= ' wkiom1s37tuhdt27aabri_xoium371.jpg '/>
Entry file index.php details are as follows:
<?php/* * This document is an entry file for thinkphp, with a single entry for use by thinkphp. So you need to do some deployment work on thinkphp in this document. */#thinkPHP3.2 requires PHP 5.3+ support if (Version_compare (php_version, ' 5.3.0 ', ' lt ')) {die ("Require PHP 5.3.0 or later");} #定义安全文件 default is index.html define (' Dir_secure_filename ', ' liang.html '); #开启调度模式define (' App_debug ', TRUE); #定义公共模块的位置, The default is Commondefine ("Common_path", "./liangcommon/"); #定义与thinkPHP有关的核心框架文件目录路径 # through this constant, look for the path at a later time define (' Think_ PATH ', './thinkphp/'); #定义应用目录define ("App_path", "./home/"); #定义应用名define ("App_name", "Home"); Introduce thinkphp's entry file require Think_path. Directory_separator. " Thinkphp.php ";? >
After the first visit to the site, the following directories are automatically generated
* when the app is first accessed, the following directory structure is automatically generated *liangcommon --apply public module * |--common --Apply Public Function directory * |--conf --apply public profile directory * home * |-Home * |--conf --module configuration file directory * |- -common --module function Common directory * |--controller - -Module Controller Catalog * |--model --module model catalog * |--view --Module View file directory * |-runtime * |--cache --Template Cache Directory * |--data --Data Catalog * |--logs --Log Directory * |--temp --Cache Directory *
Specific
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/58/AE/wKioL1S372vCwCybAAJCxeqHaTA961.jpg "title=" ar]r2_ S$ri0cpqthj$ugu84.jpg "alt=" Wkiol1s372vcwcybaajcxeqhata961.jpg "/>
PHP thinkphp Learning the first step (building and understanding thinkphp entry file)