Zend Framework教程-Zend_Helpers-动作助手-Url
来源:互联网 发布:怎样在淘宝上做代销 编辑:程序博客网 时间:2024/04/28 21:37
Url主要用于创建url;
public function simple($action, $controller = null, $module = null, array $params = null)
public function url($urlOptions = array(), $name = null, $reset = false, $encode = true)
public function direct($action, $controller = null, $module = null, array $params = null)
<?phpclass IndexController extends Zend_Controller_Action{ public function init() { /* Initialize action controller here */ } public function indexAction() { //$urlParser = $this->_helper->getHelper('UrlParser'); //var_dump($urlParser->parse('http://blog.csdn.net/mengxiangbaidu/article/details/7236249')); $url = $this->_helper->getHelper('Url'); $action = 'actionname'; $controller = 'controllername'; $module = 'modulename'; $params = array('param1'=>'中文参数'); var_dump($url->simple($action, $controller, $module, $params)); $urlOptions = array( 'action'=>$action, 'controller'=>$controller, 'module'=>$module, 'params'=>$params); var_dump($url->url($urlOptions)); var_dump($url->direct($action, $controller, $module, $params)); exit; }}
www.localzend.com/helper_demo1/public/index
string(101) "/helper_demo1/public/modulename/controllername/actionname/param1/%E4%B8%AD%E6%96%87%E5%8F%82%E6%95%B0"
string(101) "/helper_demo1/public/modulename/controllername/actionname/params/%E4%B8%AD%E6%96%87%E5%8F%82%E6%95%B0"
string(101) "/helper_demo1/public/modulename/controllername/actionname/param1/%E4%B8%AD%E6%96%87%E5%8F%82%E6%95%B0"
- Zend Framework教程-Zend_Helpers-动作助手-Url
- Zend Framework教程-Zend_Helpers-动作助手-Url
- Zend Framework教程-Zend_Helpers-动作助手-FlashMessenger
- Zend Framework教程-Zend_Helpers-动作助手-Json
- Zend Framework教程-Zend_Helpers-动作助手-Redirector
- Zend Framework教程-Zend_Helpers-动作助手-ViewRenderer
- Zend Framework教程-Zend_Helpers-动作助手(Zend_Controller_Action_Helper)概述
- Zend Framework教程-Zend_Helpers-动作助手-ActionStack,AjaxContext和ContextSwitch
- Zend Framework教程-Zend_Helpers-动作助手(Zend_Controller_Action_Helper)概述
- Zend Framework教程-Zend_Helpers-动作助手-创建自己的动作助手
- Zend Framework教程-Zend_Helpers-动作助手-创建自己的动作助手
- Zend Framework教程-Zend_Helpers-视图助手(View_Helper)概述
- Zend Framework教程-Zend_Helpers-视图助手-视图助手的实现原理
- Zend Framework教程-Zend_Helpers-视图助手-创建自己的视图助手
- Zend Framework教程-Zend_Helpers-视图助手-常见的视图助手-Doctype、HeadLink、HeadMeta、HeadScript、HeadStyle、HeadTitle
- Zend Framework教程-Zend_Helpers-视图助手-常见的视图助手-其它
- Zend Framework教程-Zend_Helpers-视图助手-创建自己的视图助手-demos2
- Zend Framework教程-Zend_Helpers-视图助手-常见的视图助手-其它
- 黑马程序员 做完一个小东西的一些想法
- Java 中File 文件类
- 一个非常不错的数据库连接
- 第十三周任务三
- oracle dual表
- Zend Framework教程-Zend_Helpers-动作助手-Url
- android编程之得到应用程序信息
- struts1 从action跳转到另一个action的方法
- 关于网址URL是否区分大小写的问题
- Vi/Vim查找替换使用方法
- Zend Framework教程-Zend_Helpers-动作助手-创建自己的动作助手
- ADO.NET技术
- java心得---泛型
- 动软第三方控件的使用