| @@ 19-40 (lines=22) @@ | ||
| 16 | private static $keywords; |
|
| 17 | private static $uri; |
|
| 18 | ||
| 19 | public function __construct(){ |
|
| 20 | # Config |
|
| 21 | self::$config = (new Config)->get(); |
|
| 22 | # Application |
|
| 23 | self::$app = new Application; |
|
| 24 | # View |
|
| 25 | self::$view = new View; |
|
| 26 | # Widget |
|
| 27 | self::$widget = new Widget; |
|
| 28 | # Js |
|
| 29 | self::$js = new Js; |
|
| 30 | # Css |
|
| 31 | self::$css = new Css; |
|
| 32 | # Title |
|
| 33 | self::$title = new Title; |
|
| 34 | # Desctiption |
|
| 35 | self::$description = new Description; |
|
| 36 | # Keywords |
|
| 37 | self::$keywords = new Keywords; |
|
| 38 | # Uri |
|
| 39 | self::$uri = new Uri; |
|
| 40 | } |
|
| 41 | ||
| 42 | public function view($name){ |
|
| 43 | $file = $this->file($name); |
|
| @@ 18-37 (lines=20) @@ | ||
| 15 | private static $path; |
|
| 16 | private static $uri; |
|
| 17 | ||
| 18 | public function __construct(){ |
|
| 19 | # Config |
|
| 20 | self::$config = (new Config)->get(); |
|
| 21 | # Application |
|
| 22 | self::$app = new Application; |
|
| 23 | # View |
|
| 24 | self::$view = new View; |
|
| 25 | # Js |
|
| 26 | self::$js = new Js; |
|
| 27 | # Css |
|
| 28 | self::$css = new Css; |
|
| 29 | # Title |
|
| 30 | self::$title = new Title; |
|
| 31 | # Desctiption |
|
| 32 | self::$description = new Description; |
|
| 33 | # Keywords |
|
| 34 | self::$keywords = new Keywords; |
|
| 35 | # Uri |
|
| 36 | self::$uri = new Uri; |
|
| 37 | } |
|
| 38 | ||
| 39 | public function __get($name){ |
|
| 40 | self::$property= $name; |
|