You are here: WikiStart/Docs/Advanced/Namespace


Changing the namespace

patTemplate does not force you to place all of its tags inside the pat namespace. The prefix can easily be changed, by calling the setNamespace() method:

$tmpl->setNamespace('MyNamespace');

You can as well specify more than one prefix:

$tmpl->setNamespace(array('MyNamespace', 'pat'));

If you take a look at Joomla'', you will see, that they changed the default namespace to mos, but the tags are exactly the same.