|
From: Andris S. <li...@ap...> - 2001-08-19 13:51:42
|
The xml2php is already working quite nice [for me]. However, there is a
small problem with pagedef (bcp.xml). Currently modules are defined under
'load' as arrays, but unlike all other arrays in bcp.xml and any other
place, they have no name [key, whatever]. (small example bellow).
$gPageDef = array(
'modules' => array(
'content' => array(
'load' => array(
array(
'id' => 'mooboo',
'name' => "OtherWorld",
'package' => "hello_world",
'load_order' => "3"
),
),
),
);
The bad news are that in XML we can't define array without name. We can only
define something like this:
$gPageDef = array(
'modules' => array(
'content' => array(
'load' => array(
'module' => array(
'id' => 'mooboo',
'name' => "OtherWorld",
'package' => "hello_world",
'load_order' => "3"
),
),
),
);
I'm afraid we will have to modify the way Page uses modules (add support for
module names) if we want to see xml2php working. Any ideas or comments?
Andris Spruds
|