Wednesday, July 29, 2009

Re: $html->image()

in your controller:

public $helpers = array('Html');

On Wed, Jul 29, 2009 at 2:51 AM, Jogi Silalahi<if07035@gmail.com> 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 -
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: