(Yaf >=1.0.0)
Yaf_View_Simple::__isset — Check whether a variable is assigned
Checks whether a variable is assigned to the view. This method is called when isset() is used on a view object.
nameThe name of the variable to check.
Example #1 Yaf_View_Simple::__isset() example
<?php
class IndexController extends Yaf_Controller_Abstract
{
public function indexAction()
{
$view = $this->getView();
$view->assign("title", "Welcome");
var_dump(isset($view->title));
var_dump(isset($view->unknown));
}
}
?>The above example will output something similar to:
bool(true) bool(false)