class Vendor_Feature_Frontend_Controller_Items extends FCom_Frontend_Controller_Abstract { public function action_index() { $this->layout('/feature'); } public function action_index__POST() { //... BResponse::i()->redirect(BApp::href('/feature')); } public function action_json() { $request = BRequest::i()->get(); $response = array(/*...*/); BResponse::i()->json($response); } public function action_json__POST() { $request = BRequest::i()->json(); $response = array(/*...*/); BResponse::i()->json($response); } }