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

Как вывести ссылки в личном кабинете


gatapov
 Share

Recommended Posts

Необходимо сделать меню пользователя в личном кабинете.

В файле common/account.twig добавил:

<div class="row">
<h1>Мои данные</h1>
<div class="col-sm-3">
<div class="osnovnoe">
<ul class="list-unstyled">
<li><a href="{{ logout }}">{{ text_logout }}</a></li> //не работает
<li><a href="{{ account }}">{{ text_account }}</a></li>//не работает
</ul>
</div>
<div class="osnovnoe-menu">
<ul class="list-unstyled">
<li><a href="{{ login }}">Мои данные</a></li>//не работает
<li><a href="{{ order }}">Мои заказы</a></li>
<li><a href="{{ shopping_cart }}">Корзина</a></li>//не работает
<li><a href="{{ wishlist }}">Избранное</a></li>
<li><a href="{{ edit }}">Редактировать профиль</a></li>
<li><a href="{{ password }}">Изменить пароль</a></li>
<li><a href="{{ newsletter }}">Мои подписки</a></li>
</ul>
</div>
</div>
<div class="col-sm-9">

</div>
</div>

Однако, не все ссылки работают.В коде отметил какие не работают

Как правильно вывести ссылки в шаблон?

 

Link to comment
Share on other sites


А в контроллере их добавляли? Чтобы использовать переменные в шаблоне, нужно объявить их в родительском контроллере (common/account, судя по всему). 

Link to comment
Share on other sites

24 minutes ago, halfhope said:

А в контроллере их добавляли? Чтобы использовать переменные в шаблоне, нужно объявить их в родительском контроллере (common/account, судя по всему). 

точно! блин спасибо)туплю

Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • 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.