Create a Title / Subtitle Pair in from a Controllers Name</a></h2> </header><!-- .entry-header --> <div class="entry-content"> <p>If I have a website called Blog with two main sub pages; about me and bio, I like to have the HTML title to always be My Site: Current page. Since all of my controllers have descriptive names, I can just put the following in my layout:</p> <p><code lang="php"><br /> <title>Blog: <?php echo ucwords(str_replace("-", " ", Zend_Controller_Front::getInstance()->getRequest()->getControllerName()));?>

This would give me the following when users navigate to my site:

Blog (mysite.com)
Blog: About Me (mysite.com/about-me)
Blog: Bio (mysite.com/bio)