php class method is preventing xml from working correctly -


I have a problem that I can not understand

I can access my web site I am trying to work. I tried to resuscit XML from some function in a controller class, but it did not work, so I transferred the XML to where it worked.

This means that I put it before the loader function was asked. Where it still works if I put the XML under the call on the loader function, then it is no longer working. This way the loader is preventing from working in any way.

I have used this as an example how to do it. Sofar did all this work except for the XML implementation,

this is where it starts

  <. Php includes "registraties / config.php"; Included (MYSQL); // WEBSERVICE SECTIE / *** include init.php file *** / include / init.php '; / *** Lad D Router *** / $ registratie-> Router = new router ($ registratie); / *** Set Hate Pad Van D Controller Map *** / $ registratie-> Router- & gt; Setpad ('controller'); / *** Lad day template *** / $ registratie-> Template = new template ($ registratie); $ Gebruikersnaam = "kabouter"; Header ('content-type: text / xml'); $ Position = 2; $ Output = "& lt ;? Xml version = \" 1.0 \ "encoding = \" utf-8 \ "? & Gt; \ n"; $ Output = "& Lt; response & gt; \ n"; $ Output = "\ T  Router-> loader (); // Does this place work XML? & Gt;  

This is the router class with loader function in it

   getController (); {$ this-> bestand = $ this-> .ad '/ error404.php'; bestaat *** / If (bestand) == false is_readable ($ this- & gt) / *** als heat bestand niet; $ this-> controller = 'error404';} / *** D controller *** / Included $ this-> Best; / *** New Controller Class Example *** / $ class = $ this-> Controller 'Controller'; $ Controller = New $ C ($ this-> registrati); / check of the factory is checkable *** / if (is_callable (arrays ($ controller, $ this- & actie)) == incorrect) {$ actie = 'Index';} and {$ actie = $ this-> actie;} / *** Vir Due Acti uit *** / $ controller-> $ actie ();} / ** * * @ @ gate De controller * * * Login * Private * * * Return zero * * / Personal function getController () {/ *** Root path url *** / $ route = (empty ($ _GET ['url']))? '': $ _GET ['url']; If (empty ($ path)) {$ route = 'index'; } Other {/ Degree cruise de Sejenien van de route *** / $ parts = explosion ('/', $ route); $ This- & gt; Controller = $ parts [0]; If (isset ($ parts [1])) {$ this-> Actie = $ parts [1]; }} If (empty ($ $ this-> controller)) {$ this-> Controller = 'index'; } / *** Receive Actini *** / if (empty ($ - actini)) {$ this-> Actie = 'index'; } / *** Set Hastands Address *** / $ this- & gt; Best = $ this- & gt; Pad / '$ This- & gt; Controller 'Controller.php'; }}? & Gt;  

Thank you, Richard

error - this is not why ' Exit '()? I could be wrong.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -