Import a Model from another model in Cakephp 1.2 & 1.3


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. $person = ClassRegistry::init('Person');;
  2. $people = $person->find('all'); pr( $people );

URL: http://api.cakephp.org/class/class-registry#method-ClassRegistryinit

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.