Tuesday, March 3, 2009

Joomla Tips and Tricks- #1

How to change / set the Joomla template programmatically from within a Joomla 1.5 component.


function my_method() {
global $mainframe;
$mainframe->setTemplate = "my-template-name";
}


Bam... "That was easy!"

1 comment:

shalini said...

The post was interesting and impressive,looking out for some more from your side,Thanks a lot for sharing it,am glad that i had landed here.
joomla extensions