/var/www/tufrase/vendor/cakephp/cakephp/src/ORM/Table.php
toggle arguments
|
} |
|
$query->cache($cacheKey, $cacheConfig); |
|
} |
|
|
|
return $query->firstOrFail(); |
|
} |
|
|
|
/** |
|
* Handles the logic executing of a worker inside a transaction. |
/var/www/tufrase/src/Controller/FrasesController.php
toggle arguments
|
$related = FraseService::findByCategory(27, 1, 10); // Pensamientos |
|
} |
|
|
|
$FrasesTable = TableRegistry::getTableLocator()->get('Frases'); |
|
$Frase = $FrasesTable->get($id); |
|
$Frase->views_count++; |
|
$FrasesTable->save($Frase); |
|
|
|
|
/var/www/tufrase/vendor/cakephp/cakephp/src/Controller/Controller.php
toggle arguments
|
} |
|
/** @var callable $callable */ |
|
$callable = [$this, $request->getParam('action')]; |
|
|
|
$result = $callable(...array_values($request->getParam('pass'))); |
|
if ($result instanceof Response) { |
|
$this->response = $result; |
|
} |
|
|
/var/www/tufrase/vendor/cakephp/cakephp/src/Http/ActionDispatcher.php
toggle arguments
|
if ($result instanceof Response) { |
|
return $result; |
|
} |
|
|
|
$response = $controller->invokeAction(); |
|
if ($response !== null && !($response instanceof Response)) { |
|
throw new LogicException('Controller actions can only return Cake\Http\Response or null.'); |
|
} |
|
|
/var/www/tufrase/vendor/cakephp/cakephp/src/Http/ActionDispatcher.php
toggle arguments
|
} else { |
|
$controller = $this->factory->create($request, $response); |
|
} |
|
|
|
$response = $this->_invoke($controller); |
|
if ($request->getParam('return')) { |
|
return $response; |
|
} |
|
|
/var/www/tufrase/vendor/cakephp/cakephp/src/Routing/Dispatcher.php
toggle arguments
|
'Dispatcher is deprecated. You should update your application to use ' . |
|
'the Http\Server implementation instead.' |
|
); |
|
$actionDispatcher = new ActionDispatcher(null, $this->getEventManager(), $this->_filters); |
|
$response = $actionDispatcher->dispatch($request, $response); |
|
if ($request->getParam('return', null) !== null) { |
|
return $response->body(); |
|
} |
|
|
/var/www/tufrase/webroot/index.php
toggle arguments
|
|
|
$dispatcher = DispatcherFactory::create(); |
|
$dispatcher->dispatch( |
|
Request::createFromGlobals(), |
|
new Response() |
|
); |
|
|
If you want to customize this error message, create
src/Template/Error/error500.ctp