* zin: refactor.

This commit is contained in:
sunhao
2023-06-21 09:03:22 +08:00
parent 1e01be37f5
commit 0bee397cd2
-5
View File
@@ -997,9 +997,7 @@ class baseControl
* Set zin context data
*/
\zin\zin::$data = (array)$this->view;
\zin\zin::$data['zinDebug'] = array();
if($this->config->debug && $this->config->debug >= 2)
{
\zin\zin::$data['zinDebug']['trace'] = $this->app->loadClass('trace')->getTrace();
@@ -1010,12 +1008,9 @@ class baseControl
* Use extract and ob functions to eval the codes in $viewFile.
*/
extract(\zin\zin::$data);
ob_start();
include $viewFile;
if(!\zin\zin::$rendered) \zin\render();
ob_end_flush();
echo $output;