Missing Method in AppController
Error:
The action webroot is not defined in controller AppController
Error:
Create AppController::webroot() in file: app/Controller/AppController.php.
<?php
class AppController extends AppController {
public function webroot() {
}
}
Notice:
If you want to customize this error message, create app/View/Errors/missing_action.ctp
Stack Trace
- CORE/Cake/Routing/Dispatcher.php line 103 → Controller->invokeAction(CakeRequest)
$controller->startupProcess();
$render = true;
$result = $controller->invokeAction($request);
if ($result instanceof CakeResponse) {
object(CakeRequest) {
params => array(
)
data => array()
query => array()
url => 'eng/app/webroot/upload/files/62806612565.pdf'
base => ''
webroot => '/'
here => '/eng/app/webroot/upload/files/62806612565.pdf'
}
- CORE/Cake/Routing/Dispatcher.php line 85 → Dispatcher->_invoke(AppController, CakeRequest, CakeResponse)
));
}
return $this->_invoke($controller, $request, $response);
}
object(AppController) {
components => array(
)
helpers => array(
)
viewClass => 'Theme'
theme => 'Technology'
themeType => 'front'
allowedExts => array(
)
name => 'App'
uses => array(
)
request => object(CakeRequest) {}
response => object(CakeResponse) {}
viewPath => 'App'
layoutPath => null
viewVars => array()
view => 'webroot'
layout => 'default'
autoRender => true
autoLayout => true
Components => object(ComponentCollection) {}
View => null
ext => '.ctp'
plugin => null
cacheAction => false
passedArgs => array(
)
scaffold => false
methods => array(
)
modelClass => 'App'
modelKey => 'app'
validationErrors => null
Session => object(SessionComponent) {}
Security => object(SecurityComponent) {}
Auth => object(AuthComponent) {}
listRole => array()
isAdministrator => false
isApprover => false
isEditor => false
}
object(CakeRequest) {
params => array(
)
data => array()
query => array()
url => 'eng/app/webroot/upload/files/62806612565.pdf'
base => ''
webroot => '/'
here => '/eng/app/webroot/upload/files/62806612565.pdf'
}
object(CakeResponse) {
}
- APP/webroot/index.php line 107 → Dispatcher->dispatch(CakeRequest, CakeResponse)
}
$Dispatcher->dispatch(new CakeRequest(), new CakeResponse(array('charset' => Configure::read('App.encoding'))));
object(CakeRequest) {
params => array(
)
data => array()
query => array()
url => 'eng/app/webroot/upload/files/62806612565.pdf'
base => ''
webroot => '/'
here => '/eng/app/webroot/upload/files/62806612565.pdf'
}
object(CakeResponse) {
}