public function renderDatatable(array $cols = NULL) { if ($cols !== NULL) { $this->view->cols = $cols; } echo $this->view->render('datatable.phtml'); }