Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Mar 23rd, 2012  |  syntax: PHP  |  size: 0.17 KB  |  views: 17  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Node.php (model)
  2.  
  3. (...)
  4.  
  5. public function find()
  6. {
  7.         parent::find();
  8.  
  9.         // `get_fields()` loads associated fields.
  10.         $this->custom_fields = $this->get_fields();
  11. }