mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
parent
dcb704a12b
commit
cb1ce83a54
1 changed files with 2 additions and 2 deletions
|
@ -302,7 +302,7 @@ class ControllerTask extends BakeTask {
|
||||||
/**
|
/**
|
||||||
* Assembles and writes a Controller file
|
* Assembles and writes a Controller file
|
||||||
*
|
*
|
||||||
* @param string $controllerName Controller name
|
* @param string $controllerName Controller name already pluralized and correctly cased.
|
||||||
* @param string $actions Actions to add, or set the whole controller to use $scaffold (set $actions to 'scaffold')
|
* @param string $actions Actions to add, or set the whole controller to use $scaffold (set $actions to 'scaffold')
|
||||||
* @param array $helpers Helpers to use in controller
|
* @param array $helpers Helpers to use in controller
|
||||||
* @param array $components Components to use in controller
|
* @param array $components Components to use in controller
|
||||||
|
@ -321,7 +321,7 @@ class ControllerTask extends BakeTask {
|
||||||
$contents = $this->Template->generate('classes', 'controller');
|
$contents = $this->Template->generate('classes', 'controller');
|
||||||
|
|
||||||
$path = $this->getPath();
|
$path = $this->getPath();
|
||||||
$filename = $path . $this->_controllerName($controllerName) . 'Controller.php';
|
$filename = $path . $controllerName . 'Controller.php';
|
||||||
if ($this->createFile($filename, $contents)) {
|
if ($this->createFile($filename, $contents)) {
|
||||||
return $contents;
|
return $contents;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue