Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 88
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 215
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 216
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 217
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 218
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 219
Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 220
--TEST--
Check for Custom view engine
--SKIPIF--
--INI--
yaf.use_spl_autoload=0
yaf.lowcase_path=0
yaf.use_namespace=0
--FILE--
array(
"directory" => APPLICATION_PATH,
),
);
class SimpleView implements Yaf_View_Interface {
protected $tpl_dir;
protected $view;
public function __construct() {
$this->view = new Yaf_View_Simple(__DIR__);
}
public function assign($name, $value = NULL) {
$this->view->assign($name, $value . " custom view");
}
public function __set($name, $value = NULL) {
return $this->assign($name, $value);
}
public function getScriptPath($request = NULL) {
return $this->tpl_dir;
}
public function setScriptPath($path) {
$this->view->setScriptPath($path);
return true;
}
public function render($script, $value = NULL) {
return $this->view->render($script, $value);
}
public function display($script, $value = NULL) {
return $this->view->display($script, $value);
}
}
$tpl_dir = APPLICATION_PATH . "/views";
file_put_contents(APPLICATION_PATH . "/Bootstrap.php", <<setView(new SimpleView('{$tpl_dir}'));
}
}
PHP
);
file_put_contents(APPLICATION_PATH . "/controllers/Index.php", <<_view->assign("name", "name");
\$this->_view->val = "val";
}
}
PHP
);
file_put_contents($tpl_dir . "/index/index.phtml", <<
=\$val?>
HTML
);
$app = new Yaf_Application($config);
$response = $app->bootstrap()->run();
echo $response;
?>
--CLEAN--
--EXPECTF--
name custom view
val custom view