Initial commit
This commit is contained in:
17
engine/Main/trait.playarea.php
Normal file
17
engine/Main/trait.playarea.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
// Работа с песочницей
|
||||
|
||||
defined('ROOT_DIR') || exit;
|
||||
|
||||
trait PlayArea {
|
||||
public function pa_connect_main(){
|
||||
require_once $this->get_playarea_dir() . SLASH . "main.php";
|
||||
}
|
||||
|
||||
// Получить папку с ассетами
|
||||
public function pa_get_assets_dir(){
|
||||
$root = $this->router_get_root_uri();
|
||||
return $root . SLASH . PLAYAREA_DIR_NAME . SLASH . 'assets' . SLASH;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user