Saturday, December 26, 2009

Re: How to hide/show links in view /default.ctp/ for different types of user group

It depends what type of links you want to display.

If you want to display static links, hardcoded in your layout, you can
use an if clause in the layout.
If you want to display the links obtained from a model, you get them
in the controller, you use the set method to make them available in
the view and after that, you use an if clause to display them or not
in the view.

On 26 Dez, 02:12, kani <infok...@gmail.com> wrote:
> Sorry my english is not well.i am a begginer. I am using cakephp 1.2.5
>
> i want to hide/show different links for each logged in user  any way /
> admin ,manger ,user. /
> Shoud i do this in ap_controller ? And how to do this
>
> link1             \
>                      \
> link2 \              \
>          \               \
> link3   * manager  \
>          /                 * admin
> link4 /                 /
>                         /
> link5 \              /
>          * user   /
> link6 /          /
>                  /
> link7        /

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: