|
From: Andreas A. <a.a...@th...> - 2001-08-19 15:31:21
|
Hi Andris,
> $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?
Hmm did you try:
'load' => array(
0 => array(
'id' => 'mooboo',
...
1 => array(
'id' => 'mooboo1',
...
This should work without changing page. But everybody must obey to this rule
and the array keys (1,2..) have to be continiuous.
Maybe there's another option: We could modify page that the array key numer
in laod (as shown above) reflects implicity the load order. so we could save
the 'load_order' directive and the array conforms to the xml standard.
Andi
|