Skip to content

Commit 64cef4a

Browse files
committed
Merge pull request #582 from delef/patch-1
fix an error with the ns-controller on the scaffold [master!][fail]
2 parents 20f978d + 64f2660 commit 64cef4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/Phalcon/Builder/Scaffold.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ private function _makeController()
479479
$usesNamespaces = false;
480480

481481
if ($this->options->contains('controllersNamespace') && $this->checkNamespace($this->options->get('controllersNamespace'))) {
482-
$code = str_replace('$namespace$', 'namespace '.$$this->options->get('controllersNamespace').';'.PHP_EOL, $code);
482+
$code = str_replace('$namespace$', 'namespace ' . $this->options->get('controllersNamespace').';' . PHP_EOL, $code);
483483
$usesNamespaces = true;
484484
} else {
485485
$code = str_replace('$namespace$', ' ', $code);

0 commit comments

Comments
 (0)