Re: A new discussion about "controllers which extend another-controller-other-than-AppController"

2009-01-16 Thread caminante
d properly, but this should happen > > by default. > > > Try the App::import() and let me know how you go with the components. > > > Cheers, > > Graham > > > On Thu, 15 Jan 2009 12:47:58 -0800 (PST), caminante > > wrote: > > >> Being released 1.2 f

Re: A new discussion about "controllers which extend another-controller-other-than-AppController"

2009-01-16 Thread caminante
t; by default. > > Try the App::import() and let me know how you go with the components. > > Cheers, > Graham > > On Thu, 15 Jan 2009 12:47:58 -0800 (PST), caminante > > wrote: > > Being released 1.2 final version of CakePHP, I opened this discussion > > to

A new discussion about "controllers which extend another-controller-other-than-AppController"

2009-01-15 Thread caminante
Being released 1.2 final version of CakePHP, I opened this discussion to try to bring some light together to this issue. My need: What's in the subject of this discussion; I have a couple of "special" controllers to be called from flash (through cakeswxphp). What I need is those controllers exten

Email component parsing body to find headers?

2008-12-17 Thread caminante
Hello, I'm having a problem in which the Email component "parses" the body of the message and finds a "to: " and discards it. Here is the code: $body = "Formulario de contacto enviado a través del website\n\n Nombre: {$this->data['ContactForm']['nombre']}\n Fecha de nacimiento: {$this->data['Cont

Re: More L10n for InputHelper Date

2008-12-17 Thread caminante
I believe you must make the three fields individually and every input accepts as a second parameter an array with options. You can use the 'after' option for them. Check the manual: http://book.cakephp.org/view/191/options-before-options-between-options-separator-a Greetings. On 29 oct, 02:09,

Knowing in model's beforeSave if model is saving or updating

2008-09-04 Thread caminante
Hi all! My question is: How to know in model's beforeSave if the model is saving a new record or updating an existing one? Because I have to do an action if any model is saving a new record but not on record update. Thanks to all. --~--~-~--~~~---~--~~ You receive

HABTM repeated times? how to make the association several times?

2008-05-09 Thread caminante
Hello. I need to make an association between the model User and the model Pack. I have the three tables (users, packs and packs_users). The thing is users can add the same pack 12 times a day. It means the User and Pack record will remain the same but the record at the table packs_users would repe