Where to put my raw mail parser (helper,component,virtual field,..)

2011-08-08 Thread Johkke
For my ticket system we save the raw text from the mail which include the headers to. Since we don't save the body (only found in de raw text) we need to parse the body the whole time. My question is, where do I need to put my mail parser? I'd prefer to use it already on model level (and than

replace emty fields at model or controler level

2011-08-08 Thread Johkke
Is it possible to replace empty fields with an given string (like: 'No subject given') at model or controller level? I really like to keep the view as simple as possible -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site

Re: mysql_insert_id() as virtual model field

2011-08-02 Thread Johkke
. |$this-Ingredient-save($newData);|    2. |$newIngredientId = $this-Ingredient-id;| On 30/07/11 18:53, Johkke wrote: Is it possible to have the mysql_insert_id as virtual field of an model? I'm implementing an ticket system interface and ticket numbers given by the mysql_insert_id

mysql_insert_id() as virtual model field

2011-07-30 Thread Johkke
Is it possible to have the mysql_insert_id as virtual field of an model? I'm implementing an ticket system interface and ticket numbers given by the mysql_insert_id -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site