随笔分类 -  Laravel

摘要:写在前面的话:1.前提是需要使用blade模板引擎2.css js image 文件夹建在laravel 的 public 目录下面3.生成的路径默认都是相对路径A: 加载css文件 (用下面的格式把正常的link替换掉){{ HTML::style('css/custom.css') }}在页面里生成的样子如下B: 加载js文件(用下面的格式把正常的script替换掉){{ HTML::script('js/custom.js') }}在页面里生成的样子如下C: 页面里加图片(同样去掉img标签){{HTML::image('images/hot_1. 阅读全文
posted @ 2014-01-01 10:47 Debm.Zhang 阅读(5982) 评论(0) 推荐(0)
摘要:具体错误如下:Warning: require(../vendor/autoload.php) [function.require]: failed to open stream: No such file or directory in /bootstrap/autoload.php on line 17Fatal error: require() [function.require]: Failed opening required '/bootstrap/../vendor/autoload.php' (include_path='.:/php:/Applicat 阅读全文
posted @ 2013-12-31 09:26 Debm.Zhang 阅读(6036) 评论(0) 推荐(0)