/** * before * * @access public * @author Nguyen Van Hiep * * @version 1.0 * @since 1.0 */ public function before() { parent::before(); $this->dir = DOCROOT . 'assets/img/art/'; $this->langs = $this->get_langs(); $this->config = array('path' => $this->dir, 'randomize' => false, 'ext_whitelist' => array('jpg', 'jpeg', 'gif', 'png'), 'max_size' => MAX_IMG_SIZE, 'auto_rename' => false, 'overwrite' => true, 'prefix' => ''); }
public function before() { parent::before(); $this->dir = DOCROOT . 'assets/img/logos/'; $this->config = array('path' => $this->dir, 'normalize' => true, 'ext_whitelist' => array('jpg', 'jpeg', 'gif', 'png'), 'max_size' => MAX_IMG_SIZE, 'auto_rename' => true, 'overwrite' => true, 'prefix' => ''); }