joomla ビューから joomla テンプレートにデータを渡す方法を知りたいです。複数の変数を渡すにはどうすればよいですか?
class CareerformViewCareerform extends JView
{
protected $state;
protected $item;
function display($tpl = null)
{
$app = JFactory::getApplication();
$params = $app->getParams();
// Get some data from the models
$state = $this->get('State');
$item = $this->get('Item');
$newvar="Something";
$success_message="Thanks for your interest";
parent::display($tpl);
}
}
$newvar
渡して$success_message
テンプレートにしたい; どうすればそれらを渡すことができますか?