Hello Brian,

You are right,but if you are facing this problem every time then better  way
to put this code in the app_controller.php.

On Wed, Jul 29, 2009 at 9:29 PM, brian <[email protected]> wrote:

>
> in your controller:
>
> public $helpers = array('Html');
>
> On Wed, Jul 29, 2009 at 2:51 AM, Jogi Silalahi<[email protected]> wrote:
> >
> > Hai,
> >
> > i try to display image in my controller :
> >  echo $html->image("header.jpg");
> >
> > but the image cannot display, it's like my $html undefined.
> > here the error :
> > Notice (8): Undefined variable: html
> > [APP\controllers\articles_controller.php, line 12]
> > Fatal error: Call to a member function image() on a non-object in
> > C:\AppServ\www\bv\app\controllers\articles_controller.php on line 12
> >
> > anyone can help me?
> >
> > thanks before.
> >
> > regards,
> >
> > --
> > - Jogi Henra Ersa Silalahi -
> >
> > >
> >
>
> >
>


-- 
Thanks & Regards,
Vijayk.
Co-founder (www.weboniselab.com)

"You Bring the Dreams, We'll Bring the Means"

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

Reply via email to