Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Leaderboard

Popular Content

Showing content with the highest reputation on 12/01/2011 in Posts

  1. объяснил же уже return $this->forward('account/login');куда редиректить если пользователь не залогинен, в данном случае на страницу логинав вашем же нужно заменить на адрес вашей страницы
    1 point
  2. создать свою страницу и редиректить на неё
    1 point
  3. тем не менее мой вариант работает. если не получается самому бесплатно, сделаю за 500
    1 point
  4. вон же вам выше написали) способ то что надо в файл \index.php добавляем $controller->addPreAction(new Action('common/login'));после строки // Front Controller $controller = new Front($registry); создаем файл \catalog\controller\common\login.php со следующим содержанием <?php class ControllerCommonLogin extends Controller { public function index() { if (!$this->customer->isLogged()) { echo 'Access denied'; } } } ?> все работает без проблем, только соответственно вместо вывода ошибки делать редирект на форму входа.
    1 point
  5. по аналогии с админкой catalog\controller\account\login.php public function login(){ if (!$this->customer->isLogged()) { return $this->forward('account/login'); } } index.php // Login $controller->addPreAction(new Action('account/login/login')); но возможно есть варианты проще
    1 point
  6. да, средствами магазина - никак, но можно в index.php редиректить на страницу логина пока в сессии не появится customer id, если конечно вы понимаете о чем я
    1 point
Guest
×
  • Create New...

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.