If you have never written cfc's, here are a few links that will help
you alot. The second link is probably the best newbie cfc tutorial.
Also you might want to check out www.easycfm.com. There are tons of
people on there who are experts with coldfusion.

http://www.macromedia.com/devnet/coldfusion/articles/oo_interface.html

http://www.macromedia.com/devnet/coldfusion/articles/creating_cfcs.html

http://www.macromedia.com/devnet/coldfusion/cfcs.html

--- In [email protected], Tariq Ahmed <[EMAIL PROTECTED]> wrote:
> Well from a Coldfusion perspective... it's extremely easy.
> 
> In the Coldfusion administrator you set up a "Datasource" to your mySQL 
> Database. CF comes with a mySQL driver out of the box, all you do is 
> give it a name (eg mySQLDS), server, port, username, pw, etc...
> 
> then in CF you make a file called a CFC (Coldfusion Component),
which is 
> just a text file and looks something like this in a very basic sense:
> 
> mycomponent.cfc
> <cfcomponent>
>   <cffunction name="getData" returnType="query" access="remote">
>      <cfquery name="myQuery" datasource="mySQLDS">
>         SELECT * from whatever
>       </cfquery>
>       <cfreturn myQuery>
>    </cffunction>
> </cfcomponent>
> 
> Then in Flex...
> <mx:RemoteObject ... source="mycomponent">
>   <mx:Method name="getData" ..... />
> </mx:RemoteObject>
> 
> And that cfc can also be a webservice as the same time just by
basically 
> switching mx:RemoteObject to mx:WebService.
> 
>  From a PHP perspective, this article may help 
> http://webservices.xml.com/pub/a/ws/2004/03/24/phpws.html
> 
> 
> 
> pioplacz wrote:
> 
> >That I know cause at the moment I use PHP to output all the data 
> >from mysql and show it in XML. But thinking of using some other 
> >technology like webservices. But don't really know how to create 
> >them? Can you maybe explain a little how is all works and what would 
> >be the easiest way to use. 
> >
> >  
> >




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to