Welcome Guest, Not a member yet? Register   Sign In
Calling functions of other classes
#5

[eluser]Joozt[/eluser]
I just read the hole user guide and it seems that is might be better to use it as Library, but can you load a config in a Library?

When I move my class to libray and try to load the config file in the constructor:

# Load path settings file
$this->load->config('application', true);

I get the following error:
A PHP Error was encountered

Severity: Notice

Message: Undefined property: Lock::$load

Filename: libraries/lock.php

Line Number: 11

Fatal error: Call to a member function config() on a non-object in D:\www\zoover\www\cuctema\application\libraries\lock.php on line 11


SO is it not possible to load a config in a library ? If not I wil just use it as model.


Messages In This Thread
Calling functions of other classes - by El Forum - 11-06-2007, 08:10 AM
Calling functions of other classes - by El Forum - 11-06-2007, 09:18 AM
Calling functions of other classes - by El Forum - 11-07-2007, 02:28 AM
Calling functions of other classes - by El Forum - 11-07-2007, 02:47 AM
Calling functions of other classes - by El Forum - 11-07-2007, 02:53 AM
Calling functions of other classes - by El Forum - 11-07-2007, 03:00 AM
Calling functions of other classes - by El Forum - 11-07-2007, 03:03 AM
Calling functions of other classes - by El Forum - 11-07-2007, 03:33 AM
Calling functions of other classes - by El Forum - 11-07-2007, 04:04 AM



Theme © iAndrew 2016 - Forum software by © MyBB