Re: How do I let a user pick associated records in my view

2010-04-05 Thread Zac Tolley
I took http://www.senamion.com/blog/2010/02/20/jquery-select-multiple-double-side/ and I have modified it to use jquery UI style buttons Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are sub

Re: How do I let a user pick associated records in my view

2010-04-04 Thread Zac Tolley
I ended up using the find list thing, which I came across by accident.. but then I found a jquery control that turns selects into the style I want, so I am about to try that. So I still get to use all the auto magic stuff an get the look I need. Check out the new CakePHP Questions site http://cake

Re: Version 1.3

2010-04-03 Thread Zac Tolley
you have to display it with a separate call, put this in your view element('sql_dump'); ?> Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group.

How do I let a user pick associated records in my view

2010-04-03 Thread Zac Tolley
Up until now I've thrown together an app using scaffolding for the admin screens, but now I'm working on replacing them with my own code so I can put in some more logic and make the user friendly. A common pattern I am coming across is I may have a model that belongs to something or has many of so

Re: Can I filter on models deep in a 'contains' ?

2010-04-01 Thread Zac Tolley
I think custom query would be the > > best solution. > > Lucca Mordente > > > On Thu, Apr 1, 2010 at 11:52 AM, Zac Tolley wrote: > > > I'll give that a go, but then I want to use or's... like I want to to > > say if user.username = 'xyz'

Re: Can I filter on models deep in a 'contains' ?

2010-04-01 Thread Zac Tolley
I'll give that a go, but then I want to use or's... like I want to to say if user.username = 'xyz' or item.name = 'xyz' Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to th

Can I filter on models deep in a 'contains' ?

2010-04-01 Thread Zac Tolley
I'm trying to use a combination of the 'contains' behaviour, pagination and filters to generate data to show in a table. The application is an auction app that has auctions, which have bids on them and each bid is also associated with a user. Auction Item Attribute LatestBid User In

Re: How do I add custom validation in controller?

2010-02-23 Thread Zac Tolley
Though that said, thats what you are saying :) and but the terms thing..? I might just cheat and put in some JS to check that they agree to the terms Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because

Re: How do I add custom validation in controller?

2010-02-23 Thread Zac Tolley
Ah but, the thing is I'm verifying fields that are not part of the model, I'm simply verifying that they agree to some terms and that the 2 passwords they entered match Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received t

How do I add custom validation in controller?

2010-02-23 Thread Zac Tolley
I have created a form with the html and form helpers and setup validation rules in my model and this seems to work pretty well (anyone got this integrated with jquery?) I have a question though, in my form I have a couple of extra fields, one is a checkbox to accept terms and conditions, and anoth

Ajax requests dont response with the correct content type

2009-10-29 Thread Zac Tolley
I'm using an ajax library on the client side of my application to issue calls for json data from the cakephp server. In the request that is made to the controller the following header is included: X-Requested-With : XMLHttpRequest As I understand it this should be recognised by cake so that th

Need advice on testing

2009-08-19 Thread Zac Tolley
I'm currently developer a set of test cases for an app I'm working on. I've read though the docs on creating tests, and have created a set of unit tests for my model, allowing me to make confirm that my model can save, find, update, count data and confirm relationships between tables work. Now I'

Re: CakePHP not recommenable for busy websites?

2008-09-21 Thread Zac Tolley
Not only can u cache but In the find function use can set how deep the result goes and I find this actually results in ability to have fine tuned lean db access Sent from my iPhone On 21 Sep 2008, at 07:35, toby78 <[EMAIL PROTECTED]> wrote: > > I am currently evaluating different frameworks