写在页首: 最近比较忙,没时间搞这些东西。今天抽出来半个多小时写这片博客,供自己和他人,一起借鉴。。 搭建laravel可谓艰难重重。。下面总结以下自己的搭建步骤: 操作系统:Mac OS X 10.9.4 最初操作系统的p...
分类:
Web程序 时间:
2014-08-12 03:42:04
阅读次数:
716
Creating the user modelFirst of all, we need to define the model that is going to be used to represent theusers of our application. Laravel already pr...
分类:
其他好文 时间:
2014-08-12 00:21:23
阅读次数:
170
Dependency Injection 依赖注入 The Problem 遇到的问题 The foundation of the Laravel framework is its powerful IoC container. To truly understand the framework, a strong grasp of the container is nec...
分类:
移动开发 时间:
2014-08-11 15:25:43
阅读次数:
387
C# 中的委托和事件文中代码在VS2005下通过,由于VS2003(.Net Framework 1.1)不支持隐式的委托变量,所以如果在一个接受委托类型的位置直接赋予方法名,在VS2003下会报错,解决办法是显式的创建一个委托类型的实例(委托变量)。例如:委托类型 委托实例 = new 委托类型(...
分类:
其他好文 时间:
2014-08-11 14:31:52
阅读次数:
207
#程序结构如下:app
routes.php
models
controllers
backend
IndexController.php
fontend
IndexController.php#后台IndexController.php<?phpnamespadceOrg\Controllers\BackEnd;
classIndexControllerextends\BaseController
{
}#前台IndexController.php<?phpnamespa..
分类:
其他好文 时间:
2014-08-07 07:27:00
阅读次数:
219
控制器布局在Laravel框架中使用模板的一种方法就是通过控制器布局。通过在控制器中指定layout属性,对应的视图会被创建并且作为请求的默认返回数据。在控制器中定义一个布局class UserController extends BaseController { /** * The ...
分类:
其他好文 时间:
2014-08-06 17:42:51
阅读次数:
248
安装opesntackmysql报错ERROR:ErrorappearedduringPuppetrun:192.168.1.103_mysql.ppError:mysqladmin-urootpassword‘f40e1dec1deb43d3‘returned1insteadofoneof[0]#rpm-qa|grep-imysqlmysql-server-5.1.71-1.el6.x86_64perl-DBD-MySQL-4.013-3.el6.x86_64mysql-5.1.71-1.el6.x..
分类:
数据库 时间:
2014-08-05 03:08:29
阅读次数:
244
configure:error:noacceptableccfoundin$PATH解决方案:yuminstall-ygccconfigure:error:xml2-confignotfound.Pleasecheckyourlibxml2installation.解决方案:yuminstall-ylibxml2-develconfigure:error:CannotfindOpenSSL‘s<evp.h>解决方案:yuminstall-yopenssl-develc..
分类:
其他好文 时间:
2014-08-04 18:15:48
阅读次数:
213
sudo apt-get install apache2sudo apt-get install php5sudo apt-get install php5-mcrypt需要开启 mod_rewrite 模块修改 apache2 的配置文件 /etc/apache2/apache2.conf为 la...
分类:
其他好文 时间:
2014-08-04 01:51:56
阅读次数:
309
简单的一条select 语句居然还报错!
解决办法就是:去掉分号……
为什么会出现这种情况呢,因为我选的是Test Window,选择下面的SQL Window ,有没有分号都不会出错了...
分类:
其他好文 时间:
2014-08-03 12:54:05
阅读次数:
189