免费视频教程地址https://laravist.com/series/laravel-5-basic 期间受到很多私事影响,终于还是要好好写写laravel的教程了。 上一篇我们说了数据库和Eloquent的基本用法,如计划一样,这一篇文章我们说说Laravel中Model,Controller, ...
分类:
Web程序 时间:
2016-04-22 23:33:50
阅读次数:
278
/**
*Resolveanarrayofcommandsthroughtheapplication.
*
*@paramarray|mixed$commands
*@return$this
*/
publicfunctionresolveCommands($commands)//functionnameisresolveCommands
{
$commands=is_array($commands)?$commands:func_get_args();//ifthecommandsisaarray,geti..
分类:
移动开发 时间:
2016-04-22 10:43:48
阅读次数:
225
/**
*Addacommandtotheconsole.
*
*@param\Symfony\Component\Console\Command\Command$command
*@return\Symfony\Component\Console\Command\Command
*/
publicfunctionadd(SymfonyCommand$command)
{
if($commandinstanceofCommand){//checkthecommandinstanceisright,
$comm..
分类:
移动开发 时间:
2016-04-21 12:04:15
阅读次数:
139
1.查 public function userTest(){ return $this->all(); } public function userTest(){ return $this->get(参数); } 2.增 public function usrAdd(){ $this->user_ ...
分类:
其他好文 时间:
2016-04-21 01:19:26
阅读次数:
205
namespaceIlluminate\Console;
useIlluminate\Contracts\Events\Dispatcher;
useIlluminate\Contracts\Container\Container;
useSymfony\Component\Console\Input\ArrayInput;
useSymfony\Component\Console\Input\InputOption;
useSymfony\Component\Console\Output\Buffere..
分类:
移动开发 时间:
2016-04-20 11:44:44
阅读次数:
236
<?php
namespaceIlluminate\Console;
useIlluminate\Support\ServiceProvider;
//mynamespace
classScheduleServiceProviderextendsServiceProvider
{//ScheduleServiceProviderextendsServiceProvider
/**
*Indicatesifloadingoftheproviderisdeferred.
*
*@varbool
*/
p..
分类:
其他好文 时间:
2016-04-20 11:43:52
阅读次数:
152
第一种: public function about(){ $name = "cai" return view("sites.about")->with('name',$name);} public function about(){ return view("sites.about")->with ...
分类:
其他好文 时间:
2016-04-19 17:24:22
阅读次数:
115
<?php
namespaceIlluminate\Console;
useIlluminate\Support\Str;
useInvalidArgumentException;
useSymfony\Component\Console\Input\InputOption;
useSymfony\Component\Console\Input\InputArgument;
//mynamespace
classParser
{
/**
*Parsethegivenconsolecommanddef..
分类:
其他好文 时间:
2016-04-19 10:22:55
阅读次数:
227
http://www.tutorials.kode-blog.com/laravel-hello-world http://www.tutorials.kode-blog.com/laravel-install-and-configure 注意: 要添加文件权限和文件所有权 # chmod 775 ...
分类:
其他好文 时间:
2016-04-18 22:25:55
阅读次数:
138
PHP框架比较
CodeIgniter
Codeigniter 相当轻量级,下载下来就能用, CI 的最大特点就是可扩展性很强 你可以通过不修改源码的方式 优雅的扩展几乎所有的东西。
thinkphp
官方文档比较全
国产的
yii
英文好点的推荐yii
Laravel
Laravel是PHP 5.3之后开发的新框架,充分使用了PHP 5.3之后的新特性,...
分类:
Web程序 时间:
2016-04-17 23:13:05
阅读次数:
313