>
> 1. Cake echos the controller name called and messes up my layout.
> Where is the code that is doing this?
No idea. Sounds like a debug statement left in somewhere but I think 
that's unlikely (never seen it happen before). But maybe someone else 
can help you on that.
> 2. I get errors about undefined properties for a helper (pdf helper
> from bakery) defined as
>
> class PdfHelper extends FPDF {
> }
>
> Undefined property: PdfHelper::$helpers in /www/cake/libs/view/
> view.php on line 789
> Undefined property: PdfHelper::$helpers in /www/cake/libs/view/
> view.php on line 677
>
> The Helper still works fine b
That's probably because helpers are meant to extend the AppHelper class 
which got a property called 'helpers'. I can see that you probably just 
want to enhance the interface for an existing PDF generation class and 
it seems annoying that CakePHP expect the helper to have this attribute 
but that's what the conventions are for: If you play by the rules your 
life will be wonderful and things will just work and if you don't then 
things like this are likely to happen to you. So my suggestion for this 
is that you either extend AppHelper and write some code to serve as a 
proxy/interface between it and your FPDF class or embrace your violation 
of the conventions and put your PdfHelper in /vendors, load it using the 
vendor() function and create an instance of it in your view manually. 
What you do depends on your specific needs (a class representing a pdf 
that you can have several instances of -> vendors, an interface for 
creating one pdf at a time -> helper)

-- Felix
--------------------------
http://www.thinkingphp.org
http://www.fg-webdesign.de


RLR wrote:
> I just upgraded to cake 1.2.x.x today.
>
> Two things are driving me nuts and I can´t find out what is different.
>
> 1. Cake echos the controller name called and messes up my layout.
> Where is the code that is doing this?
>
> 2. I get errors about undefined properties for a helper (pdf helper
> from bakery) defined as
>
> class PdfHelper extends FPDF {
> }
>
> Undefined property: PdfHelper::$helpers in /www/cake/libs/view/
> view.php on line 789
> Undefined property: PdfHelper::$helpers in /www/cake/libs/view/
> view.php on line 677
>
> The Helper still works fine but the notice messages are annoying. Is
> there a way to fix this?
>
> Thanks!
> Have a nice day
>
>
> >
>
>   

--~--~---------~--~----~------------~-------~--~----~
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