开发者

Zend - Strange title behavior

开发者 https://www.devze.com 2023-04-13 04:28 出处:网络
\'m seeing some really weird behavior with the headTitle() function. My index page looks fine and it\'s showing the title of my project defined in my application.ini file.

'm seeing some really weird behavior with the headTitle() function. My index page looks fine and it's showing the title of my project defined in my application.ini file.

However my site controllers are displaying some odd titles when being set on my controllers.

// [application.ini]
project.title = "Portal"

// [indexController.php]
$this->headTitle([project][title]); //  -> this results in titl开发者_开发技巧e "Portal" which is correct

// [ControllerOne.php]
$this->headTitle('Today News', 'PREPEND'); //  -> this results in a title similar to "Today News - SomeOtherController - Today News - Portal" which is totally wrong and odd.

Any thoughts on why am i seeing that behaviour? I ran a grep for headTitle on all of my project and everything looks correct to me. I also tried commenting out several of the headTitle() functions just to debug and still the same behavior.

Is this some kind of bug in the function? Does anyone have any debugging tips to solve this? This is my first project with zend and don't really know where else to look.

Thank you very much in advance!

0

精彩评论

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

关注公众号