Unless it snuck into the 2.0 release right at the buzzer we don't yet
support full script for CFCs. You'd have to have cfcomponent and opening
cfscript tags, and then the rest could be in script including the function
declarations.

On Sun, Nov 13, 2011 at 6:33 PM, Travis <[email protected]> wrote:

> I'm getting this error when I try to access a CFC.
> ********************************************************
> HTTP ERROR 403
>
> Problem accessing /practice/oop/greetings.cfc. Reason:
>
>    Forbidden
> ********************************************************
>
> All I'm trying to do is run a simple CFC.
>
> component
>        displayname="greetings"
>        {
>                function sayHello() {
>                // the CFML code for the method will go here
>                var strHelloMessage='Hello World';
>                return strHelloMessage;
>                }
>        }
>
> --
> official tag/function reference: http://openbd.org/manual/
>  mailing list - http://groups.google.com/group/openbd?hl=en
>



-- 
Matthew Woodward
[email protected]
http://blog.mattwoodward.com
identi.ca / Twitter: @mpwoodward

Please do not send me proprietary file formats such as Word, PowerPoint,
etc. as attachments.
http://www.gnu.org/philosophy/no-word-attachments.html

-- 
official tag/function reference: http://openbd.org/manual/
 mailing list - http://groups.google.com/group/openbd?hl=en

Reply via email to