Couple of things:
1. You don't have a returntype attribute on your function tag
2. You don't specify access="remote" on your function tag

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

> I thought maybe that could be the error, so I rewrote it...
>
> <cfcomponent displayName="greetings">
>        <cffunction name="sayHello">
>                <cfset var strHelloMessage = 'Hello World!' />
>                <cfreturn strHelloMessage />
>        </cffunction>
> </cfcomponent>
>
> ... and still got the same error message. :/
>
> On Nov 13, 10:20 pm, Matthew Woodward <[email protected]> wrote:
> > 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
>



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