public Phalcon\Mvc\View setVar (string $key, mixed $value);
设置一个渲染参数
public Phalcon\Mvc\View setVars (array $params, boolean $merge=?);
设置所有的渲染参数
实例:
$this->view->setVar('post',$post->name)
$this->view->setVars(array(
'name' =>$post->name,
'title' =>$post->title
))