CodeIgniter load class into class
Posted
by user355510
on Stack Overflow
See other posts from Stack Overflow
or by user355510
Published on 2010-06-05T19:47:45Z
Indexed on
2010/06/05
19:52 UTC
Read the original article
Hit count: 187
codeigniter
Hello guys, i have start working with CodeIgniter, but i can't understand one think. How do i load one class into another?
$this->load->library("hello_world");
This is not working?
my class -> load -> hello_world class
class myclass {
function test() {
$this->load->library("hello_world");
$this->hello_world->hello();
}
}
Message: Undefined property: myclass::$load
© Stack Overflow or respective owner