. if (!defined('EG')) die('Direct access not allowed!'); class BoxesModel extends Model_Tree { public function __construct() { $this->_tables = 'boxes'; $this->_idFields = 'id_box'; parent::__construct(); } public $formStruct = array( 'entries' => array( 'title' => array(), 'message' => array('type'=>'Textarea'), 'id_box' => array( 'type' => 'Hidden' ) ), ); }