2

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テンプレートにしたい; どうすればそれらを渡すことができますか?

4

1 に答える 1