@@ -174,8 +174,8 @@ discard block |
||
| 174 | 174 | { |
| 175 | 175 | foreach ($params as $param => $value) |
| 176 | 176 | { |
| 177 | - if (property_exists(__CLASS__, strtolower($param)) && method_exists($this, 'set'.$param)) |
|
| 178 | - $this->{'set'.$param}($value); |
|
| 177 | + if (property_exists(__CLASS__, strtolower($param)) && method_exists($this, 'set' . $param)) |
|
| 178 | + $this->{'set' . $param}($value); |
|
| 179 | 179 | } |
| 180 | 180 | } |
| 181 | 181 | |
@@ -198,9 +198,9 @@ discard block |
||
| 198 | 198 | |
| 199 | 199 | if ($controller->getShowView()) |
| 200 | 200 | $this->view = |
| 201 | - $controller->getModule()->getModulePath() .'/'. $controller->getModule()->getModuleName() .'/'. |
|
| 202 | - $controller->getModule()->getViewPath() .'/'. |
|
| 203 | - basename(str_replace('\\','/',get_class($controller))) .'/'. |
|
| 201 | + $controller->getModule()->getModulePath() . '/' . $controller->getModule()->getModuleName() . '/' . |
|
| 202 | + $controller->getModule()->getViewPath() . '/' . |
|
| 203 | + basename(str_replace('\\', '/', get_class($controller))) . '/' . |
|
| 204 | 204 | $controller->getMethod() . '.phtml'; |
| 205 | 205 | |
| 206 | 206 | if ($controller->getTerminal()) |
@@ -198,7 +198,7 @@ discard block |
||
| 198 | 198 | public function getConfig() |
| 199 | 199 | { |
| 200 | 200 | return include( |
| 201 | - $this->router->getBasePath() .'/'. $this->modulePath .'/' . $this->getModuleName() . '/config/module.config.php' |
|
| 201 | + $this->router->getBasePath() . '/' . $this->modulePath . '/' . $this->getModuleName() . '/config/module.config.php' |
|
| 202 | 202 | ); |
| 203 | 203 | } |
| 204 | 204 | |
@@ -214,7 +214,7 @@ discard block |
||
| 214 | 214 | $nm = explode('\\', $name); |
| 215 | 215 | $module = array_shift($nm); |
| 216 | 216 | |
| 217 | - $class = $this->router->getBasePath() .'/'. $this->modulePath ."/". $module . "/source/" . implode("/", $nm) . ".php"; |
|
| 217 | + $class = $this->router->getBasePath() . '/' . $this->modulePath . "/" . $module . "/source/" . implode("/", $nm) . ".php"; |
|
| 218 | 218 | |
| 219 | 219 | if (file_exists($class)) |
| 220 | 220 | include $class; |