Extending Cake Shell Classes

2009-10-14 Thread vb13
I have a number of shell scripts and they share common functions so I though it would be smart to have a common base class MyShell that extends Shell and have all my classes extend MyShell. Well, it turns out if I do so, initialize() method of subclasses is not getting called. See line 316 in the

Re: afterFind() inconsistencies ?

2009-09-16 Thread vb13
iFeghali, I have a somewhat similar problem. I have spent today an hour or two looking into how Cake handles db queries for hasMany vs. hasOne or belongsTo relationships. Hopefully this will help you to understand why are you seeing what you are seeing. Cake processes hasMany and hasOne,

Re: afterFind() inconsistencies ?

2009-09-16 Thread vb13
My colleague just pointed out to me that afterFind() passes another parameter $primary that is supposed to help (see http://book.cakephp.org/view/681/afterFind). However I see it unitialized when it is supposed to be true. On Sep 16, 5:23 pm, vb13 val.brod...@gmail.com wrote:  iFeghali, I

Loosing SESSION When Transitioning from https to http Using Session Component

2009-08-17 Thread vb13
I have a User Edit page that submits data over https /user/edit. The controller saves data and redirects via http to /user/view. In the process I use php session to read/write some data. If I access session data using Cake Session component, I loose my session. As a result I get redirected to a

Re: Loosing SESSION When Transitioning from https to http Using Session Component

2009-08-17 Thread vb13
Yes, I am doing this to save a find in a view. You are good Brian :). Except that the find is not a database call, it calls Salesforce via an API so I want to save a couple of seconds of a user's time. Still do not understand why Cake does this while I can use $_SESSION directly and everything

Re: Form Helper in 1.2.0.7962 Does not Hide Id's

2009-01-09 Thread vb13
No, not to my knowledge On Jan 8, 5:46 pm, Gwoo gwoo.cake...@gmail.com wrote: Can you pinpoint where the change happened? I am not aware of any changes to form between RC3 and Final that would affect the usage. Perhaps you were using form-hidden() before?

Dynamically Generating Limit in Pagination

2008-11-10 Thread vb13
Hi all, I have an interesting problem regarding pagination. I develop a system to display reports sourced by a 3d party (jasper, although this is not important). I have 1 reports controller and Reports model (and a Jasper datasource). The controller retrieves reports by name. The model

Using mysql now() on save() in 1.2 RC2

2008-07-07 Thread vb13
HI all, there is already a thread http://groups.google.com/group/cake-php/browse_thread/thread/fb93a2e5241c719/cc219332a9756281?lnk=gstq=now()#cc219332a9756281 that recommends using a cake 'escape' !-' to use now() function literally, and not quoted but this does not work in RC2. The value is

Re: Inserting secure urls or actions

2008-01-24 Thread vb13
.htaccess? Do you mean rewriting the URL's? This will not work, because I want the Client to post to https. Or am I missing something? On Jan 24, 1:57 am, francky06l [EMAIL PROTECTED] wrote: You can use .htaccess to force an https connection for the desired url's. On Jan 23, 6:34 pm, vb13

Inserting secure urls or actions

2008-01-23 Thread vb13
Hi all, I am struggling with the following (I hope simple) issue in 1.2 I have a login form that has to post via https. I would like to use cake controller/action url notation and let the framework generate a full https://... URL. I.e. in my template I have code Form