Re: cakePhp showing menu or login form

2012-07-05 Thread Greg Skerman
you going to show us some code to help you with, or would you prefer us to write something for you? On Thu, Jul 5, 2012 at 6:07 AM, Peter Nassef wrote: > Hello cakephp team > > i need to make website with admin panel > > but ican't do that > > i need to know who can make admin panel ?? > with s

Re: cakePhp showing menu or login form

2012-07-04 Thread Peter Nassef
Hello cakephp team i need to make website with admin panel but ican't do that i need to know who can make admin panel ?? with session and site and make admin in split section -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questio

Re: cakePhp showing menu or login form

2012-07-04 Thread lowpass
I would create two elements, menu.ctp and login_form.ctp, and load either based on whether the person is logged in. if ($this->Session->read('Auth.User')) { echo $this->element('menu'); } else { echo $this->element('Users/login_form'); } On Wed, Jul 4, 2012 at 3:01 PM, Chris wrote: > I a

cakePhp showing menu or login form

2012-07-04 Thread Chris
I am the beginer in cakePhp. I have a problem. My website has one div, and inside of it it has to show menu or login form (depends on user login). Where can I do it? It is repeated in all pages. I think, that I should create this in layout, to not repeat it in every view, but really havo no ide