Problem with save method

2013-08-08 Thread kapil agrawal
Hi! I am a new bee in cakePHP, look at following scenario I have following tables structure --- *Table name: events* Field Type Null Default

Re: Problem with save method

2013-08-08 Thread Irfan sheikh
do this try like this $this-request-data['Event']['name'] = $this-request-data['Event']['name']; $this-request-data['Event']['venue'] = $this-request-data['Event']['venue']; and then do save all.. $this-Event-save($this-request-data); in this way only name and venue will be

Re: Problem with save method

2013-08-08 Thread Andras Kende
$this-request-data['Event]['image] = false; OR unset($this-request-data['Event]['image]); $this-Event-save($this-request-data); Andras Kende On Aug 7, 2013, at 6:01 AM, kapil agrawal kapilagrawal...@gmail.com wrote: Hi! I am a new bee in cakePHP, look at following scenario I have

Problem with save method

2007-07-24 Thread Steveston
Please first take a look at the piece of code below: if (isset($this-data['availableInstructors'])) foreach ($this-data['availableInstructors'] as $key= $value) { $this-UserCourse-data['user_id']=$key; $this-UserCourse-data['course_id']=$this-