2011-08-19, 15:48:45
Some important global variables like $url are not strings, but XML node objects.
Thus e.g. the following does not work, because the node is not converted to a string (automatically):
(display the component with the same name as the page)
The convertion has to be done explicitly:
Preferably the global variables should already have the correct type, but at least the access functions like return_page_slug must return the correct type.
Thus e.g. the following does not work, because the node is not converted to a string (automatically):
Code:
<?php get_component(return_page_slug()); ?>
The convertion has to be done explicitly:
Code:
<?php get_component((string) return_page_slug()); ?>
Preferably the global variables should already have the correct type, but at least the access functions like return_page_slug must return the correct type.