Sujet : Gestion des imports avec hoa 1.0
Coucou,
J'ai pris ton code que tu as poster pour xyl
<?php
require_once '../../Framework/Core/Core.php';
import('StringBuffer.Read') and load();
import('Xml.Read') and load();
$in = new Hoa_StringBuffer_Read();
$in->initializeWith(
'<?xml version="1.0" encoding="utf-8"?>' . "\n" .
'<foo xmlns="foobar">' . "\n" .
' <p>The <em>cake</em> is a <strong>lie</strong>!</p>' . "\n" .
'</foo>'
);
$xml = new Hoa_Xml_Read($in);
var_dump(
$xml->p,
$xml->p->useNamespace('foobar')->selectChildElements(),
$xml->p->readAsPhrasingModel('foobar')
);J'essai de prendre la main sur le Core mais il connait pas la fonction import :S :S
Fatal error: Call to undefined function import() in C:\wamp\www\Hoa_test_WebSocket\Application\Controller\Index.php on line 5Comment tu travailles @Hywan ?
Dernière fois dit par Ecureuil Virtuel (18 Feb. 2011 10:10)