CodeIgniter Forums
Problem with loading libraries - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Problem with loading libraries (/showthread.php?tid=38413)



Problem with loading libraries - El Forum - 02-07-2011

[eluser]Unknown[/eluser]
Sorry for my writing, my english is poor, but i have a problem with load a libraries, in the version 2.0 CI

in the next example taken of the user guide

Code:
$this->load->library('table');

$data = array(
             array('Name', 'Color', 'Size'),
             array('Fred', 'Blue', 'Small'),
             array('Mary', 'Red', 'Large'),
             array('John', 'Green', 'Medium')
             );

echo $this->table->generate($data);

it gives me

Code:
A PHP Error was encountered

Severity: Notice

Message: Undefined property: CI_Loader::$table

Filename: views/lista_de_series.php

Line Number: 29

however, load library in autoload

Code:
$autoload['libraries'] = array('table');

result is correct

don't understand why

thank you for help me


Problem with loading libraries - El Forum - 02-07-2011

[eluser]Unknown[/eluser]
¿Possible bug?


Problem with loading libraries - El Forum - 02-18-2011

[eluser]markup2go[/eluser]
Did you try loading the library from a controller rather than a view?