Zend - Strange title behavior
'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!
精彩评论