tag:robotlegs.tenderapp.com,2009-10-18:/discussions/questions/1164-where-to-keep-a-initxml-and-configas-fileRobotlegs: Discussion 2012-10-23T10:43:47Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/198443772012-10-20T08:18:41Z2012-10-20T08:18:41ZWhere to keep a Init.xml and Config.as file ?<div><p>My take on this:</p>
<p>Init.xml file is an external resource. A service (InitService)
loads it and passes the (parsed) xml on to a Model or other class
that needs it.</p>
<p>I’d put Init.xml under a folder
‚resources/data’ or 'resources/config' and Config.as
under ‚models’ or under ‚config’ together
with the RobotlegsConfig.as (context configuration), depending on
what exactly the Config.as is supposed to do.</p>
<p>The names of the folders are up to you.</p>
<p>=<strong>resources</strong>:</p>
<p>--------<strong>data</strong> (or config)</p>
<p>--------------<em>Init.xml</em></p>
<p>--------assets</p>
<p>--------------SomeImage.png</p>
<p>--------styles</p>
<p>--------------SomeCss.css</p>
<p>=<strong>yourdomain</strong></p>
<p>--------config</p>
<p>--------------RobotlegsConfig.as (context configuration)</p>
<p>--------------(Config.as)</p>
<p>--------controllers</p>
<p>--------<strong>models</strong></p>
<p>--------------StatsModel</p>
<p>--------------<em>Config.as</em></p>
<p>--------services</p>
<p>-------------InitService.as</p>
<p>--------views</p></div>Ondina D.F.