Избавляемся от констант и глобальных переменных
This commit is contained in:
parent
8b38b2a3cc
commit
f041488554
10 changed files with 39 additions and 33 deletions
|
|
@ -67,6 +67,7 @@ class Manager extends Filter
|
|||
*/
|
||||
public function execute(HttpRequest $request)
|
||||
{
|
||||
// print_r($request->get('mode'));
|
||||
foreach ($this->condition as $condition) {
|
||||
if (call_user_func($condition[0], $request)) {
|
||||
$layout = $condition[1];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue