CodeIgniter Forums
PHPLiveX Library - 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: PHPLiveX Library (/showthread.php?tid=25069)



PHPLiveX Library - El Forum - 11-30-2009

[eluser]Iverson[/eluser]
I'm trying to play with PHPLiveX, which is an alternative to xajax (too many bugs and not enough documentation). However, PHPLiveX requires the function you want to "ajaxify" to be inside the actual html file better known in the CI world as a view file. This obviously presents a problem since all functionality should be kept in the C's and M's.

Any ideas?


PHPLiveX Library - El Forum - 12-11-2009

[eluser]Iverson[/eluser]
After all the great replies, I've figured out that I can just grab the instance ($obj = & get_instance()) and call all my controller functions using the $obj object since you clearly can't use $this. Figured I'd share this.

Thanks for all the help guys Confusedmirk: