Has anyone used XML with a front controller before?
Posted: Thu Apr 03, 2008 9:47 am
I was thinking of setting up a front controller to parse a XML file which contains information such as pre-actions, post-actions and child controllers.
I thnk some people call it mapping.
Example:
<root>
<controller>
<id>product</id>
<url>product/{1-9}</url>
<children>
<child>header</child>
<child>column</child>
<child>footer</child>
</children>
<pre_action>check_login</pre_action>
</controller>
</root>
Has anyone in this forum done this sort of thing before?
If so can you post an example?
I thnk some people call it mapping.
Example:
<root>
<controller>
<id>product</id>
<url>product/{1-9}</url>
<children>
<child>header</child>
<child>column</child>
<child>footer</child>
</children>
<pre_action>check_login</pre_action>
</controller>
</root>
Has anyone in this forum done this sort of thing before?
If so can you post an example?