How integrate XAJAX in CI ?? |
[eluser]PoWah[/eluser]
Can someone help with integrating xajax into CI ? I found article in wiki page about that but it seems to be deprecated, because it is using init/ folder that is deprecated in CI latest versions. So how shoul the library xajax look like?? ![]()
[eluser]esra[/eluser]
Most of the wiki articles mentioning the use of an init file (stored in a application/init/ directory) are left over from the CI 1.3.x series. The init file was used to initialize a library in those versions and CI handles this internally in newer versions. In most cases, you can rename the library file to meet the guidelines for library creation mentioned in the user guide and ignore all mention of the init file. The absense of the init file creates a problem for more complex libraries with their own directory structures such as ADODB. There is a workaround solution posted on the wiki for handling ADODB.
[eluser]PoWah[/eluser]
Ok, library loads, but the example not working ![]() What I do wrong? Here is the code: application/controllers/testajax.php Code: <?php The view file is very simple with a static link to xajax.js and it only echos $content variable. Debug message \"xajax_test_function is not defined\". You can see it in action here: http://laikinas.vai.lt/mobilu.lt/index.php/testajax
[eluser]PoWah[/eluser]
I got example working by turning off error_reporting(E_ALL); in CI index.php I needed to do this because there was a PHP error before returned XML: severity: notice undefined variable: sResponse file: libraries/xajax.php how can i fix this and turn on error_reporting again ?
[eluser]JosGo[/eluser]
[quote author=\"PoWah\" date=\"1182519545\"]how can i fix this and turn on error_reporting again ?[/quote] There is a small error in Xajax. See thread ellislab.com/forums/viewthread/53574 . I tried it out and it definitely works. But maybe you have found this thread already. |
Welcome Guest, Not a member yet? Register Sign In |