时光博客

Laravel

How laravel make paginator with pretty URLs

When we use paginator, the page URLs look like this

http://localhost/?page=1

But we want URLs like this

http://localhost/page/1

The Laravel 4.2 now is still no support this functions. According to Laravel Paginator Pretty URLs ,I do it myself.

继续阅读

如何在Win IIS平台正确部署Laravel

最近在使用一个比较有名的PHP框架

官方主页:Laravel,中文社区地址:goLaravel

其实我觉得这个需求很奇葩,自己的开发机器上使用的是PHP 5.2,因为是一个比较稳定的低版本,至少移至到各个虚拟机、租用服务器上还是很平稳的。而Laravel则需要PHP 5.4,刚好IIS7.5空闲着,于是就搭配了一下IIS7.5+PHP5.4(FastCGI模式)对于之前的Apache/Nginx+PHP5.2环境也不影响,果断踩了一些坑,这里与大家分享一下。

Laravel 运行在 Win IIS平台会提示

HTTP Error 404.0 - Not Found The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.

继续阅读

©2008-2017 - 时光博客 Ucloud

京ICP备15052479号返回顶部