I knew I was screwing something up ;) Boy, this is going to be a long road.

Thank you.

Ed

On Wed, Mar 24, 2010 at 1:13 AM, nurvzy <[email protected]> wrote:

> $button->makeButton(); not just make makeButton();
>
> Nick
>
> On Mar 23, 9:49 pm, Ed Propsner <[email protected]> wrote:
> > Can someone get me straightened out with helpers?
> >
> > I created a new file called Button.php and placed it in views\helpers.
> >
> > class ButtonHelper extends AppHelper
> > {
> >
> > function makeButton($button_stuff)
> > {
> > return $this->output(" // make button code ");
> >
> > }
> > }
> >
> >      ---------------------------------------
> >
> > >> users_controller.php
> >
> > var $helpers = array('Button');
> >
> >     -----------------------------------------
> >
> > >> /users/register
> >
> > echo makeButton(" button stuff ");
> >
> > I keep getting the error for undefined function makeButton() on page
> > /users/register.
> >
> > I had it all working just fine until I tried to add an additional helper
> and
> > then I started getting the errors.
> >
> > I've since removed all traces of the old helper but the errors still
> > persist.
> >
> > It seemed pretty cut and dry but I'm obviously not doing something right.
> >
> > I tried it in app_controller as well but it didn't work. What defines
> what
> > goes in app_controller and what goes elsewhere?
> > Helpers in app_controller are able to be used in other controller without
> > having to call them individually into that controller ??
> >
> > - ED
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<cake-php%[email protected]>For
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>
> To unsubscribe from this group, send email to cake-php+
> unsubscribegooglegroups.com or reply to this email with the words "REMOVE
> ME" as the subject.
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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

To unsubscribe from this group, send email to 
cake-php+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to