model = new Aramex_Aramecalculator_Method_Model(); } /** * Starting method * * @return array Result from Aramex server */ public function run() { check_ajax_referer('aramexcalculator', 'security'); $post = $this->formatPost($_POST); $this->model->rateCalculator($post); } }