Newbie - how to use controller methods

33 views
Skip to first unread message

Manaus

unread,
Apr 18, 2014, 6:52:57 PM4/18/14
to framew...@googlegroups.com
Hello everybody,  
first time I'm playing with FW/1, and after trying to make a simple controller, I was wondering: method greetings.hello is invoked when I load a page with action=greetings.hello. But how do I get the result of the method? For example, 

function hello() {
  return "hi there";
}

How do I output 'hi there' in the hello.cfm page? Are controllers present in the 'response context' of the page? 

Thanks and sorry for the probably dumb question.. 

Sean Corfield

unread,
Apr 18, 2014, 7:43:15 PM4/18/14
to framew...@googlegroups.com
I strongly suggest working through the Getting Started guide step-by-step as it shows exactly this sort of thing in detail:


That will give you some background against which to ask questions, since by the time you've finished that, you'll have added a controller, and then added a service and displayed the results in a view.

Sean
signature.asc
Reply all
Reply to author
Forward
0 new messages