GetSimple Support Forum

Full Version: Page properties must have correct type (e.g. string)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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):
Code:
<?php get_component(return_page_slug()); ?>
(display the component with the same name as the page)

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.