public function addView($view, $data = null)
    {
        if(!is_object($view))
            $view = new \erdiko\core\View($view, $data);
        if($data != null)
            $view->setData($data);
        
        $this->appendContent($view->toHtml());
    }
public function addView($view, $data = null)
    {
        if(!is_object($view))
            $view = new \erdiko\core\View($view, $data);
        if($data != null)
            $view->setData($data);
        
        $this->appendContent($view->toHtml());
    }
public function addView ( $ view , $ data = null ) { if ( ! is_object ( $ view ) ) $ view = new \ erdiko \ core \ View ( $ view , $ data ) ; if ( $ data != null ) $ view -> setData ( $ data ) ; $ this -> appendContent ( $ view -> toHtml ( ) ) ; }
Add a view from the current theme with the given data

@param mixed $view, can be a string (view name) or object (view object)
@param array $data
@return string $html, view contents
Add a view from the current theme with the given data