Re: Instantiating and Saving a Model from another Model

2012-05-06 Thread stork
Move your method processFeedContent() to model Content and in loop: $this->create($content); if ($this->save()) { ... } -- 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 thei

Re: Instantiating and Saving a Model from another Model

2012-05-05 Thread Michael Stelly
if(!isset($this->ModelName){ $this->ModelName->loadModel(); } This only works in the controller, but it should get you what you want if I understood the question correctly. Sincerely, Michael Stelly mobile: +1.918.978.2000 skype: mjstelly LinkedIn On Sat,

Instantiating and Saving a Model from another Model

2012-05-05 Thread CakeNino
I am new to CakePHP and am building an application to help learn the framework. I am having a problem trying to instiate one model from another model. Here is the basic premise... Assume a simple application - I have Feeds (as in RSS Feeds) and Content. I want to create a page that grabs an RSS