Simply replace

> <?php echo $date; ?>
>

To (on view -- default.ctp) 1.2.x

> <?php echo date('r'); ?>
>

Solved!

On Dec 10, 2007 2:03 PM, Louie Miranda <[EMAIL PROTECTED]> wrote:

> I have added this on one of my controller for function index()
>
> > $this->set('date', date("r"));
> >
>
> And added
>
> <?php echo $date; ?>
> >
>
> On /app/views/layout/default.ctp
>
> It works only on that controller, and when i go to other pages. Obviously,
> i would add $this->set('date', date("r")); this for all to be able to work.
> Is there like a global preference for this kind of things? It would be
> tiring to set this for all of my controllers and functions.
>
> Thanks
> --
> Louie Miranda ([EMAIL PROTECTED])
> http://www.axishift.com
>
> Security Is A Series Of Well-Defined Steps
> chmod -R 0 / ; and smile :)




-- 
Louie Miranda ([EMAIL PROTECTED])
http://www.axishift.com

Security Is A Series Of Well-Defined Steps
chmod -R 0 / ; and smile :)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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