On 9/26/07, Jacob83 <[EMAIL PROTECTED]> wrote:
> P.S.: another (evtl. related) problem is, that i get an error like
> call to non-member class when i add the javascript->link('prototype')
> stuff to my default layout and call a so called page. What did i do
> wrong?
>
Oh and on this, in all likelyhood the javascript helper is _not_
included in the default pages_controller.php that Cake provides so you
have two choices (at least)
1. make a copy of the pages_controller.php in the cake lib/controllers
into your own controllers folder for your app and add the helpers you
want to use.
2. create your own app_controller.php file at the top level of your
app and using the documentation add the helpers that you want to have
at a minimum included in all your views
(I do both things cus there is stuff I like to add to pages ;)
Sam D
--
(the old fart) the advice is free, the lack of crankiness will cost you
- its a fine line between a real question and an idiot
http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---