<?php
//+----------------------------------------------------------------------
//|ThinkPHP[WECANDOITJUSTTHINK]
//+----------------------------------------------------------------------
//|Copyright(c)2006~2016http://thinkphp.cnAllrightsreserved.
//+----..
分类:
Web程序 时间:
2016-11-24 12:18:32
阅读次数:
182
thinkphp,作为国内开源框架,一直在使用和学习。 但是实在忍不住想要吐槽一下他的开发文档,和 对初学者的不友好,建议刚接触MVC思想的人 还是尽量去使用其他框架当入门。 现在来吐槽一下thinkphp5的官方文档,也不知道是为了使程序员有动手能力和解决问题能力,写的就两个字“高深”,四个字“高 ...
分类:
Web程序 时间:
2016-11-23 16:48:57
阅读次数:
273
/**
*设置默认命令
*@returnCommand[]AnarrayofdefaultCommandinstances
*/
protectedfunctiongetDefaultCommands()
{//获取默认命令
$defaultCommands=[];//默认命令仓库
foreach(self::$defaultCommandsas$classname){
if(class_exists($classname)&&is_subclass_of..
分类:
Web程序 时间:
2016-11-23 10:18:56
阅读次数:
183
/**
*某个指令是否存在
*@paramstring$name指令名称
*@returnbool
*/
publicfunctionhas($name)
{
returnisset($this->commands[$name]);
}//判读是否拥有
/**
*获取所有的命名空间
*@returnarray
*/
publicfunctiongetNamespaces()
{
$namespaces=[];
foreach($this->c..
分类:
Web程序 时间:
2016-11-18 09:53:50
阅读次数:
258
/**
*执行指令
*@paramInput$input
*@paramOutput$output
*@returnint
*/
publicfunctiondoRun(Input$input,Output$output)
{//真正运行函数开始
if(true===$input->hasParameterOption([‘--version‘,‘-V‘])){
$output->writeln($this->getLongVersion());//写出版本..
分类:
Web程序 时间:
2016-11-17 11:01:28
阅读次数:
249
namespacethink;
usethink\console\Command;//控制台命令
usethink\console\command\HelpasHelpCommand;//帮助命令
usethink\console\Input;//输入
usethink\console\input\ArgumentasInputArgument;//输入参数
usethink\console\input\DefinitionasInputDefinition;//输入定..
分类:
Web程序 时间:
2016-11-16 09:36:50
阅读次数:
192
<?php
//+----------------------------------------------------------------------
//|ThinkPHP[WECANDOITJUSTTHINK]
//+----------------------------------------------------------------------
//|Copyright(c)2006~2016http://thinkphp.cnAllrightsreserved.
//+----..
分类:
Web程序 时间:
2016-11-15 11:35:58
阅读次数:
164
<?php
//+----------------------------------------------------------------------
//|ThinkPHP[WECANDOITJUSTTHINK]
//+----------------------------------------------------------------------
//|Copyright(c)2006~2016http://thinkphp.cnAllrightsreserved.
//+----..
分类:
Web程序 时间:
2016-11-14 10:02:45
阅读次数:
230
<?php
/**
*用法:
*load_trait(‘controller/Jump‘);
*classindex
*{
*use\traits\controller\Jump;
*publicfunctionindex(){
*$this->error();
*$this->redirect();
*}
*}
*/
namespacetraits\controller;
usethink\Config;
usethink\exception\HttpResponseExcept..
分类:
Web程序 时间:
2016-11-11 15:36:48
阅读次数:
588
升级指导 http://www.kancloud.cn/manual/thinkphp5/163239 升级指导 http://www.kancloud.cn/manual/thinkphp5/163239 从V5.0.1升级到V5.0.2 从V5.0.1升级到V5.0.2需要注意如下事项: 下列模 ...
分类:
Web程序 时间:
2016-11-09 22:21:51
阅读次数:
257