public function getcommentsAction() { $postid = $this->getRequest()->getParam('scribbleid'); $from = $this->getRequest()->getParam('from'); if (empty($from) && !(is_int($from) || ctype_digit($from))) { $from = 0; } $staturemodel = new Application_Model_Post($this->registry->DB); $this->view->postid = $postid; $this->view->results = $staturemodel->getComments($postid, $from); }