Layout with diffrent website’s titles for each subpage in Zend 1.12.3

If You create project MyDog in last posts, You see in tree structure controller animals.

c60

Open file AnimalsController.php.
c61You see empty action methods.
In each method write code:
$this->view->title = 'Basic photo.';
But for each method write another title.
c62Remember save this file.
Then find layout file in structure of tree.
c63Double click on layout.phtml file.
c64In opened file write in title tag code:
<?php echo $this->title; ?>
c65Save file and run application.
c66c67c68

Leave a Reply

Your email address will not be published.

Time limit is exhausted. Please reload CAPTCHA.