Hi Dan, It does make sense.:)
Thanks Saurav On Thursday, February 28, 2013 6:19:46 AM UTC+5:30, Dan Wilson - [email protected] wrote: > > Saurav > > The reason why you must specify the full path in ColdSpring as the section > states, because you don't HAVE to put your views and helpers and other > elements in the same path as the application. The PlantOMatic application > is designed to be run from a subdirectory, so in this case, you do need to > specify PlantOMatic several times. > > *<property > name="configurationPath"><value>config/ModelGlue.xml</value></property>* > *<property > name="applicationMapping"><value>/PlantOMatic</value></property>* > *<property > name="viewMappings"><value>/PlantOMatic/views</value></property>* > *<property > name="helperMappings"><value>/PlantOMatic/helpers</value></property>* > > You access it like this: http://localhost/PlantOMatic > > Your example: > *<property name="helperMappings"><value>/**views**</value></property>** > * > *<property name="helperMappings"><value>/**views**</value></property>** > * > > Would work if you accessed the plantomatic like this: > http://plantomatic.com > > > The configuration item: *applicationMapping* is used to set the paths of > things Model Glue must generate. Like Generated Views and Generated > Controllers. We COULD'VE used the *applicationMapping* setting to prepend > to the view paths and helper paths, but that would reduce the ability for > someone to move these to another location. Which some people do. > > So, the short version is, it is this way for Clarity and Flexibility, at > the expense of some duplication. > > > Make sense? > > > DW > > saurav pandit <javascript:> > Wednesday, February 27, 2013 4:05 PM > Hi All, > > I have downloaded a model glue application named "PlantOMatic". I have > performed the basic step for set up and it is running. > But I have question regarding "coldspring.xml" file. > > There is a section like following > > *<!-- Where to find necessary files -->* > *<property > name="configurationPath"><value>config/ModelGlue.xml</value></property>* > *<property > name="applicationMapping"><value>/PlantOMatic</value></property>* > *<property > name="viewMappings"><value>/PlantOMatic/views</value></property>* > *<property > name="helperMappings"><value>/PlantOMatic/helpers</value></property>* > > From the above snippet we can see that for the property "* > configurationPath*" we are using *config/ModelGlue.xml *which I > understand that inside "PlantOMatic" > which is my root folder for this application there will be a folder "* > config*" > but for the property "*viewMappings*", "*helperMappings*" it is "* > /PlantOMatic/views*" and "*/PlantOMatic/helpers*". > My question is why I need to use "*/PlantOMatic*" when my "views" and > "helpers" folder are just inside "*PlantOMatic*". > *"\PlantOMatic\views"* > *"\PlantOMatic\helpers"* > Why can't I write it like > *<property name="helperMappings"><value>/**views**</value></property>** > * > *<property name="helperMappings"><value>/**views**</value></property>** > * > and what is the need of this mapping > *<property > name="applicationMapping"><value>/PlantOMatic</value></property>** > * > when I am acessing my application like the following way. > http://localhost/PlantOMatic/ > > Please help. > Thanks > -- > -- > Model-Glue Sites: > Home Page: http://www.model-glue.com > Documentation: http://docs.model-glue.com > Bug Tracker: http://bugs.model-glue.com > Blog: http://www.model-glue.com/blog > > You received this message because you are subscribed to the Google > Groups "model-glue" group. > To post to this group, send email to [email protected]<javascript:> > To unsubscribe from this group, send email to > [email protected] <javascript:> > For more options, visit this group at > http://groups.google.com/group/model-glue?hl=en > --- > You received this message because you are subscribed to the Google Groups > "model-glue" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] <javascript:>. > For more options, visit https://groups.google.com/groups/opt_out. > > > > -- -- Model-Glue Sites: Home Page: http://www.model-glue.com Documentation: http://docs.model-glue.com Bug Tracker: http://bugs.model-glue.com Blog: http://www.model-glue.com/blog You received this message because you are subscribed to the Google Groups "model-glue" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/model-glue?hl=en --- You received this message because you are subscribed to the Google Groups "model-glue" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
