ajax and auth component: logs out when multiple ajax requests are made

2009-10-20 Thread bMilesp
Hello, i have 2 ajax requests (SWFUpload and a jquery imageScroller plugin). when i do one of the two requests, works fine. When i do the other request, the session is never set and it logs out. I have Security.level = 'medium' in core.php. the cookie is sent in both request headers; i can debug

$this->data unexpected values in AppController?

2009-02-04 Thread bMilesp
Hello, i have the following data POSTed to my cake app as application/xml content-type: UsernamePass simple enough. Now, I want to do a Set::reverse(new Xml($this->data)); in the beforeFilter method in AppController.php, but when i debug ($this->data) in AppController I get empty space: class

post XML and $appController->data

2009-02-04 Thread bMilesp
hello, i have a Users controller. i'm trying to send application/xml data to my cake app's AppController. I can see the xml object in my user controller action when i debug($this->data). However when i debug this->data in my beforeRender method in AppController, i get an empty array??? where in

Re: saveAll limited to "one level deep" ?

2008-09-22 Thread bMilesp
after extensive research, saveAll only supports one level deep. I agree that this would be agreat feature. On Sep 2, 6:11 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > No it doesn't. > It explains exactly the basic functionality I know works. > What I was interested in finding out was if t

duplicate a record and it's associative data?

2008-09-22 Thread bMilesp
hello everyone- I have a model: Day -> hasMany -> Time -> hasMany -> Prices Day has a category_id (as well as a primary key day_id). i want to duplicate a number of day records and all of the associative data, based on the category_id. so i would do: $this->Day->find('all', array('conditions'

a complex data model- a cakephp breakthrough?

2008-09-17 Thread bMilesp
This is an interesting problem that i believe can have a reasonable solution using cakephp. i'm not going to get into the background, but it stems from this idea: http://fornicode.com/2008/03/18/cakephp-a-has-either-association/ now for the business. my current company has a custom built CMS an

i want to duplicate records and their associtations

2008-02-14 Thread bMilesp
hello all! i want to duplicate not ony one table record, but that record and it's associated records, and have the foreign keys changed to reflect the new insert_ids. for example, i have this association: weeks->days->hours i want to duplicate the week, it's days and hours too. So the foreign

Re: xmlhelper cake 1.2.0.5875

2008-01-16 Thread bMilesp
this problem also exists in v 1.2.0.6311. I believe this may be a bug but not positive. -bmiles On Jan 15, 12:36 am, bMilesp <[EMAIL PROTECTED]> wrote: > hello, i'm using the xmlhelper to convert a findall() array, with > Model associations, into XML. Everything works as pla

xmlhelper cake 1.2.0.5875

2008-01-15 Thread bMilesp
hello, i'm using the xmlhelper to convert a findall() array, with Model associations, into XML. Everything works as planned, except that the name of the xml nodes that are model associations are labeled instead of if they are nested within another xml node and contain values. eg: