Home  >  Article  >  Backend Development  >  ThinkPHP学习日记1-(配置)

ThinkPHP学习日记1-(配置)

WBOY
WBOYOriginal
2016-06-13 13:25:07892browse

ThinkPHP学习日志1-(配置)
PHP 模板技术
1.Thinkphp 学习的目的
深入学习PHP语法,与方便快捷构站。
2.Thinkphp 配置
1).下载Thinkphp(Core)文件,放在Webroot目录;
2).建立index.php,生成目录

<?php define(ROOT_PATH,'/Applications/MAMP/htdocs/ts');
    define('THINK_PATH',ROOT_PATH.'/ThinPHP');
    define('APP_PATH',ROOT_PATH.'/home');
    define('APP_NAME','home');
//调用文件
require_once(THINK_PATH.'ThinkPHP.php');
APP::run();
?>


Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn