Apr 29, 2010

Posted by in Joomla, PHP | 0 comments

Setting Page Title using Joomla

Setting a page title for each page in joomla is easy, but we need to know the right code for getting it worked.

We can use the code below to set the page title in joomla for each view, this code can be written in the view file or in the controller function it self.

Code goes here

<?php

 /*
  * NOTE :: We can write it in view file, controller function, in view.html.php, view.php
  */


  $document =& JFactory::getDocument();
  $document->setTitle("My Page Title");

?>

Leave a Reply