RE: generateDate year setting

2006-12-09 Thread Grant Davies
Thanks Nate, I was tempted to do that but was trying not to duplicate cake functionality if it was already there... thanks a bunch! Grant -Original Message- From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of nate Sent: Saturday, December 09, 2006 11:56 AM To: Cake PHP

RE: Rendering a view for ajax and non ajax

2006-12-05 Thread Grant Davies
Thanks, I ended up solving it using an element and removing the ajax setting from the render call, thanks for your help. grant ... > b l u e t u b e i n t e r a c t i v e. .: grant davies .: 404.428.6839 (c) .: 708-983-1577 (F) > [EMAIL PRO

RE: Rendering a view for ajax and non ajax

2006-12-04 Thread Grant Davies
e I may just be going about it all wrong. Cheers Grant ... > b l u e t u b e i n t e r a c t i v e. .: grant davies .: 404.428.6839 (c) .: 708-983-1577 (F) > [EMAIL PROTECTED] > http://www.bluetube.com/bti -Original Message- From: cake-php@googlegrou

Rendering a view for ajax and non ajax

2006-12-03 Thread Grant Davies
ate the details of the table_contents.thml but when the page loaded the first time its table_content div is the same as when its called from ajax and I hate having a duplicate view thml file. Cheers Grant ... > b l u e t u b e i n t e r a c t i v

ajax issue "stale" data ?

2006-11-30 Thread Grant Davies
g so I deleted the cache files at each click but no change, I'm trying to figure out what this is, it appears the view gets the right data, but the element rendered from the view is getting the old data... its very odd. Cheers Grant ....... > b

RE: Associations without using foreign key?

2006-11-12 Thread Grant Davies
Luigi, The join table which is the 'extra' table is a common practice and good design principle in when working with databases, when you say it seems like unnecessary work, how will you stop someone inserting a record in your blog favorites that has no relationship to the blog posts table, you w

RE: Cake PHP Vs Prado Vs Symfony

2006-11-11 Thread Grant Davies
I can't really comment on other php frameworks. But I've been developing software professionally for over 18 years, my "day" job is an Enterprise Architect and I do a lot of J2EE apps, I've done EJB's, spring, struts, hibernate, and then on the .NET side Nhibernate amongst another trillion frame

RE: transactions

2006-11-10 Thread Grant Davies
ction to "catch" unknown methods). The more correct way is certainly to use the internal structures which need to be patched... Cake is a nice framework, but transactions should have a high priority on the feature list as they are necessary for complex applications. Grant Davies wrote

RE: Controller calling an other controller?

2006-11-08 Thread Grant Davies
Thankyou, for some reason I'd interpreted the request action as a way to access another view and not just the action of a controller, thanks for the clarification. Grant -Original Message- From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jon Bennett Sent: Wednesday,

RE: Web services, xmlrpc, help!

2006-11-06 Thread Grant Davies
I'd like to see it too, we have to implement a REST based service but may be able to borrow some concepts. Grnat. -Original Message- From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Monday, November 06, 2006 3:14 PM To: Cake PHP Subject: Re:

transactions

2006-11-04 Thread Grant Davies
I've done some searching and found transactions comes up sometimes but there doesn't appear to be a definite answer. I found this : https://trac.cakephp.org/ticket/832 And I see that the dbo_mssql.php file has some transaction support in it. Has anyone tried the patched model with mysql to use

RE: more validate options

2006-11-03 Thread Grant Davies
I'm not very good at reading regex so will that string support domestic numbers only or international too ? Grant. -Original Message- From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of rubo77 Sent: Friday, November 03, 2006 7:05 AM To: Cake PHP Subject: more validate

RE: Saving multiple models from a view and validation

2006-11-01 Thread Grant Davies
Ok, now I have my validation working with a save I have a bit of a conundrum.   It doesn't look like cake fully supports transactions,   My Asset hasOne AssetData   The asset_data table has a foreign key asset_id back to the asset table.   To insert a complete asset, I need to inser

RE: Saving multiple models from a view and validation

2006-11-01 Thread Grant Davies
I got validation to work by changing this : $this->validateErrors($this->AssetData); to $this->validateErrors($this->Asset->AssetData); Can someone tell me why the former doesn't work ? Grant -Original Message- From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of re

RE: Application Architecture

2006-10-26 Thread Grant Davies
Thanks Grant, that does make a lot of sense, I do display a form, the xml usually has incomplete data that the user needs to update in the form, so the xml is there just to "seed" the form. I guess I can read an example record from the database and then dump the associative array to a file so I c

RE: Application Architecture

2006-10-25 Thread Grant Davies
Wow, I'm loving cakePHP and have made a ton of progress. What I'm trying to figure out now is the best approach for the xml/view/save. I have my xml loading and figured out and my form, I'm thinking : A) do I use the bake utility to create a concrete version of my model (assume to has all the

RE: THTML files not working

2006-10-25 Thread Grant Davies
I'm a noob and have a suggestion, get the eval copy of Nusphere's php ed , hit a page then step through the code in the debugger, I didn't really understand the controller/view mapping until today, when I stepped through the code and figured out how cake looks for your request, maps it to a contro

RE: Application Architecture

2006-10-25 Thread Grant Davies
Thanks grant. What I've done so far is created a controller to parse the xml, it uses xpath to get the nodes/attributes that I need (I don't need the whole of the xml). No what I want to do is populate an instance of a model "asset" with the contents of the nodes I captured, I see that the mode

RE: new to cake, and mvc in general

2006-10-23 Thread Grant Davies
I would be very interested in responses to this, especially the validation areas so please keep the discussion on-list if possible. Thanks Grant -Original Message- From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Monday, October 23, 2006 12:2

RE: Got the cake blog running but got a "cache" issue ?

2006-10-22 Thread Grant Davies
On my windows box right now, will also be testing on my mac :) I have to figure out what user apache runs under windows, but for now I made it writable and it seems to be behaving :) Thanks for the tip. Grant -Original Message- From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED]

RE: Got the cake blog running but got a "cache" issue ?

2006-10-22 Thread Grant Davies
oops, sorry for the hijack and thanks for the link. Grant. -Original Message- From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of nate Sent: Sunday, October 22, 2006 10:59 PM To: Cake PHP Subject: Re: Got the cake blog running but got a "cache" issue ? Hi Grant, try

Got the cake blog running but got a "cache" issue ?

2006-10-22 Thread Grant Davies
cake can't write a cache file ? or something else ?   cheers, Grant     . › b l u e t u b e p r o d u c t i o n s .: Grant Davies  { c.t.o } .: 404.428.6839 (office) .: 708.983.1577 (fax) › [EMAIL PROTECTED] › http://www.bluetube.com › http://theresidentalien.typepad.com  

RE: First time installation - need help

2006-10-22 Thread Grant Davies
Thanks, turned out to be I needed an empty controllers folder under the cake install and all the warnings went away, I'm now configuring mysql and have added the php folder to the windows system path and enabled the php_mysql.dll in the php.ini file, but its still giving me no love, I'm going to