-
Notifications
You must be signed in to change notification settings - Fork 2
Quick Start
llamapope edited this page Sep 14, 2010
·
10 revisions
For this quick start guide, we’re going to create a BigRig folder called apps, place a blog application in it and get it up and running. It is assumed you have installed wheels in the webroot of your server.
- Add the /apps folder to your webroot
- Add the /apps/blog folder
- Copy the /models, /views, and /controllers folder from a fresh wheels install
- Fix your Wheels.cfc files
/apps/blog/controllers/Wheels.cfc
/apps/blog/models/Wheels.cfc<cfcomponent output="false" displayName="Controller"> <cfinclude template="../../../wheels/controller.cfm"> </cfcomponent>
<cfcomponent output="false" displayName="Model"> <cfinclude template="../../../wheels/model.cfm"> </cfcomponent>
- Add a call to
addRig(name, [keyword, singleAppFolder])
/config/routes.cfm
<cfset addRig(name="apps") />
You can now use urls like this (assuming you had URL rewritting turned on):
http://example.com/apps/blog/list – would get to the apps/blog/views/list/index.cfm view.
And complex sites like this should be possible (folders outside of the webroot will need supporting mappings):