Hi List,

I may be aproaching this incorrectly but it seems to me that the
current helper I'm working on could use the ability to invoke a
renderElement() call.  However, it seems that for Cake 1.1.17 anyway,
that renderElement is only meaningful in the view.

Well, my helper is accessed in a view, so I figured there had to be
*some* link back out to the view that I could use to shoot off a
renderElement.

I First tried $this->view->renderElement(); but that didn't work.

It says:

Notice: Undefined property: ConcisePrinterHelper::$view
Fatal error: Call to a member function renderElement() on a non-object

(ConcisePrinterHelper is my Helper)

So I print_r ed my $this at that point, and found that print_r thinks
there is a view ???
So I print_r ed $this->view, and got

Notice: Undefined property: ConcisePrinterHelper::$view
Notice: Undefined property: ConcisePrinterHelper::$view
Fatal error: Call to a member function renderElement() on a non-object

The same error, once for the print_r then once for the invocation.

Figuring this was something automagical, I added

var $view = null;

Now when I print_r ed $this->view it showed up as the View Object.

But my invocation still got me:

Notice: Undefined property: ConcisePrinterHelper::$view
Fatal error: Call to a member function renderElement() on a non-object

What am I missing?

Isn't there a way for a Helper to get a view?

Jeff


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