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 191 → Controller->invokeAction(CakeRequest)
$response = $controller->response;
$render = true;
$result = $controller->invokeAction($request);
if ($result instanceof CakeResponse) {
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array(
[maximum depth reached]
)
url => 'api/modal-favorite.php'
base => ''
webroot => '/'
here => '/api/modal-favorite.php'
[protected] _detectors => array(
[maximum depth reached]
)
[protected] _input => ''
}
- CORE/Cake/Routing/Dispatcher.php line 165 → Dispatcher->_invoke(ApiController, CakeRequest)
));
}
$response = $this->_invoke($controller, $request);
if (isset($request->params['return'])) {
object(ApiController) {
helpers => array(
[maximum depth reached]
)
uses => array(
[maximum depth reached]
)
components => array(
[maximum depth reached]
)
title_for_layout => 'HCM SEO Dashboard'
name => 'Api'
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'Api'
layoutPath => null
viewVars => array([maximum depth reached])
view => 'modal-favorite.php'
layout => null
autoRender => false
autoLayout => true
Components => object(ComponentCollection) {}
viewClass => 'View'
View => null
ext => '.ctp'
plugin => null
cacheAction => false
passedArgs => array([maximum depth reached])
scaffold => false
methods => array(
[maximum depth reached]
)
modelClass => 'Api'
modelKey => 'api'
validationErrors => null
Session => object(SessionComponent) {}
Email => object(EmailComponent) {}
ImageResizer => object(ImageResizerComponent) {}
Auth => object(AuthComponent) {}
[protected] _responseClass => 'CakeResponse'
[protected] _mergeParent => 'AppController'
[protected] _eventManager => object(CakeEventManager) {}
[private] _hcmAutoPostKey => '_hcmAutoPostKey'
[private] _hcmAutoLoginKey => '_hcmAutoLoginKey'
[private] _hcm_sKeyRemote => '_hcm_sKeyRemote'
[private] _hcmDeletePostId => '_hcmDeletePostId'
[private] _hcm_p_action_post_key => '_hcm_p_action_post_key'
[private] _hcm_p_info_post_key => '_hcm_p_info_post_key'
[private] _hcm_update_post_key => '_hcm_update_post_key'
}
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array(
[maximum depth reached]
)
url => 'api/modal-favorite.php'
base => ''
webroot => '/'
here => '/api/modal-favorite.php'
[protected] _detectors => array(
[maximum depth reached]
)
[protected] _input => ''
}
- APP/webroot/index.php line 113 → Dispatcher->dispatch(CakeRequest, CakeResponse)
$Dispatcher->dispatch(
new CakeRequest(),
new CakeResponse()
);
object(CakeRequest) {
params => array(
[maximum depth reached]
)
data => array([maximum depth reached])
query => array(
[maximum depth reached]
)
url => 'api/modal-favorite.php'
base => ''
webroot => '/'
here => '/api/modal-favorite.php'
[protected] _detectors => array(
[maximum depth reached]
)
[protected] _input => ''
}
object(CakeResponse) {
[protected] _statusCodes => array(
[maximum depth reached]
)
[protected] _mimeTypes => array(
[maximum depth reached]
)
[protected] _protocol => 'HTTP/1.1'
[protected] _status => (int) 200
[protected] _contentType => 'text/html'
[protected] _headers => array([maximum depth reached])
[protected] _body => null
[protected] _file => null
[protected] _fileRange => null
[protected] _charset => 'UTF-8'
[protected] _cacheDirectives => array([maximum depth reached])
[protected] _cookies => array([maximum depth reached])
}