Re: How to use the 'finderQuery' attribute of your model definitions.

2007-07-29 Thread dakomoon
Sorry Stefano I don't know where to send you. All I can tell you is that it's a variable that Cake automatically populates when it generates the query and it will be populated with the id of the model that the finder query is being defined on. In this case since I'm trying to find out airport in

Re: Best place to declare global null variable

2007-07-06 Thread dakomoon
I'd put it in app_controller. I'm a little uncomfortable defining applications specific variables w/in the framework files. hth --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this gro

Re: How do I create a custom SQL query

2007-07-06 Thread dakomoon
Yea, you are getting three arrays. The first array is the array of different models returned, the second array is the array of different rows from each model, and the third array are the columns of each row. It might help to remember that cake collates result sets into associative arrays, but si

How to use the 'finderQuery' attribute of your model definitions.

2007-07-06 Thread dakomoon
This morning I was contacted by a client who was in a bit of a dither. Apparently one of his web pages wasn't loading and he (rightly so) wanted me to fix it. When I took a look at said web page it gave me everyone favorite fatal error indicating the script exceeded it's memory limit. "How is t

Re: How to validate a custom form?

2007-02-07 Thread dakomoon
Steniskis is right, it's not clear what you're trying to do. If you want to use a model class to perform your validation for you you can use one as long as you don't try to save that data, but you need to explicitly call the validate function on the model after it has been populated with your da