protected function init() { $image_model = new shopProductImagesModel(); $this->data['image_total_count'] = $image_model->countAvailableImages(); $this->data['image_count'] = 0; $this->data['offset'] = 0; $this->data['product_id'] = null; $this->data['product_count'] = 0; $this->data['timestamp'] = time(); }