zend framework - ZF1 is calling unexpected controller -



zend framework - ZF1 is calling unexpected controller -

i have controller named

abccontroller

, in default module. it's called like

somedomain.com/abc

..and dispatched correctly, in case uf url

somedomain.com/!abc

or

somedomain.com/@abc

iƧ's still routed

abccontroller

, question why ? or improve question is, url param transformed controller name ? i'm trying find few hours debugger.

expected behavior: controller not found exception

current behavior: view !abc/inde.phtml not found

this strange, please point me. give thanks you.

update:

so, after more time found reason, why characters such ! , @ trimmed:

zend_controller_dispatcher_abstract::_formatname()

function doing following:

$segment = preg_replace('/[^a-z0-9 ]/', '', $segment);

question is, how skip , right state (not existing controller)

ok, there isn't clear solution, or @ to the lowest degree didn't find any. have workaround - using static router other action, "ind" instead of "index". in case of bad character, controller matched, default action not, result in requested 404 response.

issue in zf1 itself, controller names claned, action names aren't. shoulld both or nothing, think.

zend-framework

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -