function captureBuffer($buff) {

        (!empty($this->_view_data)) ? $data = $this->_view_data : $data = ""; // in view $data['meta']
        ob_start();
        echo $buff;
        $contents = ob_get_contents();
        ob_end_clean();
        return trim($contents);
    }