I'm not sure what you mean when you say: "how would you control static
pages"?  Can you explain what you want?  I may not know the answer,
but someone else might be able to respond if you haven't yet figured
it out.


On Sep 7, 5:57 am, ojonam <[EMAIL PROTECTED]> wrote:
> Hi,
>
> thanks, that's what I was looking for, indeed. But now, how would you
> control static pages, which you have routed ? Because I guess the
> pages_controller takes over here right ?
>
> Ojonam
>
> On Sep 5, 11:08 pm,BrendonKoz<[EMAIL PROTECTED]> wrote:
>
> > This took me what seemed like forever to find - and to which some
> > people thought to be a simple problem.  I probably should have added
> > it to "The Book" but never thought of it.  Oops.  It's the "pages"
> > controller, "display" action.  You'd want to explicitly allow it.  I
> > figured that all of my rendered "pages" would be perfectly acceptable
> > to offer access to guests, so I simply allowed all "display" actions
> > via Auth.
>
> > $this->Auth->allow(array('display'));
>
> > On Sep 5, 1:30 pm,ojonam<[EMAIL PROTECTED]> wrote:
>
> > > Hello,
>
> > > I am starting to use the Auth Component, and have, in my
> > > app_controller.php, defined the following beforeFilter method :
>
> > > function beforeFilter(){
> > >           if(isset($this->Auth)){
> > >                $this->Auth->loginAction = array('admin' => false,
> > > 'controller' => 'users', 'action' => 'login'
> > >           }
> > >     }
>
> > > And then, in each of my controllers, I naturally allow all actions I
> > > would like to be seen by the public.
>
> > > But there is one page I am not able to set that way, it is the
> > > home.ctp, the very first page. Where is the controller for this page,
> > > if any ? What do I do ?
>
> > > Thanks,
> > >ojonam
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to