@@ 103-105 (lines=3) @@ | ||
100 | throw new Exception('Widget ' . $name . ' not found.'); |
|
101 | } |
|
102 | ||
103 | if (!empty($GLOBALS['widgetStack'][$name])) { |
|
104 | throw new Exception('This widget (' . $name . ') already started!'); |
|
105 | } |
|
106 | ||
107 | $options = array_merge($options, ['container' => $this->container]); |
|
108 | ||
@@ 136-138 (lines=3) @@ | ||
133 | echo $v; |
|
134 | } |
|
135 | ||
136 | if (!class_exists($name) || empty($GLOBALS['widgetStack'][$name])) { |
|
137 | throw new Exception('Widget ' . $name . ' not started.'); |
|
138 | } |
|
139 | ||
140 | /** @var \Micro\mvc\Widget $widget widget */ |
|
141 | $widget = $GLOBALS['widgetStack'][$name]; |
@@ 158-160 (lines=3) @@ | ||
155 | /** @noinspection PhpIncludeInspection */ |
|
156 | include str_replace('\\', '/', $fileName); |
|
157 | ||
158 | if (!empty($GLOBALS['widgetStack'])) { |
|
159 | throw new Exception(count($GLOBALS['widgetStack']) . ' widgets not endings.'); |
|
160 | } |
|
161 | ||
162 | return ob_get_clean(); |
|
163 | } |