Re: Error saving i18n

2011-12-29 Thread Constantin.FF
also i use $model->data[$model->alias]['title'] = $title; to set the title field On Dec 28, 8:39 pm, Constantin FF wrote: > absolutely the same result after adding >         $model->set(array('title' => $title, 'body' => $title)); > at the end of beforeSave -- Our newest site for the community:

Re: Error saving i18n

2011-12-28 Thread Constantin FF
absolutely the same result after adding $model->set(array('title' => $title, 'body' => $title)); at the end of beforeSave -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others

Re: Error saving i18n

2011-12-28 Thread Constantin FF
var $model = null; function setup(&$model, $config = array()){ $this->settings[$model->alias] = array_merge($this->_defaults, $config); $this->model = $model; } do i have to add $Model->set() also On Wed, Dec 28, 2011 at 1:31 PM, Tilen Maje

Re: Error saving i18n

2011-12-28 Thread Tilen Majerle
how do you set data in the behavior ? do you use $Model->set() or ? -- Lep pozdrav, Tilen Majerle http://majerle.eu 2011/12/28 Constantin.FF > I am using Behavior which beforeSave sets the title of the post. I am > using this for attachments to set title, slug, create thumbs and so > on .. >