Re: Obtain count from associations

2007-05-18 Thread buzznut
/group/cake-php/browse_thread/thread/308ea2013... On May 18, 9:06 am, buzznut [EMAIL PROTECTED] wrote: It looks like the GROUP BY in the left join statement is causing the problem. The following query works and returns the results I want, but doesn't use Cake magic to make it work. SELECT

Re: Obtain count from associations

2007-05-18 Thread buzznut
It looks like the GROUP BY in the left join statement is causing the problem. The following query works and returns the results I want, but doesn't use Cake magic to make it work. SELECT `Project`.`id`, count(`Task`.`project_id`) FROM `projects` AS `Project` LEFT JOIN `tasks` AS `Task` ON

Re: Usind Ajax-Submit

2007-05-18 Thread buzznut
Here is how I use it. h3Quick Add (Task)/h3 ?php echo $form-create('Task',array('onSubmit'='return false'));? ?php echo $form-input('Task/name'); echo $form-hidden('Task/project_id',array('value'= $project['Project']['id'])); echo $ajax-submit('Quick Add',

Re: Obtain count from associations

2007-05-18 Thread buzznut
Looks like it was a problem with cake 1.2 that has been fixed. I was using 1.2.0.4798alpha. I just updated to the nightly build / 1.2.x.x_17.05.2007 and it worked as expected. On May 18, 7:49 am, buzznut [EMAIL PROTECTED] wrote: That is the thread that I have been working off to get this far

Re: Elements vs requestAction

2007-05-09 Thread buzznut
Thanks for the feedback!! --~--~-~--~~~---~--~~ 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

Elements vs requestAction

2007-05-08 Thread buzznut
As I have been working on my app, I find myself using elements quite often. I am wondering what the advantage/disadvantage is to just using a $this-requestAction call in a view and using the normal view file associated with the action instead of creating an element. Thanks for any comments or

Re: Cake 1.2 - Session woes

2007-05-01 Thread buzznut
Here is the exact code that I am using. function overview($id = null) { if (!$id) { $this-Session-setFlash('Invalid Company.'); $this-redirect(array('action'='index'), null, true); } $company = $this-Company-read(null, $id);

Cake 1.2 - Session woes

2007-04-30 Thread buzznut
I am having a difficult time working with sessions in my cake 1.2 app. It doesn't appear to be behaving the way that I expect. I have an action that sets a variable using the following line of code. $this-Session-write('companyName',$company['Company']['name']); When I access this action and

Re: Cake 1.2 - Data Validation - Multiple rules per field [hack/solution]

2007-04-12 Thread buzznut
Very cool. Thanks for your work on this. I will give it a shot today in my app. On Apr 12, 12:45 am, Dr. Tarique Sani [EMAIL PROTECTED] wrote: I needed it now!!! http://cheesecake-photoblog.org/doku.php?id=multiple_validations_per_... Not as elegant as I would want it but for now it works.

Re: Cake 1.2 - Data Validation - Multiple rules per field [hack/solution]

2007-04-12 Thread buzznut
Works great for me. Thanks again On Apr 12, 8:09 am, buzznut [EMAIL PROTECTED] wrote: Very cool. Thanks for your work on this. I will give it a shot today in my app. On Apr 12, 12:45 am, Dr. Tarique Sani [EMAIL PROTECTED] wrote: I needed it now!!! http://cheesecake-photoblog.org

Re: Cake 1.2 - Data Validation - Multiple rules per field [hack/solution]

2007-04-12 Thread buzznut
Sounds good. Let me know when you have it posted and I will give it a try. THanks On Apr 12, 9:55 am, Dr. Tarique Sani [EMAIL PROTECTED] wrote: On 4/12/07, buzznut [EMAIL PROTECTED] wrote: Works great for me. Thanks again Glad it works for you - there is a minor improvement though

Re: Cake 1.2 - Data Validation - Multiple rules per field

2007-04-11 Thread buzznut
Is it intended to be a part of cake 1.2 when it is finished? I believe that this should be part of the core cake functionality. On Apr 11, 6:00 am, Dr. Tarique Sani [EMAIL PROTECTED] wrote: On 4/11/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: 1. Multiple rules per field. I have been trying

Re: Cake 1.2 - Data Validation - Multiple rules per field

2007-04-11 Thread buzznut
I certainly did not take the response in a bad way. I apologize if I end up asking too many questions, but I am trying to do my best to educate myself on the 1.2 release and see if I can't help test, write docs or do whatever is needed to move it forward. I am even interested in donating to the

Re: Cake 1.2 - Data Validation - Multiple rules per field

2007-04-11 Thread buzznut
, buzznut wrote: I certainly did not take the response in a bad way. I apologize if I end up asking too many questions, but I am trying to do my best to educate myself on the 1.2 release and see if I can't help test, write docs or do whatever is needed to move it forward. You're doing what's