Re: problem when i include javascript files
1st, sorry for mistakes I made in my last posts yesterday, was tired cause of work :p 2nd, I'm learning CakePHP for a week, can't yet imagine an action using 2 components (1 included in AppController and 1 in ThingsController) to be sure of what I'm testing but if you have the answer, I'm interrested in logically, this can't work cause variable is re-defined // AppController var $helpers = array('Html', 'Form', 'Javascript'); // ThingsController var $helpers = array('Text'); but for following code, dunno, may be, answer ?? :) // AppController var $helpers = array('Html', 'Form', 'Javascript'); // ThingsController $helpers[] = 'Text'; guess it's the same behaviour for $helpers and $components... ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: problem when i include javascript files
On Apr 5, 2007, at 9:17 AM, Dia wrote: > > is it possible to do : > > // AppController : > $components = array(a, b, c); > > // ThingsController > $components[] = c; Have you tried it, and if so, what happened? ;o) -- John --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: problem when i include javascript files
sorry, $controller[] = d; --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: problem when i include javascript files
you mean if I have var $helpers = array('Html', 'Form', 'Javascript'); in app/app_controller.php and var $helper= array('Text'); in xxxsController only Text helper will be available in xxxsController ? (sorry for just "reformulation-question" but sometimes have troubles with English :p) is it the same for $components ? guess yes... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: problem when i include javascript files
is it possible to do : // AppController : $components = array(a, b, c); // ThingsController $components[] = c; ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: problem when i include javascript files
Also remember that helpers are not additive, so if you have 'Javascript' in your AppController and you have other stuff in that controller for this page Javascript is gone. On 4/5/07, Dia <[EMAIL PROTECTED]> wrote: > > I think you should add > var $helpers = array('Javascript'); > in the controller corresponding to your view > > > > > -- (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 cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: problem when i include javascript files
I think you should add var $helpers = array('Javascript'); in the controller corresponding to your view --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
problem when i include javascript files
hello there, When i try to include a external javascript fle in my 'thtml' file echo $javascript->link('rico/rico.js'); it resides in webroot/js/ but iam getting the error Missing controller You are seeing this error because controller JsController could not be found. Notice: If you want to customize this error message, create app/views/errors/ missing_controller.thtml. Fatal: Create the class below in file : app/controllers/js_controller.php