haha, ok joke is on me.  I cut and pasted the line "var $helpers =
array('html', 'ajax', 'javascript');" from a forum and it was using
the left and right single quotes (hence the question marks in the
errors. )

Once I fixed that it worked fine.

Although the HTML helper is available by default, you have to declare
the rest of the helpers you plan to use in your AppController.  Also
if you are porting anything from php 5 to 4 make sure your $name vars
are all declared.


On Apr 8, 4:20 pm, "stephen.b" <[EMAIL PROTECTED]> wrote:
> On Mar 26, 4:57 pm, "Siegfried Hirsch" <[EMAIL PROTECTED]>
> wrote:
>
>
>
> > 2007/3/26, Samuel DeVore <[EMAIL PROTECTED]>:
>
> > > Sometimes I have found that different installs are more picky about
> > > the case of these kind of things
>
> > > try $Javascript and see if that helps
>
> > Thanks, I tried that and I have done similar thinks before, but it did not
> > help.
> > The strange thing is, that everything works on Win2k with php5. I have
> > thought about problems with ansi/utf8 files. Sometimes I had the problem
> > with BOMs in the files, but I have checked and have not found any BOMs.
>
> > Any other hints, where I could look further or a debugging method I could
> > use to track down the problem ?
>
> > Siegfried
>
> I am having the same problem in php 4.4.1.  I've seen a couple of
> suggestions in random forums to put $helpers var in your AppController
> (the main one).   However when I do this, I get a ton of other
> errors.
>
> class AppController extends Controller {
>
>         var $helpers = array('html', 'ajax', 'javascript');
>
> Like: Notice: Use of undefined constant ?html? - assumed '?html?'
> in .../dispatcher.php on line 158
> Notice: Use of undefined constant ?ajax? - assumed '?ajax?' in .../
> dispatcher.php on line 158
> Notice: Use of undefined constant ?javascript? - assumed
> '?javascript?' in .../dispatcher.php on line 158
> Notice: Use of undefined constant ?html? - assumed '?html?' in .../
> controller.php on line 250
> Notice: Use of undefined constant ?ajax? - assumed '?ajax?' in .../
> controller.php on line 250
> Notice: Use of undefined constant ?javascript? - assumed
> '?javascript?' in .../controller.php on line 250
> Warning: session_start(): Cannot send session cache limiter - headers
> already sent (output started at .../dispatcher.php:158) in .../
> session.php on line 146
> Warning: Cannot modify header information - headers already sent by
> (output started at .../dispatcher.php:158) in .../session.php on line
> 147
> Warning: session_start(): Cannot send session cookie - headers already
> sent by (output started at .../dispatcher.php:158) in .../session.php
> on line 146
> Warning: session_start(): Cannot send session cache limiter - headers
> already sent (output started at .../dispatcher.php:158) in .../
> session.php on line 146
> Warning: Cannot modify header information - headers already sent by
> (output started at .../dispatcher.php:158) in .../session.php on line
> 147
>
> and then of course the Fatal error: Call to a member function on a non-
> object


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