Re: ajax-link -- unable to get it working

2006-08-11 Thread Mark Quinn
On a related note.. i'm just delving into a load of scriptaculous and prototype work in my cake app. Does anyone know a nice tutorial or friendly reference for the cake ajax helper? I started writing straight prototype code and realised that was silly; of course, I should be using the ajax

Re: persistModel issue ?

2006-08-11 Thread Mark Quinn
On 8/11/06, [EMAIL PROTECTED] wrote: when I change persistModel from false to true in my controller I got an error on $this-MyModel-bindModel() what is persistModel supposed to do? I see no evidence of it in the manual and the api docs don't discuss it.

Re: controller Model : what's the matter of ...us ? US

2006-08-11 Thread Mark Quinn
On 8/11/06, JitZhang [EMAIL PROTECTED] wrote: how to set up a custom inflection in /app/config/inflections.php. Can you give me a sample? thanks! if you just want to add a specific word pair, add them to the array like this: /** * This is a key = value array of plural irregular words. *

Re: instantiating a model from find() results / using custom model methods

2006-08-09 Thread Mark Quinn
On 8/8/06, John David Anderson (_psychic_) [EMAIL PROTECTED] wrote: On Aug 8, 2006, at 10:21 AM, Mark Quinn wrote: The post controller does a recursive find to get a post and its comments. However this returns a big fat array of all the required data and does not use my yummy objects. I

Re: ?CAKEPHP=d550b7b78dbfe545d4afeda95d470eaa appended to all urls

2006-08-09 Thread Mark Quinn
On 8/9/06, [EMAIL PROTECTED] wrote: Has anyone ever had this happen to their urls before? http://www.site.com/controller/action?CAKEPHP=d550b7b78dbfe545d4afeda95d470eaa sounds like the session has been unable to use cookies and has had to fall back to using a URL rewriting technique to

views controlling layouts

2006-08-07 Thread Mark Quinn
On 8/3/06, lorenzo wrote: Mark Quinn ha scritto: My current problem is how to get a view to set a variable that is available in the layout. From everything i've read. this should be easy, but i'm just not getting any loving. I baked a trivial example: my layout contains pmy favourite

Re: HABTM with 3 tables

2006-08-07 Thread Mark Quinn
i recommend you have a look at DHH's keynote at railsconf this year, where he describes a way of further embracing CRUD and viewing relationships as CRUDable things in their own right. e.g. think of the user-group relationship as a CRUDable Membership model. suddenly the world becomes a much

Re: views controlling layouts

2006-08-07 Thread Mark Quinn
On 8/7/06, ByteDoc [EMAIL PROTECTED] wrote: The line that has to be drawn here is not easy to see, I hope I can make my opinion clear without using too much words (long explanations are more confusing than helpful). A view should not be able to set any kind of data whatsoever - because it

Re: Switching Layouts

2006-08-03 Thread Mark Quinn
On 7/31/06, lorenzo [EMAIL PROTECTED] wrote: nate ha scritto: but that's controller code. You should, however, still be able to use $this-layout in your view templates. Sure ... but is better in controller than in view ;) I've just been using ? $this-layout = 'other_layout'; ? which

Re: Advanced Validation - tagIsInvalid() and isFieldError()

2006-08-03 Thread Mark Quinn
isFieldError takes the full errorString, throws it away and then only returns true or false; This means that the errors are not avilable to you to display. strange that this is the case, i'm assuming its some sort of bug, or something leftover as the code has switched between 2 designs. I'm not

Re: Advanced Validation - tagIsInvalid() and isFieldError()

2006-08-03 Thread Mark Quinn
You may want to consider using Flexifix for this. I could not get it to work for helpers (only controllers and models) but ymmv. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group,