model
> in a before_save method.
>
> Rick
>
> On Jul 31, 6:16 am, in2lag wrote:
>
>
>
> > Hi, i have problem in my application with new lines in posts. CakePHP
> > probably replace "bad" characters from db results and i need to
> > str_replace(&
Hi, i have problem in my application with new lines in posts. CakePHP
probably replace "bad" characters from db results and i need to
str_replace('\n','',$somePost['Post']['text']) to keep new lines
in posts, Can somebody help me with this problem? I tried to search
google and this group, but with
hi, i just start to use cake and my problem follows...
i have a table "lessons" and "questions", association is one-to-many
(lesson has a lot of questions).
i try in my controller of lesson filter questions like this:
function category($id = null){
$this->set('lessons', $this->L