($tpl); ?
Posted: Tue Aug 14, 2007 7:04 pm
i looked quickly through the beginners tutorial and able to understand all of what is being documented directly or by implied reference, except for this....($tpl);
$tpl is defined and used and not mentioned at all in the tutorial, leaving poor newbies like me in the dark.
Question : What is $tpl ? what is it used for ? where is it defined ? is there global $tpl?
i the above example taken from the tutorial, $tpl is defined null and a call to the parent JView is made with a null.
why bother defining it at all then ?
i'm sure there is a good reason to all this. if only it is explained.
thanks.
p/s the tutorials are simple and clear. and have the effect of supressing cryptic Joomla classes and terminologies, but it is perhaps for those who speak PHP only. this is fine as that's the langauge J! is built upon. thank you for this tutorial.
Code: Select all
class HelloViewHello extends JView
{
function display($tpl = null)
{
------------------
------------------
------------------
------------------
parent::display($tpl);
}
}
$tpl is defined and used and not mentioned at all in the tutorial, leaving poor newbies like me in the dark.
Question : What is $tpl ? what is it used for ? where is it defined ? is there global $tpl?
i the above example taken from the tutorial, $tpl is defined null and a call to the parent JView is made with a null.
why bother defining it at all then ?
i'm sure there is a good reason to all this. if only it is explained.
thanks.
p/s the tutorials are simple and clear. and have the effect of supressing cryptic Joomla classes and terminologies, but it is perhaps for those who speak PHP only. this is fine as that's the langauge J! is built upon. thank you for this tutorial.