Re: Passing functions to views

2007-02-09 Thread zafoeta
mindcharger wrote: > I think this is a fairly good opportunity to learn... and to turn good designed off-the-shelf-code into so called spaghetti- code ... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP"

Re: Passing functions to views

2007-02-09 Thread mindcharger
I think this is a fairly good opportunity to learn... ;-) On Feb 8, 3:50 pm, "Károly Kiripolszky" <[EMAIL PROTECTED]> wrote: > Mostly because I don't know how to use the HtmlHelper in the > controller... :P --~--~-~--~~~---~--~~ You received this message becaus

Re: Passing functions to views

2007-02-08 Thread Károly Kiripolszky
Mostly because I don't know how to use the HtmlHelper in the controller... :P --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsub

Re: Passing functions to views

2007-02-08 Thread AD7six
On Feb 8, 1:53 pm, "Károly Kiripolszky" <[EMAIL PROTECTED]> wrote: > Writing a function in an existing file instead of creating another > source file (and also a class) is more simple for me. why pass the function, instead of passing the data after using the function..? AD7six Please note: The

Re: Passing functions to views

2007-02-08 Thread Károly Kiripolszky
Writing a function in an existing file instead of creating another source file (and also a class) is more simple for me. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send

Re: Passing functions to views

2007-02-08 Thread Ryan
Why not use a view helper for this instead? This is exactly what they are made for. Regards, Ryan Rose http://www.digiwize.com On Feb 8, 5:49 am, "Károly Kiripolszky" <[EMAIL PROTECTED]> wrote: > Hi ppl! > > I discovered that it is possible to pass functions defined in the > controller to the v

Passing functions to views

2007-02-08 Thread Károly Kiripolszky
Hi ppl! I discovered that it is possible to pass functions defined in the controller to the view. However I must prefix the $this->set() statement with an @ symbol or else PHP claims that there's and undefined constant in the view at the line you try to call it. For example I define my title form