rename views to _views
This commit is contained in:
parent
1f04b83be3
commit
2968ee5280
12 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ abstract class Controller {
|
||||||
|
|
||||||
protected function view($__name, $data = array()) {
|
protected function view($__name, $data = array()) {
|
||||||
$__root = $GLOBALS['webroot'];
|
$__root = $GLOBALS['webroot'];
|
||||||
$__path = $__root . '/views/' . $__name . '.php';
|
$__path = $__root . '/_views/' . $__name . '.php';
|
||||||
if (is_file($__path)) {
|
if (is_file($__path)) {
|
||||||
extract($data);
|
extract($data);
|
||||||
require($__path);
|
require($__path);
|
||||||
|
|
Loading…
Reference in a new issue