Sunday, February 26, 2012

Re: Adjusting the number of elements in the layout

Thanks Stephen... I will try this method and let you know how it looks/
works. Appreciate your help.

with regards
padma.

On Feb 24, 10:25 am, Rob Maurer <robmau...@gmail.com> wrote:
> if (!$session->read('Auth.User')) {
>         echo " | <a class='login' href='" . $html->url(array( "controller" =>
> "users", "action" => "login")) . "'>Log In</a>";} else {
>
>         echo " | " . $session->read('Auth.User.first_name') . " " . $session->read('Auth.User.last_name') . " is logged in | " .
>
>                 "<a class='login' href='" . $html->url(array( "controller" =>
> "users", "action" => "my_account")) .  "'>My Account</a> | " .
>                 "<a class='login' href='" . $html->url(array( "controller" =>
> "users", "action" => "logout")) .              "'>Log Out</a>";}
>
> works for me - Rob
>
> On Feb 22, 11:35 pm,padma<padmakumar.peru...@gmail.com> wrote:
>
>
>
> > Hi all,
>
> >   I have a default layout... for which in the header div, I needed
> > adjust the number of div's in it dynamically without creating multiple
> > layouts for each controller action combination...Is it possible.
>
> >   for eg...before I login I show the login button in the default div
> > in the first page...After I have successfully logged in I show the
> > logged in account info, instead of the login button.  Also if I am in
> > a different view and I need to navigate back to the first page, i need
> > a home div as well... All these are not part of the content for which
> > view is rendering.  It is to be in a seperate div...Can this be
> > achieved.
>
> > Thanks
> >padmaKumar- Hide quoted text -
>
> - Show quoted text -

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


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

No comments: