Errors and exceptions handling, #16
git-svn-id: svn+ssh://code.netmonsters.ru/svn/majestic/branches/evo@122 4cb57b5f-5bbd-dd11-951b-001d605cbbc5
This commit is contained in:
@ -20,12 +20,9 @@ abstract class Action
|
||||
|
||||
protected function extractParams()
|
||||
{
|
||||
$params = FrontController::getInstance()->getRouter()->getRoute()->getParams();
|
||||
if ($params) {
|
||||
foreach ($params as $name => $value) {
|
||||
if (is_string($name)) {
|
||||
$this->$name = $value;
|
||||
}
|
||||
foreach (Env::getParam() as $name => $value) {
|
||||
if (is_string($name)) {
|
||||
$this->$name = $value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user