![]() |
Custom Library Problem [solved] - 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: Custom Library Problem [solved] (/showthread.php?tid=3809) |
Custom Library Problem [solved] - El Forum - 10-23-2007 [eluser]n8m[/eluser] Hi, I've got a problem writing my own Libraries. Here's my Class: Code: class Aclass{ The funny thing is, that it works when I put the Constructor lines into the method. Where's the error? Thanks for your help n8m Custom Library Problem [solved] - El Forum - 10-23-2007 [eluser]xwero[/eluser] [quote author="n8m" date="1193154081"]Hi, I've got a problem writing my own Libraries. Here's my Class: Code: class Aclass{ The funny thing is, that it works when I put the Constructor lines into the method. Where's the error? Thanks for your help n8m[/quote] The CI variable is only known in the scope of the constructor Code: class Aclass{ Custom Library Problem [solved] - El Forum - 10-23-2007 [eluser]n8m[/eluser] That did it ! Thnx ! greetz n8m |