Re: How to use ManiaLib?
Posted: 21 Jun 2011, 16:58
First, a note about XML
When you see in Chrome "his page contains the following errors: error on line 3 at column 6: XML declaration allowed only at the start of the document" or stuff like that, it is because Chrome tries to interpret the XML code but can't. You can either show the exact code by displaying the page's source (CTRL+U), or you can use an extension for displaying the XML as a tree. I personnaly use https://chrome.google.com/webstore/deta ... bfgdfkpadb
The redirection
It is because of a filter used in the controllers in the example. See http://code.google.com/p/manialib/sourc ... .class.php
At line 19:
It checks if the login is in the session, and if it is not it redirects the user to the splashscreen, which by default the SplashController.
In Manialinks you can use the <redirect></redirect> tag to make a Manialink page redirection.
So this why the first thing you see is
And then if you try to access http://www.tm-energy.comlu.com/?/splash/ with your browser it gives a 404 error.
When you see in Chrome "his page contains the following errors: error on line 3 at column 6: XML declaration allowed only at the start of the document" or stuff like that, it is because Chrome tries to interpret the XML code but can't. You can either show the exact code by displaying the page's source (CTRL+U), or you can use an extension for displaying the XML as a tree. I personnaly use https://chrome.google.com/webstore/deta ... bfgdfkpadb
The redirection
It is because of a filter used in the controllers in the example. See http://code.google.com/p/manialib/sourc ... .class.php
At line 19:
Code: Select all
$this->addFilter(new ForceSplashScreenFilter());
In Manialinks you can use the <redirect></redirect> tag to make a Manialink page redirection.
So this why the first thing you see is
Code: Select all
<redirect>http://www.tm-energy.comlu.com/?/splash/</redirect>