function display()
{
global $mainframe;
$model =& $this->getModel("vadmin");
$a = new CTemplate();
$a->setfile("home");
$article->text = $a->fetch();
$params =& $mainframe->getParams();
$dispatcher =& JDispatcher::getInstance();
JPluginHelper::importPlugin('content');
$results = $dispatcher->trigger('onPrepareContent', array (& $article, & $params));
echo $article->text ;
}
{
global $mainframe;
$model =& $this->getModel("vadmin");
$a = new CTemplate();
$a->setfile("home");
$article->text = $a->fetch();
$params =& $mainframe->getParams();
$dispatcher =& JDispatcher::getInstance();
JPluginHelper::importPlugin('content');
$results = $dispatcher->trigger('onPrepareContent', array (& $article, & $params));
echo $article->text ;
}
Comments
Post a Comment