SHARE
TWEET

Untitled

a guest Mar 24th, 2012 68 Never
  1. # Node.php (model)
  2.  
  3. (...)
  4.  
  5. public function find()
  6. {
  7.         parent::find();
  8.  
  9.         if ($this->loaded())
  10.         {
  11.                 // `get_fields()` loads associated fields.
  12.                 $this->custom_fields = $this->get_fields();
  13.         }
  14.  
  15.         return $this;
  16. }
RAW Paste Data
Top