Thank you!  :-)  I see now, line 54 creates the "translator" object
and it refers to the full path of
"projects.mg.translator.model.PigLatinTranslator" and so line 56 needs
only to refer to the newly created "translator" object.

Thanks so much again, very much appreciated.  I can't wait to get a
full handle on this framework.

...Brad  :-)

On Oct 16, 8:39 pm, "Fernando Lopez" <[EMAIL PROTECTED]> wrote:
> on your Controller line 56
>  <cfset var result = projects.mg.translator.translate(phrase) />
>
> Shouldn't that line be
>  <cfset var result = translator.translate(phrase) />
>
> Since you have this on line 54
>
> <cfset var translator = createObject("component",
> "projects.mg.translator.model.PigLatinTranslator").init("aeiou") />
>
> I think the global search/replace is the culprit.
>
> Good luck
>
> On Thu, Oct 16, 2008 at 7:38 PM, bmelendy <[EMAIL PROTECTED]> wrote:
>
> > So I have the sample Translator application running in my web root:
>
> >http://brad.melendy.com/translator/index.cfm?event=translationForm
>
> > Everything works great.  Then I tried to move the /translator folder
> > to a subdirectory for organizational purposes:
>
> >http://brad.melendy.com/projects/mg/translator/index.cfm?event=transl...
>
> > I went and did a find/replace on all the places with "translator." and
> > made it "projects.mg.translator." and also "/translator" with "/
> > projects/mg/translator".  Well, it runs the first screen with the
> > form, but if you try to submit anything, you get an error:
>
> > "Variable PROJECTS is undefined."
>
> > So, I'm obviously missing something.  I thought I needed to only
> > change referencs to objects with the DOT notation and any physical
> > folder locations.  I zipped up the folder that is failing in the
> > subdirectory here:
>
> >http://brad.melendy.com/projects/mg/translator.zip
>
> > I've spent about 5 hours getting this far and performed the quick
> > start three times from scratch.  I was just really hoping this would
> > be super easy to get running but at least not for me and I'm feeling
> > pretty dense.  :-\  Thanks for any help.
>
> > ...Brad

--~--~---------~--~----~------------~-------~--~----~
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

For more about Model-Glue, check http://www.model-glue.com .
-~----------~----~----~----~------~----~------~--~---

Reply via email to