Path

ez projects / ezjscore / forum / general / a couple of issues with ezj...


A couple of issues with ezjscAjaxContent

You need to be logged in to post messages in the forums. New users may register here.

Lazaro Ferreira

Member since:
30 November 1999

Posts: 18

Thursday 03 September 2009 11:15:12 am

Hi,

jsonEncode

Calling operator json_encode fails because jsonEncode function is missing

xmlWrite

The following code fails when encoding an array of nodes



          if( is_array( $value ) )


           {


               $xml->startElement( $key );


               self::xmlWrite( $xml, $value );


               $xml->endElement();


               continue;


           }



A fix :



          if( is_array( $value ) )


           {


               if ( is_numeric( $key ) )


                       $xml->startElement( $childName );


                                else


                       $xml->startElement( $key );


                self::xmlWrite( $xml, $value );


               $xml->endElement();


               continue;


           }



Up

André R

Member since:
20 August 2005

Posts: 171

Thursday 03 September 2009 1:54:49 pm

UPDATE: Found the jsonEncode issue, looked in wrong file _failed_ :)


Fixed both your xml and json issue now ;)

--
ar

Up

You need to be logged in to post messages in the forums. New users may register here.