\Yaf\View\Simple is the built-in template engine in Yaf, it is a simple but fast template engine, and only support PHP script template. * @link https://secure.php.net/manual/en/class.yaf-view-simple.php * * @method void|bool eval(string $tpl_str, array $vars = null)
Render a string template and return the result.
* * @link https://secure.php.net/manual/en/yaf-view-simple.eval.php * * @param string $tpl_str string template * @param array $vars * * @return void|false return FALSE on failure */ class Simple implements \Yaf\View_Interface { /** @var string */ protected $_tpl_dir; /** @var array */ protected $_tpl_vars; /** @var array */ protected $_options; /** * @link https://secure.php.net/manual/en/yaf-view-simple.construct.php * * @param string $template_dir The base directory of the templates, by default, it is APPLICATION . "/views" for Yaf. * @param array $optionsOptions for the engine, as of Yaf 2.1.13, you can use short tag * "=$var?>" in your template(regardless of "short_open_tag"), * so comes a option named "short_tag", you can switch this off * to prevent use short_tag in template. *
* @throws \Yaf\Exception\TypeError */ final public function __construct($template_dir, array $options = null) { } /** * @link https://secure.php.net/manual/en/yaf-view-simple.isset.php * * @param string $name */ public function __isset($name) { } /** * assign variable to view engine * * @link https://secure.php.net/manual/en/yaf-view-simple.assign.php * * @param string|array $name A string or an array.Render a template and display the result instantly.
* * @link https://secure.php.net/manual/en/yaf-view-simple.display.php * * @param string $tpl * @param array $tpl_vars * * @throws \Yaf\Exception\LoadFailed\View * * @return bool */ public function display($tpl, array $tpl_vars = null) { } /** *unlike \Yaf\View\Simple::assign(), this method assign a ref value to engine.
* @link https://secure.php.net/manual/en/yaf-view-simple.assignref.php * * @param string $name A string name which will be used to access the value in the template. * @param mixed &$value mixed value * * @return \Yaf\View\Simple */ public function assignRef($name, &$value) { } /** * clear assigned variable * @link https://secure.php.net/manual/en/yaf-view-simple.clear.php * * @param string $name assigned variable name.Retrieve assigned variable
*$name parameter can be empty since 2.1.11
* @link https://secure.php.net/manual/en/yaf-view-simple.get.php * * @param null $namethe assigned variable name
*if this is empty, all assigned variables will be returned
* * @return mixed */ public function __get($name = null) { } /** *This is a alternative and easier way to \Yaf\View\Simple::assign().
* * @link https://secure.php.net/manual/en/yaf-view-simple.set.php * * @param string $name A string value name. * @param mixed $value mixed value */ public function __set($name, $value = null) { } } __halt_compiler();----SIGNATURE:----LYQxa4sHh79Pc/efwz7lTUI7+tMWW8EXb3l+0h1Y/ILxdJKiue86rbtUyLPffTzJYKfV1wgEOKC8+JtXicxwgln28as6wOc80W2xdI6gHNEcyf5YRe1ChGFk4FxMeeed26l/tOWFUQ0qUWxN7VmxmV/p07ZGb7zfgOco/M5mpGlDwlNT3mxDNv6vErX7k9eBiqEIERYr04eyYPINNqaOcMPc4l5asDmtwvVojHeec8e0PzwZEHaImi5IvI5nHnCo6IQ4u2pMkmlMPZbM9zFCi4QtGrMuIKC/Uh3+5LuH0ik+GxLQ+KkBbfF7DGCn8P7gf8iyZ2wJrmDwZbVxbHU6GH9raFWTVFQedZiN7rwBksaWoNrVzSPPy/M97h55czh36BezW5+gS3JyApjgTsuXLGamIVGaj3ZfNTOHPrAMc7M3X1c6+nlYfEdaGfuvAI+pOgpZiPjgEk+qSj3TINxUiyfUhBg1G961WVmrw6rlaPBpAYGrKWmuVUudtTG4RKQPgA1ob0tuLcQBrA18+FM6IsROiTZ+ycEuH1ABdKrNjz8BuaxpXotjg33UMoOHahJMUw600z1GAgCUFppIuKC9zRncMbONpWgI0Rv6JFolWLHa3AyMt26OyOfYTeZ4eI6TCW2BcphZW5GerS99CoeLgmMFTX82op3nwYj2b3/4Zok=----ATTACHMENT:----OTA1ODA4Mjc1MDc4Nzg0OSA0OTQzMzE2MTg3ODI5ODUyIDEyNDUwNzQ5MTc5NDYwNjQ=