Amf and CodeIgniter (FB 4 PHP)

So I downloaded this sample http://www.adobe.com/devnet/flex/testdrive.html
And apparently the code is so out of date in the php gateway side that nothing works.  I download zend framework and spent hours trying to get it working and after so much work, still didn't work, alot of errors, i fixed some errors and problems, and still had some more errors and issues to the point that it just didn't work.
So i downloaded the amfphp (http://www.silexlabs.org/amfphp/) library with CodeIgniter,  after some quick fixes, it workis like a charm. Everything works, without much hasle it work great. Got the test drive sample fully working rather quickly.
So I am trying to create more data connections.
The problem is that FB is programed/hardcoded (in data/connect to php), to only work with zendframework Amf, and has all kinds of issues, and won't even try to detect anything that is not zendframework or the Zend_Amf. Why such limitations? This makes the whole purpose of the whole thing useless. codeIgniter works just fine without all the issues and compatiblity issues, and not to mention testing it with the latest ZF version, so incompatible!. So AMF works great CI but yet I can't use it just because is not zend_amf!. Now spend another week to even try to get ZF AMF working.. so much for test drive in an hour!   do developer a favor. Get serious about supporting more frameworks or general AMF connection and not just lock it up to ZF, without any other options!..

Forget this question, I am going to use FB 4.6

Similar Messages

  • Populating a Combobox using Remoting with AMF and PHP

    Hello all
    I am using Zend framework and Flex 3.4 to create a webapp. I am stuck at how to populate a combobox dynamically using the service I created in PHP.
    In some of examples I saw that result of database query was being converted into XML and then sent to Flex. This seems a little too time-consuming if I have to do it every time. I saw some examples in Adobe Docs about Remoting with AMF and PHP. That seems like a better approach although how it would be applicable here is beyond me right now.
    Can somebody guide me in correct direction?
    Thanks and Regards
    Shivik

    Try this: http://code.google.com/p/as3flexdb/ is very easy to use and it
    will help.
    All you need to populate a combo is:
    <mx:ComboBox dataProvider="{query.Records} /

  • Zend AMF and Flash Builder Tutorial

    As part of the good ole new years resolution, I decided to sit down and take a shot at learning Flash. As a PHP developer by profession, I was curious about Zend AMF, part of the Zend PHP Framework. After finding it difficult to get a barebones working example, I decided to write a tutorial from the beginner's perspective (except the PHP part). The result is on the blog post located here:
    http://flearn.wordpress.com/2011/03/01/zend-amf-basics/
    I put it on a wordpress blog as it has nice code highlighting features and saves drafts for me. My hope is that it provides a basic guide on getting Zend AMF up and running with a basic barebones app, and would like feedback on any of the content.

    Thaaaaaank you maaaaan!
    Seriously - I was about to put a brick through my screen.

  • When to use AMF and when to use RTMP??

    Hello can someone explain the difference??
    I am using all the defaults for the configurations files
    (remoting and datamanagement) and my app works perfectly on
    development mode where everything is on localhost, but when we try
    it on pre-production it keeps throwing an error saying that it
    couldn't connect to the RTMP channel. The only thing that changes
    between these two modes is that on development i access everything
    on localhost and on pre-production we point to another server.
    I am totally clueless why this is happening, i am bit
    confused why data-management uses RTMP and why remoting uses AMF,
    so if anyone could explain it to me it would be great.
    Thanks

    There's no special reason why one uses RTMP vs. AMF. Data
    management service can also use AMF and Remoting can also use RTMP.
    The only real requiement is that Data management service needs to
    be able to receive updates from the FDS/LCDS server. This can be
    achieved by using a channel that is capable of receiving pushed
    updates from the server (eg. RTMP) or a channel that is capable of
    polling for updates on the server (i.e. AMF-polling). Therefore,
    when you use AMF with Data management service, you need to have
    polling enabled with a polling interval.
    In terms of why AMF works but RTMP doesn't is that AMF
    channel uses AMF format over the HTTP protocol whereas RTMP channel
    uses simple TCP socket (and not HTTP). Therefore in some
    environments, RTMP will be blocked by the firewalls but AMF won't
    since it's like regular HTTP traffic. In this case, you can use AMF
    polling instead or use RTMPT which is new in LCDS 2.5.

  • Architecture Design Question: Integrating AMF and HTTP/REST

    We have an app that is consuming services from blazeds over an AMF channel. This approach replaced an earlier implementation that consumed SOAP services. This took place before I inherited the project. Apparently, there were tremendous performance gains in switching to AMF and we don't want to abandon it. 
    Now we are creating a new RESTful, HTTP Request/Response-based service layer that will be shared across several organizations and the idea is that anyone can then write clients to grab our data (as well as data from other repositories in other organizations that implement the common service API). The services include output handlers that are designed to return data in various formats that the user might request (e.g., csv, xml, JSON, AMF???).
    My question is about how to keep the performance benefits of AMF for our Flex client as the new services move to the HTTP/REST architecture.
    Our current thinking is to add the blaze jars to the new webapp and use the message broker to route as you normally would, but the destination would essentially be an adapter class that can take the AMF requests and pass them on to the RESTful access points of our services, and then transform the response back to AMF.
    I just started reading Shashank Tiwari's Professional BlazeDS and came across the chapter on using blaze as a server-side proxy. Is this a viable approach for what I am trying to do? I also see references to extending blaze by creating custom adapters. Is this the right track? I'm sure this is a common problem. I'm looking for a discussion on possible solutions. Andy ideas?

    Hi,
    In Lync server 2013 Stretched pools are not supported for the Front End, Edge, Mediation, and Director server roles. It need two Lync pools.
    If one pool fail to connect, An administrator can declare an emergency and fail over the pool to the backup pool.  That is done by using the:
    Invoke-CsPoolFailover –PoolFQDN <Pool fqdn> –DisasterMode –Verbose
    More details:
    http://blog.avtex.com/2012/07/26/understanding-lync-2013-server-failover/
    Note: Microsoft is providing this information as a convenience to you. The sites are not controlled by Microsoft. Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information
    found there. Please make sure that you completely understand the risk before retrieving any suggestions from the above link.
    Best Regards,
    Eason Huang
    Eason Huang
    TechNet Community Support

  • Difference between my-secure-amf and my-secure-http

    Whats the difference between my-secure-amf and my-secure-http?

    For historical reasons, an "AMF" channel is binary encoded AMF byte stream over HTTP.  an "HTTP" channel (bad name!) is an AMFX encoded XML stream over HTTP.
    For more on the different types of channels see the documentation here: http://help.adobe.com/en_US/LiveCycleDataServicesES/3.1/Developing/WSc3ff6d0ea77859461172e 0811f00f6e876-7fecUpdate.html
    Tom

  • Zend AMF and Flex 4

    Hello,
    I am currently working on a windowed app that uses the Zend AMF to connect to the database. I have been trying move the framework from my local testing server to my web server.
    First I ftped the framework files, my gateway.php, and amf_config.ini to the server. Inside the amf_config, changed the webroot to be the location of the ZendFramework and I also pointed the _super_class generated by the dataservice to my webserver. My php.ini is also configured to include that path to the ZendFramework.
    Did I miss a step at some point / was there something I was supposed to do when I created the data service? Is it even possible for an desktop AIR app to work with the ZendFramework when it is on a web server?
    My host is Bluehost

    Hello there.
    Here's the ServiceLocator and delegates I am using....
    // LoginDelegate.as
    package com.myproj.products.business {
         import com.myproj.products.vo.LoginVO;
         import mx.rpc.IResponder;
         import com.adobe.cairngorm.business.ServiceLocator;
         public class LoginDelegate {
              // anything that implements the IResponder interface can act as a responder
              private var responder:IResponder;
              private var service:Object;
              public function LoginDelegate(responder:IResponder) {
                   this.responder = responder;
                   this.service = ServiceLocator.getInstance().getRemoteObject("loginService");
              public function login(loginAttempt:LoginVO):void {
                   // Call the method of service that resides on server
                   var call:Object = service.login(loginAttempt);
                   // Send the response to responder
                   call.addResponder(responder);
    // com/myproj/products/business/Services.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <cairngorm:ServiceLocator
         xmlns:mx="http://www.adobe.com/2006/mxml"
            xmlns:cairngorm="com.adobe.cairngorm.business.*">
         <!-- Login Service -->
         <mx:RemoteObject
              id="loginService"
              destination="zend"
              source="LoginService"
              showBusyCursor="true">
              <mx:method name="doLogin" />
         </mx:RemoteObject>
    </cairngorm:ServiceLocator>
    With kind regards
    ShiVik

  • How do I find and replace text in PHP files?

    How can I in CS3 make sitewide changes to the text in PHP pages without changing variable names etc that have the same name?
    For example if I have an installation of a PHP forum and I want to change every instance of the word 'forum' to 'message board'...
    If I used the 'inside tag' search with " as the tag, then if "" contained a variable called 'forum' it would also be changed and therefore corrupt the code....
    Is there a simple way around this?
    Thanks!
    I'm using CS3 on Windows Vista.

    It looks like you're trying to find and replace source code, so you may be able to look at the various places that are looked at when finding and uncheck the ones that don't apply.
    But, if it's all source code then that won't help.  One thing that may work is to expand the search option - for example if the work "forum" that you're wanting to change it preceded by another word, or character or something that sets it apart, then do you find on that. You can expand that search phrase as far out in either direction that you need to to make it different, if of course that is practical in your situation.
    The only other way I can think of is to somehow create an exception rule, but I'm not sure if that's possible or how to do it.

  • Please help! How can I validate Radio Buttons and List Menu with PHP.

    Hello everyone, I have been learning PHP step by step and
    making little projects.
    The point is I find it easy to learn by doing "practical
    projects."
    I have been reading the David Powers's Book on PHP Solutions
    and it's really great, however there is nothing mentioned regarding
    Validating Radio buttons. I know the book cannot cover every aspect
    of PHP and maybe someone in here can help.
    I have been learning how to process HTML forms with PHP.
    The problem is every book or tutorial I have read or
    encountered fall short on validation.
    I'm wondering how I can learn to validate Radio Buttons and
    Select List Menu.
    I have managed to create validation for all other fields but
    have no clue as to how I can get validation for Radio Buttons and
    List Menu.
    I would also like an error message echoed when the user does
    not click a button or make a selection and try to submit the form.
    I would appreciate any help.
    Patrick

    It's not that default value is "None." In fact it's not. It
    will only be
    "none" when the form is submitted.
    Also if your submit button is names 'send' then
    $_POST['send'] will only be
    set if the form was submitted.
    Make sure you didn't hit the refresh button on your browser
    which usually
    reposts the information. Also make sure you did not reach the
    form from
    another form with the same button names.
    Otherwise paste the snippet.
    Also you can check what fields are set in the post array by
    adding this to
    the top of (or anywhere on) your page:
    print_r($_POST);
    Cosmo
    "Webethics" <[email protected]> wrote in
    message
    news:[email protected]...
    >
    quote:
    Originally posted by:
    Newsgroup User
    > Off the top of my head this should be no different than
    your radio buttons
    > except that 'productSelection' will always fail the
    !isset check when the
    > form is submitted since the default value is "None", and
    therefore always
    > set. :-)
    >
    > So how about this..?
    > <?php
    > if (isset($_POST['send']) and
    ($_POST['productSelection'] == "None"))
    > {echo "Please select a product.";}
    > ?>
    >
    >
    >
    >
    > "Webethics" <[email protected]> wrote
    in message
    > news:[email protected]...
    > > Another question - how do i applied the code you
    just showed me to
    > > select
    > > menu
    > > or select list?
    > >
    > > This is the list:
    > >
    > > <div class="problemProduct">
    > > <label for="productSelection"><span
    class="product_label">Product
    > > Name.</span></label>
    > > <select name="productSelection" id="products"
    class="selection">
    > > <option value="None">-------------Select a
    product----------</option>
    > > <option value="Everex DVD Burner">Everex DVD
    Burner</option>
    > > <option value="Vidia DVD Burner">Vidia DVD
    Burner</option>
    > > <option value="Excerion Super Drive">Excerion
    Super Drive</option>
    > > <option value="Maxille Optical Multi
    Burner">Maxille Optical Multi
    > > Burner</option>
    > > <option value="Pavilion HD Drives">Pavilion
    HD Drives</option>
    > > </select>
    > > </div>
    > >
    > > I thought I could just change the name is the code
    from operatingSystem
    > > to
    > > productSelection.
    > >
    > > Something like this:
    > >
    > > From this:
    > >
    > > <?php
    > > if (isset($_POST[send]) and
    !isset($_POST['operatingSystem']))
    > > {echo "Please select an operating system.";}
    > > ?>
    > >
    > > To this:
    > >
    > > <?php
    > > if (isset($_POST[send]) and
    !isset($_POST['productSelection']))
    > > {echo "Please select an operating system.";}
    > > ?>
    > >
    > > But this does not work, any ideas?
    > >
    > > Patrick
    > >
    >
    >
    >
    >
    > Hey, I tried this about but as you mentioned, since the
    default product
    > value
    > is "None" an error message appears when the page loads.
    >
    > Is there a way to code this things so that even though
    the default value
    > is
    > "None" there ia no error message untle you hit the
    submit?
    >
    > When I applied the code, it messes up the previous code,
    now the operating
    > system is requiring an entry on page load.
    >
    > When I remove the code from the list menu everything
    goes back to normal.
    >
    > I know this is a little much but I have no other
    alternatives.
    >
    > Patrick
    >

  • How to install and configure latest xampp, php, Mysql, apache server, and configure it with dreamvie

    Working on my next project for the tech blog Techmozilla I am trying to make php to work with Apache. . i surfed for the procedures and finally i was asked to do the below mentioned operation .. but i am unable to understand it can anyone please help me .I am using Windows XP
    # Add the following 3 lines to your httpd.conf file. You can put them anywhere in the file but maybe it makes sense to put them after the other LoadModule section.
    LoadModule php5_module "d:/Program Files/php/php5apache2_2.dll"
    AddType application/x-httpd-php .php
    PHPIniDir "D:\Program Files\php"
    Is there any other link which helps to install PHP,Apache and MySql. Please help me. Thank you in advance

    This forum is for helping people who are trying to download and install Adobe software products.  You need to find an information resource suitable to the task you are undertaking, most probably provided by whomever provided the resource(s) you are trying to install.

  • [Exclusive] Create AS3 and MXML in your PHP pages - Q and A

    One of the most common PHP scripts is a form.  Before FTML, there has never been a method of truely integrating Flash with PHP.  Flash and PHP have always been seperate sandboxes when developing.  FTML now allows you to write PHP and FTML hand in hand on the same page.  This removes the requirement of additional files or web services for PHP to interact with Flash.
    PHP to Flash: http://reshapemedia.com/ftml/learn/php-to-ftml/
    FTML Getting Started Guide: http://reshapemedia.com/ftml/downloads/getting-started-guide/
    PHP Requirements
    None - simply code as you would normally and include the MXML components rather than HTML.
    Form Requirements
    All Form children must have the [name] property set
    Any UI For child with the [id] property set will be processed with the Form
    Forms should have [relativeChildSize] set to "true"
    Forms support a [method] of "get", "post", "send", "refresh"
    Inputs with a [type] of "text" or "password" support the [enter] key press
    Example PHP File
    Adobe will not let me post the example code so you can view the demo here: http://reshapemedia.com/examples/ftml-form.php
    - Select [View Source] from your menu to see the code.
    Message was edited by: ReshapeMedia

    It's a little hard to understand your question and its context. Can you please upload this page and give us a link so we can see what you are describing?

  • Can I open and render a local .PHP document?

    I have some .PHP documents on my local harddrive. I have Textmate (a text editor) set as the default application to open these documents. However, I would also like to open and render them in Safari. If I click COMMAND-O in Safari to get a Finder window, I can navigate to my .PHP documents, but I cannot open them because they are grayed out. I can't find any preference that would allow me to open them.
    In Firefox I can open a .PHP document in this way and it will render (albeit somewhat incompletely). Is this functionality absent in Safari?

    This doesn't work for me. I enabled web sharing in system preferences and enabled PHP5 by following the instructions here, but when I try to open a .PHP file in Safari, they are still grayed out in the Finder window.
    Is the idea that I need to drop the .PHP files into the Sites directory and view them through Apache? (I'm hoping to be able to just view them from any directory on the harddrive, the same as I can do with Firefox.)
    Message was edited by: billmcn

  • Is it possible to load and send variables to php at the same time?

    Hello, with this line:
    request.method = URLRequestMethod.GET; you can receive
    variables from php.
    and with request.method = URLRequestMethod.POST you can send
    variables.
    But is it possible to do this simultaniously ?

    they both send and receive data sequentially. ie, data is
    sent (if there is any) and then data is received (if there is
    any).

  • Drivers are installed and configured correctly but PHP can still not find them

    Hi,
    I am trying to test my application on and IIS/MSSQL setup before trying to deploy it to a customer's site. I have a clean install of IIS, SQL Server and PHP. The Servers appear to be configured correctly. I have downloaded and installed drivers according
    to the Microsoft documentation. I have made sure the module is enabled in IIS and the entry isin the PHP.ini file.
    Using "PHP -i" in powershell gives:
    PHP Startup: Unable to load dynamic library
    'C:\xampp\php\ext\php_pdo_sqlsrv_55_nts.dll' - The specified module could not be found.
    I am using the PHP from my xampp installation as I need the newer version of PHP to support my application. The PHP version is 5.6.3.
    When I try to connect to the database in PHP I get: 
    #0 CACDB::fail(could not find driver) called at [C:\plato\dal\dbconn.php:24]
    #1 CACDB->__construct() called at [C:\plato\dal\dbconn.php:36]
    #2 CACDB::Connection() called at [C:\plato\dal\user.php:17] 
    Thanks in advance,
    Dion

    You should be able to disable that item in the device manager console?also I'm fairly sure there is a "Stop bugging me about this" option when Vista finds new hardware. Sorry for the vague reply, I'm nowhere near any Vista PC's right now

  • Detect browser, and display message, without PHP?

    My website is only fully functional with Google chrome, a lot still works in Firefox, and almost nothing works with IE (for now), is there some sort of script/code I can use to detect if a browser is not Google chrome? And then if the browser is not Google chrome a pop-up message appears? I can't use anything PHP so Javascript or something else would be preferable.

    I agree with bregent, no-one is going to download and install a new browser because of your suggestion.
    The idea of validating your page is development tip, not a bash. Over in Web Developer Forum:
    http://www.webdeveloper.com/forum/index.php
    posters are asked to kindly validate their pages FIRST, before expecting free help from other on how to fix the page. It's a "Best Practice" of most reputable Web developers. Validating will often pinpoint known problem areas and uncover issues you may not even be aware of.
    Many errors on your page including this:
    <!-- ******************************************************** -->
            <!-- BEGIN CODE TO COPY INTO THE HEAD SECTION OF YOUR WEBPAGE -->
            <!-- ******************************************************** -->
            <link rel="stylesheet" href="/blades/blades.css" type="text/css" />
            <script src="/blades/jquery-1.6.min.js" type="text/javascript"></script>
            <script type="text/javascript">jQuery.noConflict();</script>
            <script src="/blades/jquery.clip-animation.js" type="text/javascript"></script>
            <script src="/blades/jquery.blades-banner.js" type="text/javascript"></script>
            <script type="text/javascript">
    Which is in the <body> and not the <head>
    The best and most direct means of producing a cross-browser friendly page is to validate the page often during development:
    http://validator.w3.org/
    Best wishes,
    Adninjastrator

Maybe you are looking for

  • Connecting to an unknown network when a password is required.

    I struggle to connect to an unknown network when a password is required. In settings, there's a tick as if it's connected but it isn't. What am I doing wrong?

  • Why in Word 14.3.2 is Copy grayed out

    Why in Word 14.3.2 is Copy grayed out

  • Pro 6 and Pro 7

    I have FCP 6.06 installed. I am using mountain lion. I heard that 6.06 is not stable on Mountain Lion. I bought FCP 7 online and I wanted to keep 6.06 to make sure 7 works well. Does anyone know how to install 7 with 6 still on my system? Apple told

  • Windows live messenger for 8130

    This is my first blackberry and its verrry confusing lol. I've downloaded live messenger etc but it says service not enabled for this handheld. Any hints please? Solved! Go to Solution.

  • IPhoto Calendar Failure

    I've used iPhoto to create photo books in the past, so I thought I'd try it for a calendar.  And, I've installed iPhoto 11, which apparently has no further updates.  I'm on a late 2011 MacBookPro with OS X 10.8.2. Presumably, I need to make an empty