@@ 110-118 (lines=9) @@ | ||
107 | * |
|
108 | * @return $this |
|
109 | */ |
|
110 | public function addCallback($callback, $data = [], $region = "main", $sort = 0) |
|
111 | { |
|
112 | $view = $this->di->get("view"); |
|
113 | $view->set(["callback" => $callback], $data, $sort, "callback"); |
|
114 | $view->setDI($this->di); |
|
115 | $this->views[$region][] = $view; |
|
116 | ||
117 | return $this; |
|
118 | } |
|
119 | ||
120 | ||
121 | ||
@@ 131-139 (lines=9) @@ | ||
128 | * |
|
129 | * @return $this |
|
130 | */ |
|
131 | public function addString($content, $region = "main", $sort = 0) |
|
132 | { |
|
133 | $view = $this->di->get("view"); |
|
134 | $view->set($content, [], $sort, "string"); |
|
135 | $view->setDI($this->di); |
|
136 | $this->views[$region][] = $view; |
|
137 | ||
138 | return $this; |
|
139 | } |
|
140 | ||
141 | ||
142 |