Sunday, March 6, 2011

Re: Help in inserting a data from one model to another

i have solved my problem, thanks anyway for the reply/

On Mar 5, 9:38 pm, Stephen <step...@ninjacodermonkey.co.uk> wrote:
> Hi Jaaam
>
> I'm not sure why you've decided to do your validation this way - I would use
> sessions and only insert validated data if required.
>
> Why are you using a temp table?
>
> On 5 March 2011 05:44, jaaam <jamile.ayla.alima...@gmail.com> wrote:
>
>
>
>
>
>
>
>
>
> > i have a tempreport table and a report table. what i have to do is to
> > validate first the tempreport. so upon clicking the validate button,
> > the data for the chosen tempreport to be validated will be inserted
> > into the report table.
> > now, i can already create a new report from the tempreport controller
> > by using ClassRegistry::init('Report'). problem is, i can't insert the
> > data from the tempreport to the newly created report in the report
> > table. how exactly will i insert a data from one model to the other?
>
> > --
> > Our newest site for the community: CakePHP Video Tutorials
> >http://tv.cakephp.org
> > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help
> > others with their CakePHP related questions.
>
> > To unsubscribe from this group, send email to
> > cake-php+unsubscribe@googlegroups.com For more options, visit this group
> > athttp://groups.google.com/group/cake-php
>
> --
> Kind Regards
>  Stephen
>
>  http://www.ninjacodermonkey.co.uk

--
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 with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: