'login' => array(
'type' => 'Literal',
'options' => array(
'route' => '/giris',
'defaults' => array(
'controller' => 'zfcuser',
'action' => 'login',
),
),
'may_terminate' => true,
'child_routes' => array(
'provider' => array(
'type' => 'Segment',
'options' => array(
'route' => '/:provider',
'constraints' => array(
'provider' => '[a-zA-Z][a-zA-Z0-9_-]+',
),
'defaults' => array(
'controller' => 'ScnSocialAuth-User',
'action' => 'provider-login',
),
),
),
'query' => array(
'type' => 'Query',
),
),
),
给予消息已弃用:自ZF 2.1.4起不推荐使用查询路由;在第21行的/opt/lampp/KendindenApp/vendor/zendframework/zendframework/library/Zend/Mvc/Router/Http/Query.php中使用HTTP路由器汇编方法的“查询”选项
当我删除这一行时,它工作正常。
'query' => array(
'type' => 'Query',
),
答案 0 :(得分:3)
出于安全原因,我们已在ZF 2.1.4中弃用了查询路由。有关详细信息,请参阅http://framework.zend.com/security/advisory/ZF2013-01