Welcome Guest, Not a member yet? Register   Sign In
include in library
#1

[eluser]presto5[/eluser]
I have a library, where i'm trying to use the other class:
Code:
//.../datepicker.php
class datepicker {
  ...
}

Code:
//.../application/libraries/ig.php
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
include( base_url().'include/calendar/datepicker.php');

class Ig {
...
function some_function() {
$picker = new datepicker();
}
}

And when i'm trying to do:
Code:
$this->load->library('ig');
$this->ig->some_function();
it telling me:
Fatal error: Class 'datepicker' not found
Why???? I know for shure, that datepicker.php already included


Messages In This Thread
include in library - by El Forum - 01-01-2008, 07:30 PM
include in library - by El Forum - 01-01-2008, 08:42 PM
include in library - by El Forum - 01-01-2008, 09:02 PM
include in library - by El Forum - 01-01-2008, 09:39 PM
include in library - by El Forum - 01-01-2008, 09:45 PM
include in library - by El Forum - 01-01-2008, 10:53 PM
include in library - by El Forum - 01-02-2008, 06:06 AM
include in library - by El Forum - 01-02-2008, 09:10 AM
include in library - by El Forum - 01-02-2008, 03:18 PM



Theme © iAndrew 2016 - Forum software by © MyBB