【发布时间】:2014-05-04 03:32:13
【问题描述】:
在模块\Application\config\module.config.php // 路由是这样的。
'application' => array(
'type' => 'Literal',
'options' => array(
'route' => '/',
'defaults' => array(
'__NAMESPACE__' => 'Application\Controller',
'controller' => 'Index',
'action' => 'index',
),
),
'may_terminate' => true,
'child_routes' => array(
'default' => array(
'type' => 'Segment',
'options' => array(
'route' => '[:controller[/:action]][/:id]',
'constraints' => array(
'controller' => '[a-zA-Z][a-zA-Z0-9_-]*',
'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
),
'defaults' => array(
),
),
),
),
),
我有两个动作,即索引和存储。 我有一个控制器,即 IndexController
现在在我看来有布局,即 layout.phtml 在那个文件中我有一个锚标记。
<a href="?">store</a>
现在上面那行问号的答案是什么?
【问题讨论】:
标签: zend-framework2