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!"

No comments: