开发者

Zend - Conditional Based on Controller Action - Possible?

开发者 https://www.devze.com 2023-01-21 22:14 出处:网络
From a header.php layout we can give instructions based on a given controller by doing: $this->controller === \"my开发者_Go百科controllerhere\";

From a header.php layout we can give instructions based on a given controller by doing:

$this->controller === "my开发者_Go百科controllerhere";

Can we do more or less the same but with a specific controller Action ?

Thanks in advance, MEM


Not totally sure what you're after but the front controller request object contains the names of the requested module, controller and action.

0

精彩评论

暂无评论...
验证码 换一张
取 消