On Thu Aug 20 2009 15:24:53 GMT-0400 (EST) , majna <[email protected]> wrote:
> MainsController::view()
>
> $log = ClassRegistry::init('Log'); $log->create();
> $this->data['Log']['main_id'] = 23; $this->data['Log']['referrer'] =
> ... $log->save($this->data['Log']);
>
> But if you define in Main model hasMany Logs, you can write like
> this: $this->Main->Log->create(); $this->data['Log']['main_id'] =
> 23; $this->data['Log']['referrer'] = ...
> $this->Main->Log->($this->data['Log']); ....
Majna,
I finally got a chance to look at this and it worked quite well. Thank you!
James
--
James P. Howard, II, MPA
[email protected]
signature.asc
Description: OpenPGP digital signature
