关于goto------zf学习笔记(11/08/06 12:07)
2011-08-06 12:14
295 查看
前几天在项目中看到这句代码:
找遍了rediretor.php 也找不到goto方法,最后发现原来是在__call中。goto原来就是gotoSimple,呵呵~~
$this->getHelper('redirector')->goto('login', 'account');
找遍了rediretor.php 也找不到goto方法,最后发现原来是在__call中。goto原来就是gotoSimple,呵呵~~
public function __call($method, $args) { $method = strtolower($method); if ('goto' == $method) { return call_user_func_array(array($this, 'gotoSimple'), $args); } if ('setgoto' == $method) { return call_user_func_array(array($this, 'setGotoSimple'), $args); } if ('gotoandexit' == $method) { return call_user_func_array(array($this, 'gotoSimpleAndExit'), $args); } require_once 'Zend/Controller/Action/Exception.php'; throw new Zend_Controller_Action_Exception(sprintf('Invalid method "%s" called on redirector', $method)); }
相关文章推荐
- 关于goto------zf学习笔记(11/08/06 12:07)
- 前端学习笔记17/08/06——关于CSS学习的一些总结
- 谈一谈网络编程学习经验(06-08更新)
- 关于goto的label
- 10 06 11 参加zmq的毕业典礼
- 关于所有IE 11不能用、打不开、没反应的解决方法
- HDU‘14’11‘校赛 关于回文串
- Linux学习笔记(06-11)POSIX消息队列
- 2009_06_11
- 186_08_IO流_FileInputStream__06_available_skip方法
- WCF后续之旅(11): 关于并发、回调的线程关联性(Thread Affinity)
- APUE读书笔记-08进程控制(06)
- EF上海再次急招.NET Senior Developer,有意者请和我联系[08/06更新]
- 关于windows的safari浏览器的parseInt()函数处理08和09异常问题
- iOS 11 关于相册权限的问题
- 06-11-03随笔
- <2013 06 24> 关于Zigbee项目_Munik_TUM_eCar
- IOS-11-关于AFNetworking访问网络超时的设置
- 10-11-22工作学习记录(关于无线网络和有线网络同时使用的办法)
- 08-关于打字速度的“神话”