adding $uses to app_controller breaks javascript helper

2007-10-04 Thread Brent Rieck

Hello,
   If I add a var $uses = array(anything) to app/app_controller.php I 
get the Fatal error: Call to a member function on a non-object error 
whenever trying to use the javascript helper in my default layout.  If I 
comment out the $uses line the javascript helper works as intended.

Is there a way around this?  Or am I doing something wrong?

thanks,
Brent

--~--~-~--~~~---~--~~
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: adding $uses to app_controller breaks javascript helper

2007-10-04 Thread Brent Rieck

AD7six wrote:
 comment out in your layout where you are using the js helper and read
 the error message which cake is desperately trying to get you to read.
 also you could/should add the js helper to your app controller helpers
 array, since obviously you are using it everywhere.

That was it thanks; I hadn't used one of the many undocumented features 
correctly in the model I was $using and it was trying to tell me.

Why would the javascript helper cause an error and not the html helper 
which is also used on the page and appears above the javascript helper 
in the default layout (and also appears in $helpers)


thanks,
Brent

--~--~-~--~~~---~--~~
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: Code Style Fanaticism

2007-09-25 Thread Brent Rieck

[EMAIL PROTECTED] wrote:
 Man I guess I'm really not getting my point across.  This will be my
 last try, I promise :)

Code formatting debates are religious debates, there's no point in 
having them and no matter what you say you'll never change anyone's 
opinion.

Indent provides a way around (or through?) these stupid debates so you 
can do something more fun.

Yes, the Cake people could just use indent on submitted code too.

But no, I don't think the language on their submission instruction pages 
is scary or a stumbling block.  The lack of complete documentation is a 
*much* larger stumbling block in my opinion.

--Brent


--~--~-~--~~~---~--~~
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: using adodb?

2007-09-23 Thread Brent Rieck

Claudia wrote:
 The sourcecode of dbo_adodb.php seems to imply that you specify only
 'adodb' as driver
 and 'mysql' in the parameter 'connect' - maybe you should try this.

I get the same result.

 From the lack of replies it seems that nobody uses adodb with cakephp.

--Brent

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



using adodb?

2007-09-20 Thread Brent Rieck

Hello,
   I'm new to Cake and have a question about how to use adodb rather
than the default database drivers as I keep getting the following error:

   Fatal error: Unable to load DataSource file dbo/dbo_adodb-mysql.php in
   /web/websites/asdf/cake/libs/model/connection_manager.php on line 163

   I haven't been able to find any working examples of a cake app that
uses adodb yet, and after searching the google groups archive for hints
it seems nobody else has had this problem (or if they have they haven't
posted about it), the manual is a little thin on adodb, and the search
feature on the cakephp.org website and bakery is broken right now it
seems too.

Here's my details:

I've got a copy of adodb stuffed in vendors/adodb

Here's the relevant snippet from my app/config/database.php file:

   var $default = array('driver'   = 'adodb-mysql',
'connect'  = 'mysql_connect',
'host' = 'localhost',
'login'= 'asdf',
'password' = 'asdf',
'database' = 'asdf',
'prefix'   = '');

I'm using cake version 1.1.17.5612

Any ideas?  Am I doing something boneheaded?

Thanks,
Brent


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