Мелкие правки
This commit is contained in:
parent
57773265b4
commit
cdf7527c43
2 changed files with 4 additions and 2 deletions
|
|
@ -56,6 +56,7 @@ class Controller_Front extends Controller_Action
|
||||||
$module = $this->loadClass($moduleFile, null, 'Module_');
|
$module = $this->loadClass($moduleFile, null, 'Module_');
|
||||||
if ($module) {
|
if ($module) {
|
||||||
// Инициализация модуля
|
// Инициализация модуля
|
||||||
|
$module->front = $this;
|
||||||
$module->viewPath = Shortcut::getUrl('modulepath', $name);
|
$module->viewPath = Shortcut::getUrl('modulepath', $name);
|
||||||
$module->name = $name;
|
$module->name = $name;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,11 +18,12 @@ class HttpRequest extends Collection implements ArrayAccess
|
||||||
*/
|
*/
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
$list = array (
|
$list = [
|
||||||
'data' => $_REQUEST,
|
'data' => $_REQUEST,
|
||||||
'get' => $_GET,
|
'get' => $_GET,
|
||||||
'post' => $_POST,
|
'post' => $_POST,
|
||||||
'cookie' => $_COOKIE);
|
'cookie' => $_COOKIE
|
||||||
|
];
|
||||||
|
|
||||||
$ajax = $this->isAjax();
|
$ajax = $this->isAjax();
|
||||||
foreach ($list as $key => $value) {
|
foreach ($list as $key => $value) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue