custom library with parameters : problem |
$this will only contain objects that are loaded before the view is loaded.
If you want to load classes in a view you must do it like this: PHP Code: $ci =& get_instance(); This is one of the reasons using $this in views should be avoided. Pass everything you need in your view via the data argument when loading a view |
Messages In This Thread |
custom library with parameters : problem - by casa - 11-13-2015, 03:27 AM
RE: custom library with parameters : problem - by InsiteFX - 11-13-2015, 05:56 AM
RE: custom library with parameters : problem - by casa - 11-13-2015, 06:10 AM
RE: custom library with parameters : problem - by InsiteFX - 11-13-2015, 06:26 AM
RE: custom library with parameters : problem - by Martin7483 - 11-13-2015, 06:34 AM
RE: custom library with parameters : problem - by casa - 11-13-2015, 10:26 AM
|