I have to use some custom query in my Permission_Authentication
component (which is always loaded before any controller using
beforeFilter in app_controller), so I need to use ConnectionManager
each time I load this component.
(If there is any other way to do custom query please do tell me)
I tried var $components = array('ConnectionManager'); in my compenent
and the suddenly get this error out of no where:
"Notice: Undefined variable: javascript in F:\xampplite\htdocs\linkrepo
\app\views\layouts\default.thtml on line 33
Fatal error: Call to a member function link() on a non-object in F:
\xampplite\htdocs\linkrepo\app\views\layouts\default.thtml on line 33"
The line in default.thtml is just :
<?=$javascript->link(array('prototype', 'event-selectors')); ?>
which works fine if I don't load ConnectionManager.
I tried to put $components = array('ConnectionManager'); in
app_controller instead and get exactly the same error.
Anyone knows the cause of this strange error?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---