Trying to write a Library for the new Xajax |
Hello All,
I'm trying to write a library for the newly resurrected Xajax project (from Thierry Feuzeu)... and I'm coming up short due to my inexperience in writing CodeIgniter Libraries and with PHP namespacing. Could anyone offer some thoughts on how to make this work? (see's Thierry's example code: https://github.com/lagdo/xajax-examples/.../hello.php) Here's what I've got so far, and it definitely instantiates an xajax object, of which I can access at least the getVersion() method from inside a CodeIgniter controller method, but I can't figure out how to write the Library to access other basics (see errors in __construct() ): ( output: http://triv.ath.cx/ci3/ ) So, I'm at a loss as to what to do next... any advice? CodeIgniter 3 Library: PHP Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); CodeIgniter 3 Welcome Controller: PHP Code: <?php (Using CodeIgniter since 1.x)
|
Messages In This Thread |
Trying to write a Library for the new Xajax - by jasonzig - 04-25-2016, 11:24 PM
RE: Trying to write a Library for the new Xajax - by InsiteFX - 04-26-2016, 03:16 AM
RE: Trying to write a Library for the new Xajax - by jasonzig - 04-26-2016, 10:01 AM
RE: Trying to write a Library for the new Xajax - by InsiteFX - 04-26-2016, 01:00 PM
RE: Trying to write a Library for the new Xajax - by jasonzig - 04-26-2016, 01:23 PM
RE: Trying to write a Library for the new Xajax - by InsiteFX - 04-26-2016, 07:06 PM
RE: Trying to write a Library for the new Xajax - by Luís Andrade - 05-26-2016, 02:40 PM
RE: Trying to write a Library for the new Xajax - by mwhitney - 06-02-2016, 10:09 AM
RE: Trying to write a Library for the new Xajax - by spjonez - 06-03-2016, 07:24 AM
|