1.初始化控制器(Initializing Controllers),Phalcon\Mvc\Controller offers the initialize method, which is executed first, before any action is executed on a co...
分类:
其他好文 时间:
2015-02-12 17:48:35
阅读次数:
171
上篇介绍了C语言开发PHP扩展的方法, 现在介绍使用Zephir开发扩展的方法.
关于Zephir需要简单介绍一下: Zephir 是为PHP开发人员提供的能够编写可编译/静态类型的高级语言.是优秀的Phalcon团队为开发第二版本框架所编写的新兴语言,其语法优雅,开发扩展非常方便,执行效率上据说是与C不分上下, 他的编译流程如下:Zephir -> C -> bin.
Zephir的目的是创...
分类:
Web程序 时间:
2015-02-10 13:31:36
阅读次数:
433
1. 从语言层面上加强了对PHP的了解,也更讨厌了。1.1 了解了当前项目的框架,这是一个和Phalcon,ThinkPHP不一样的框架。视野拓展了,该框架对多人协作更有优势(至少)。1.2 自己封装了一个类Phalcon的框架,包括ORM(支持主从),MVC,Gearman,Redis,Sphin...
分类:
其他好文 时间:
2015-02-09 17:57:09
阅读次数:
209
今天用Ajax 进行查询数据时 出现的问题Ajax 调用后 一直走Error路线 利用Error捕捉错误 error: function(XMLHttpRequest, textStatus, errorThrown) { ...
分类:
其他好文 时间:
2015-01-28 21:02:55
阅读次数:
229
1. 装好phalcon php扩展
2. 下载phalcon-devtools:https://github.com/phalcon/phalcon-devtools
或者git克隆:
git clone git://github.com/phalcon-devtools.git
3.安装:
cd phalcon-devtools
./phalcon.sh
4. 建立快捷方式
ln...
分类:
系统相关 时间:
2015-01-13 21:36:43
阅读次数:
353
1.问题:用官方的例子,首页可以正常打开,但比如说 /signup,contact/index 这样的连接都是出现404 file not find,这样的错误。以上问题在Apache web server是好的。解决方法:URL重写导致。直接访问localhost/index.php?_url=/...
分类:
Web程序 时间:
2014-12-22 22:33:47
阅读次数:
173
At first , you should download Phalcon DLL file.You can download from this link under.http://static.phalconphp.com/files/phalcon_x86_VC9_php5.3.9_1.3....
<?php
$model=newmodel();
if($model->create($data)){
$insertId=$model->getWriteConnection()->lastInsertId($model->getSource());
}
?>是的没错,就是如此的简单!
分类:
其他好文 时间:
2014-11-14 15:49:59
阅读次数:
960
phalcon是一个非常快的php框架使用的c语言编写,编译成php模块提供使用安装了phalcon之后,搭建mvc框架特别简单安装phalcon的时候注意检查下path环境变量中是不是有phpcd~/git
gitclone--depth=1git://github.com/phalcon/cphalcon.git
cdcphalcon/build
./install
extension=p..
分类:
系统相关 时间:
2014-11-05 00:38:25
阅读次数:
562
看Laravel的IoC容器文档只是介绍实例,但是没有说原理,之前用MVC框架都没有在意这个概念,无意中在phalcon的文档中看到这个详细的介绍,感觉豁然开朗,复制粘贴过来,主要是好久没有写东西了,现在确实很懒变得!首先,我们假设,我们要开发一个组件命名为SomeComponent。这个组件中现在...
分类:
Web程序 时间:
2014-11-02 16:14:41
阅读次数:
400