Welcome to Framework One!
On Sat, Sep 25, 2010 at 8:14 AM, Hal <hal....@gmail.com> wrote:
> 1. My application.cfc has this: variables.framework.generateSES = true
> but URL like http://mydomain.com/main/default isn't working. Is there
> something more/else I need to do?
Because there's no /index.cfm in the URL, you'll need rewriting
enabled on your web server.
Or you should be able to force /index.cfm to appear in the URL by
specifying: variables.framework.OmitSESIndex = false
> 2. I have a url: mydomain.com/registration/create. It first calls
> session/registration.cfc's create method that returns a string. In my
You mean services/registration.cfc's create() method?
> registration.cfc controller's create method, I am trying to read
> arguments.rc.data (also tried just rc.data) and get an error that data
> doesn't exist in that struct. Is the something more/else I need to do?
Services run after the first round of controller methods. If you want
to access the result of a service call, you need to define endCreate()
in your controller (and use startCreate() for consistency):
function startCreate(rc){ // called at start of create processing
...
}
// implicit call to rc.data = services.registration.create()
function endCreate(rc){ // called at end of create processing
... rc.data is available ...
}
> 3. Inside a controller, is there a way to tell the framework that I
> don't want to use the default view? I saw the setView, but I don't
> think that's what I want, no?
It is what you want:
function someItem(rc){
setView( 'other/page' ); // tell FW/1 to use views/other/page.cfm instead
}
--
Sean A Corfield -- (904) 302-SEAN
Railo Technologies, Inc. -- http://getrailo.com/
An Architect's View -- http://corfield.org/
"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood
On Sat, Sep 25, 2010 at 12:12 PM, Sean Corfield <seanco...@gmail.com> wrote:
> function someItem(rc){
> setView( 'other/page' ); // tell FW/1 to use views/other/page.cfm instead
Should be:
variables.fw.setView( 'other/page' );
> }
Assumes you have:
function init(fw){
variables.fw = fw;
}
in your controller.
Just starting out with Sean's framework. Some questions for you more
seasoned folks:
1. My application.cfc has this: variables.framework.generateSES = true
but URL like http://mydomain.com/main/default isn't working. Is there
something more/else I need to do?
2. I have a url: mydomain.com/registration/create. It first calls
session/registration.cfc's create method that returns a string. In my
registration.cfc controller's create method, I am trying to read
arguments.rc.data (also tried just rc.data) and get an error that data
doesn't exist in that struct. Is the something more/else I need to do?
3. Inside a controller, is there a way to tell the framework that I
don't want to use the default view? I saw the setView, but I don't
think that's what I want, no?
Many thanks for any help,
Hal
--
FW/1 on RIAForge: http://fw1.riaforge.org/
FW/1 on github: http://github.com/seancorfield/fw1
FW/1 on Google Groups: http://groups.google.com/group/framework-one