
		<h2>Skeleton CMS file structure</h2>
		<p>
<pre>
/skeleton
	/modules
		- php
	/system
		- core functionality
		/functions
		/classes
	/theme
		- css/javascript
		/icons
		/images
		/templates
			- html
</pre>
		</p>
		<p>Understanding the file structure of Skeleton is a lightbulb moment, so once you get it you can stop reading and move on. I suppose it's easiest just give some examples.</p>
		<ol>
			<li>There are 3 main directories included in Skeleton: /modules, /system and /theme.</li>
			<ul>
				<li><strong>/system</strong> is where I keep things like functions, classes and other php that is vital to the operation of the site I'm building.</li>
				<li><strong>/modules</strong> is where I put the backend or "under the hood" php for specific pages.</li>
				<li><strong>/theme</strong> is where I have images, stylesheets, javascript and most importantly the /templates folder - where all the templates are stored.</li>
			</ul>
			<li>Since the url of this page is <code><?=$url->base?>/docs/file-structure</code>, we'll use this page as an example:</li>
			<ul>
				<li>Skeleton first looks for the file <code>/modules/docs/file-structure.php</code>. If it exists, Skeletal loads it into the <a href="<?=$url->base?>/docs/output-buffer">output buffer</a>. If it does not exist, Skeleton moves on.</li>
				<li>Next, Skeleton looks for <code>/theme/templates/docs/file-structure.php</code>. If it exists, Skeletal loads it into the <a href="<?=$url->base?>/docs/output-buffer">output buffer</a>. If it does not exist, Skeletal calls up <code>/theme/404.php</code>.
			</ul>
		</ol>
