Welcome Guest, Not a member yet? Register   Sign In
root dir does not exists! CIG 0.3
#1

[eluser]learning_php[/eluser]
Hi,

I am Having trouble getting the CBI gallery beta to work:

root dir does not exists!

Code:
$config['cig_gallery_title'] = 'Demo Gallery';
$config['cig_gallery_root'] = 'wedding-site/assests/albums';
$config['cig_gallery_url'] = 'http://localhost/imagegallery';
$config['cig_filter_folders'] = array('test', '..', 'cache');
$config['cig_valid_types'] = array('jpeg', 'gif', 'png');
$config['cig_album_function'] = 'album'; //name of function you use in your controller to show thumbs for selected album.
$config['cig_image_function'] = 'image'; //name of function you use in your controller to show full image view.

Code:
class imagegallery extends Controller {
    

function imagegallery()
{
parent::Controller();
$this->load->library('CIG');
$this->cig->cache_init();
}

function index()
{
$data['gallery'] = $this->cig->get_dir_list();
$this->load->view('test_view', $data);
}

function album()
{
$data['album'] = $this->cig->get_image_list();
$this->load->view('test_view', $data);
}

function image()
{
$data['image'] = $this->cig->get_image();
$this->load->view('test_view', $data);
}

}


Messages In This Thread
root dir does not exists! CIG 0.3 - by El Forum - 04-24-2009, 02:20 AM
root dir does not exists! CIG 0.3 - by El Forum - 04-24-2009, 03:56 AM
root dir does not exists! CIG 0.3 - by El Forum - 04-24-2009, 04:00 AM
root dir does not exists! CIG 0.3 - by El Forum - 04-24-2009, 05:44 AM
root dir does not exists! CIG 0.3 - by El Forum - 04-24-2009, 05:46 AM
root dir does not exists! CIG 0.3 - by El Forum - 04-24-2009, 09:23 AM
root dir does not exists! CIG 0.3 - by El Forum - 04-24-2009, 12:32 PM



Theme © iAndrew 2016 - Forum software by © MyBB