Re: Creating a helper: Undefined property error
Thanks for your feedback Francky. However, including $helpers(...'Util'...,'Head') both in the controller and CalendarHelper did not work. Any more ideas? --~--~-~--~~~---~--~~ 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 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 -~--~~~~--~~--~--~---
Re: Creating a helper: Undefined property error
The difference I have is my helpers do not include the head (because I do not need).. Might be linked to the head helper itself, but it's strange.. No more idea, I always include helper with Capital letter for first letter.. but should not matter On Dec 6, 2:23 pm, Gorka [EMAIL PROTECTED] wrote: Thanks for your feedback Francky. However, including $helpers(...'Util'...,'Head') both in the controller and CalendarHelper did not work. Any more ideas? --~--~-~--~~~---~--~~ 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 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 -~--~~~~--~~--~--~---
Re: Creating a helper: Undefined property error
After spending some time looking into it, I would say that the problem is related to the mode in which helpers are loaded. I haven't checked this too thouroughly, but it seems that helpers are loaded secuentally and their __contruct() methods executed. That means that you can't actually use other helpers -not in a reliable way- in your helper's contructor. Hope this helps someone, it took me a while to figure this out. --~--~-~--~~~---~--~~ 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 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 -~--~~~~--~~--~--~---
Re: Creating a helper: Undefined property error
Well, I have done it ... maybe in your case it's just a story of loading them into the right order ? On Dec 6, 5:28 pm, Gorka [EMAIL PROTECTED] wrote: After spending some time looking into it, I would say that the problem is related to the mode in which helpers are loaded. I haven't checked this too thouroughly, but it seems that helpers are loaded secuentally and their __contruct() methods executed. That means that you can't actually use other helpers -not in a reliable way- in your helper's contructor. Hope this helps someone, it took me a while to figure this out. --~--~-~--~~~---~--~~ 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 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 -~--~~~~--~~--~--~---
Re: Creating a helper: Undefined property error
I don't know...I first thought it might be PHP4/5 related, but I'm achieving the same results with PHP5 so this is out of the whiteboard. It certainly could be related to helper dependencies and the order in which they get actually loaded, but I find it hard to believe that I'm the first one biting this, so I must be missing something. I'm too close to the deadline of the project to look into this, but I'm intrigued. --~--~-~--~~~---~--~~ 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 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 -~--~~~~--~~--~--~---