摘要: if ($this->getRequest()->isPost()) { // Make certain to merge the files info! $post = array_merge_recursive( $this->getRequest()->getPost()->toArray(), $this->getRequest()->getFiles()->toArray() ); $form->setData($post); 阅读全文
posted @ 2013-05-16 13:52 徐耀湘 阅读(885) 评论(0) 推荐(0) 编辑
摘要: Controller 如何获得视图的$_POST值? 阅读全文
posted @ 2013-05-02 13:45 徐耀湘 阅读(119) 评论(0) 推荐(0) 编辑
摘要: Quenz_i997_PDA_CHS.rar 阅读全文
posted @ 2013-05-01 16:43 徐耀湘 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 关于PHP-Zend framework2 框架 学习过程。 阅前须知:ZF2中的配置文件是可以静态文件配置来注册和通过相关函数动态注册。1.EventManager(事件驱动),关于事件驱动,在ZF2相关资料没有详细说明,可以参考ANDROID的事件驱动,MFC的消息响应/事件驱动。。。EventManager是ZF2 必须了解,才能理解ZF2 MVC框架的设计。2.ModuleManager 基于ZF2的模块是可以具有独立的模块配置文件,每个模块需要预先注册到服务中才允许使用。(模块中涉及了,事件驱动,服务管理等)。3.Loader 该类从程序开始一直在使用,事事相关。在ZF2提供多套的加 阅读全文
posted @ 2013-05-01 12:45 徐耀湘 阅读(378) 评论(0) 推荐(0) 编辑
摘要: http://team.aiitec.net/?c=inbox 阅读全文
posted @ 2013-04-27 14:28 徐耀湘 阅读(101) 评论(0) 推荐(0) 编辑
摘要: http://127.0.0.1/loginapi/JsonPacket/example/loginrequestdemo.php 阅读全文
posted @ 2013-04-27 14:24 徐耀湘 阅读(119) 评论(0) 推荐(0) 编辑
摘要: http://www.mwop.net/blog/248-Introducing-the-ZF2-Plugin-Broker.htmlhttp://framework.zend.com/manual/2.1/en/modules/zend.mvc.quick-start.html 阅读全文
posted @ 2013-04-26 15:07 徐耀湘 阅读(7079) 评论(0) 推荐(0) 编辑
摘要: $user_session = new \Zend\Session\Container('user');$user_session->username = 'Andy0708'; // Write to sessionecho $username = $user_session->username; // Read from session 阅读全文
posted @ 2013-04-26 14:32 徐耀湘 阅读(178) 评论(0) 推荐(0) 编辑
摘要: One of the requirements for a new app that I'm writing is that it has a specific session name. In Zend Framework 2, this is done by creating aSessionManagerwith the correct configuration and then setting the default manager on the Session Container:use Zend\Session\Config\SessionConfig;use Zend\ 阅读全文
posted @ 2013-04-26 11:44 徐耀湘 阅读(180) 评论(0) 推荐(0) 编辑
摘要: if(filter_var($email,FILTER_VALIDATE_EMAIL) === false){ echo 'Email is not valid';}else{ //do the stuff} 阅读全文
posted @ 2013-04-25 12:58 徐耀湘 阅读(118) 评论(0) 推荐(0) 编辑