public function __construct($id = 0) { parent::__construct(); if (is_numeric($id) && $id > 0) { $rowset = $this->find($id); $this->row = $rowset[0]; if (method_exists($this, 'loadParent')) { $this->loadParent(); } } }
/** * * Enter description here ... */ public function __construct($id = 0) { parent::__construct(); if (is_numeric($id) && $id > 0) { $this->load($id); } }
public function init() { parent::init(); }