First look at newBee - part 4 (config.xml)
Ok - we saw in part 3 that the newbee.xml file holds the "key" for all the information flow from the view to the model and back. This is the big picture, the overview of the application of sorts.
There is one more xml file in the config directory though, simply called config.xml. It looks like this out of the box:
<!-- newBee configurations -->
<config name="defaultEvent" value="default" />
<!-- application configurations -->
<config name="dsn" value="newbee" />
</newbee_config>
The first config node called "defaultEvent" is needed in order for the application to know which event (specified in the newbee.xml file remember?) to run when no event is specified in the url or form scope.
The other config node is an example on how you can set application wide variables.
The idea is simply this:
newbee.xml holds the information that will not change once the application is developed, while config.xml holds information that might change with each installment of the application (like data source info, mail server info etc.).
A little inconsistency is that defaultEvent is not likely to change from installment to installment though.....
The current version of newBee is a Alpha 0.3 version. I expect it to go public beta at the 0.5 version, so things might still change.


There are no comments for this entry.
[Add Comment]