public function getallcategoriesAction() { $data = My_Model_Api_Quote::getAllCat(); echo json_encode($data); }