/** * Gets one or more gateways. * * @param int $seller_id Seller ID. * @param int $id Gateway ID. * * @return void */ public function get_index($seller_id = null, $id = null) { if (!$id) { $gateways = \Service_Gateway::find(array('seller' => \Seller::active())); } else { $gateways = $this->get_gateway($id); } $this->response($gateways); }
/** * Displays a seller's gateways. * * @return void */ public function action_index() { $this->view->gateways = Service_Gateway::find(array('seller' => Seller::active())); }