Changeset 50
- Timestamp:
- 01/11/07 15:59:16 (2 years ago)
- Files:
-
- trunk/docroot/index.php (modified) (2 diffs)
- trunk/src/main/resources/xjconf/registry.xml (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/docroot/index.php
r40 r50 1 1 <?php 2 require '../config/php/config.php'; 2 3 require '../src/main/php/stubClassLoader.php'; 3 4 stubClassLoader::load('websites.PageFactory', 4 'helper. RegistryFactory',5 'helper.stubRegistryFactory', 5 6 'helper.stubXJConfLoader' 6 7 ); … … 10 11 { 11 12 $pageFactory = new PageFactory(stubXJConfLoader::getInstance()); 13 echo '<pre>'; 12 14 var_dump($pageFactory->getPage('../config/xml/pages/index.xml')); 15 echo '</pre>'; 13 16 14 RegistryFactory::init('../config/xml/config.xml'); 15 var_dump(Registry::getConfig('core.number.decimals')); 16 var_dump(Registry::getConfig('core.date.format.datetime')); 17 stubRegistryFactory::init('../config/xml/config.xml'); 18 echo '<pre>'; 19 var_dump(stubRegistry::getConfig('core.number.decimals')); 20 var_dump(stubRegistry::getConfig('core.date.format.datetime')); 21 echo '</pre>'; 17 22 } 18 23 } trunk/src/main/resources/xjconf/registry.xml
r2 r50 2 2 <defines> 3 3 <namespace uri="http://stubbles.net/registry"> 4 <tag name="config" type="helper. Registry">4 <tag name="config" type="helper.stubRegistry"> 5 5 <factoryMethod name="setConfig"> 6 6 <attribute name="name" type="string" />
