Missing Method in ApiController

Error: The action modal-favorite.php is not defined in controller ApiController

Error: Create ApiController::modal-favorite.php() in file: app/Controller/ApiController.php.

<?php
class ApiController extends AppController {


	public function modal-favorite.php() {

	}

}

Notice: If you want to customize this error message, create app/View/Errors/missing_action.ctp

Stack Trace

  • CORE/Cake/Routing/Dispatcher.php line 191Controller->invokeAction(CakeRequest)
  • CORE/Cake/Routing/Dispatcher.php line 165Dispatcher->_invoke(ApiController, CakeRequest)
  • APP/webroot/index.php line 113Dispatcher->dispatch(CakeRequest, CakeResponse)