7 Replies Latest reply on Jan 2, 2010 9:04 AM by nikos101

    Where does FB4 keep its links to the Zend framwork

    nikos101 Level 2

      Where does FB4 keep its links to the Zend framwork in its project, I can't seem to find any referencies

        • 1. Re: Where does FB4 keep its links to the Zend framwork
          David_F57 Level 5

          Hi Nikos,

           

          How was your new year....hope you enjoyed it.

           

          if you look in the root of your project folder there are 3 files the 2 you are interested i've listed below with copies of there content from a test zend project.

           

          David

           

          .flexProperties  (content as below)

           

          <?xml version="1.0" encoding="UTF-8" standalone="no"?>

          <flexProperties enableServiceManager="false" flexServerFeatures="0" flexServerType="16" serverContextRoot="" serverRoot="C:/wamp/www" serverRootURL="http://localhost/" toolCompile="true" useServerFlexSDK="false" version="2"/>

           

           

          .project (content as below)

           

          <?xml version="1.0" encoding="UTF-8"?>

          <projectDescription>

          <name>TestAMF</name>

          <comment></comment>

          <projects>

          </projects>

          <buildSpec>

          <buildCommand>

          <name>com.adobe.flexbuilder.project.flexbuilder</name>

          <arguments>

          </arguments>

          </buildCommand>

          </buildSpec>

          <natures>

          <nature>com.adobe.flexbuilder.project.flexnature</nature>

          <nature>com.adobe.flexbuilder.project.actionscriptnature</nature>

          </natures>

          <linkedResources>

          <link>

          <name>bin-debug</name>

          <type>2</type>

          <location>C:/wamp/www/TestAMF-debug</location>

          </link>

          <link>

          <name>bin-release</name>

          <type>2</type>

          <location>C:/wamp/www/TestAMF</location>

          </link>

          <link>

          <name>services/ClientsService.php</name>

          <type>1</type>

          <location>C:/wamp/www/services/ClientsService.php</location>

          </link>

          </linkedResources>

          </projectDescription>

          • 2. Re: Where does FB4 keep its links to the Zend framwork
            nikos101 Level 2

            Thanks but I'm not sure I see the link to the zend folder there


            • 3. Re: Where does FB4 keep its links to the Zend framwork
              David_F57 Level 5

              Hi

               

              the link to zend library is made by the gateway.php which gets information from the amf_config.ini, i think thats how it works, its all a little to black box for me. I like the nice and simple services config xml used for amfphp way more than the 'hidden' methodology zend

               

               

              David

              1 person found this helpful
              • 4. Re: Where does FB4 keep its links to the Zend framwork
                David_F57 Level 5

                Hi,

                 

                I forgot to mention that additional information which is compiled in so you get to the endpoints etc is in the actual project folder in the .model folder which has a file projectname.fml

                 

                David

                 

                <?xml version="1.0" encoding="UTF-8"?>

                 

                <model xmlns="http://ns.adobe.com/Fiber/1.0">

                  <annotation name="ActionScriptGeneration">

                    <item name="FullyQualifyReferences">true</item>

                  </annotation>

                  <service name="ClientsService">

                    <annotation name="ActionScriptGeneration">

                      <item name="Source">ClientsService</item>

                      <item name="ServiceType">RemoteObject</item>

                      <item name="Package">services.clientsservice</item>

                      <item name="Endpoint">gateway.php</item>

                      <item name="Destination">ClientsService</item>

                    </annotation>

                    <annotation name="ASFilesGenerated">

                      <item name="ServiceFilesGenerated">services/clientsservice/_Super_ClientsService.as~#~services/ clientsservice/ClientsService.as~#~</item>

                    </annotation>

                    <annotation name="ServiceTypeGroup">

                      <item name="ServiceBackendType">PHP</item>

                    </annotation>

                    <annotation name="ServiceConfig">

                      <item name="PHP_RELATIVE_LOCATION">TestAMF-debug/services/ClientsService.php</item>

                      <item name="PHP_SERVER_ROOT">C:/wamp/www</item>

                      <item name="DEFAULT_ENTITY_PACKAGE">valueObjects</item>

                      <item name="PHP_SERVICES_FOLDER">C:/wamp/www/TestAMF-debug/services</item>

                      <item name="PHP_LOCATION">C:/wamp/www/TestAMF-debug/services/ClientsService.php</item>

                      <item name="LINKED_FILE">ClientsService.php</item>

                      <item name="PHP_SERVER_ROOT_URL">http://localhost/</item>

                      <item name="ABSOLUTE_ENDPOINT">http://localhost/TestAMF-debug/gateway.php</item>

                      <item name="PHP_CLASS_NAME">ClientsService</item>

                    </annotation>

                    <function name="getAllClients" return-type="Clients[]">

                      <annotation name="analyze group">

                        <item name="analyzed">true</item>

                      </annotation>

                      <annotation name="original signature">

                        <item name="returnType">opaque</item>

                      </annotation>

                    </function>

                    <function name="getClientsByID" arguments="itemID:integer" return-type="Clients[]">

                      <annotation name="analyze group">

                        <item name="analyzed">true</item>

                      </annotation>

                      <annotation name="original signature">

                        <item name="inputParams">opaque</item>

                        <item name="returnType">opaque</item>

                      </annotation>

                    </function>

                    <function name="createClients" arguments="item:Clients" return-type="integer">

                      <annotation name="analyze group">

                        <item name="analyzed">true</item>

                      </annotation>

                      <annotation name="original signature">

                        <item name="inputParams">opaque</item>

                        <item name="returnType">opaque</item>

                      </annotation>

                    </function>

                    <function name="updateClients" arguments="item:Clients" return-type="void">

                      <annotation name="analyze group">

                        <item name="analyzed">true</item>

                      </annotation>

                      <annotation name="original signature">

                        <item name="inputParams">opaque</item>

                        <item name="returnType">opaque</item>

                      </annotation>

                    </function>

                    <function name="deleteClients" arguments="itemID:integer" return-type="void">

                      <annotation name="analyze group">

                        <item name="analyzed">true</item>

                      </annotation>

                      <annotation name="original signature">

                        <item name="inputParams">opaque</item>

                        <item name="returnType">opaque</item>

                      </annotation>

                    </function>

                    <function name="count" return-type="integer">

                      <annotation name="analyze group">

                        <item name="analyzed">true</item>

                      </annotation>

                      <annotation name="original signature">

                        <item name="returnType">opaque</item>

                      </annotation>

                    </function>

                    <function name="getClients_paged" arguments="startIndex:integer,numItems:integer" return-type="Clients[]">

                      <annotation name="analyze group">

                        <item name="analyzed">true</item>

                      </annotation>

                      <annotation name="original signature">

                        <item name="inputParams">opaque,opaque</item>

                        <item name="returnType">opaque</item>

                      </annotation>

                    </function>

                  </service>

                  <entity name="Clients" persistent="true">

                    <annotation name="EntityProperties">

                      <item name="EntityOriginalName">Clients</item>

                    </annotation>

                    <annotation name="service Group">

                      <item name="service">ClientsService,ClientsServiceDummy</item>

                    </annotation>

                    <annotation name="ServerProperties">

                      <item name="IncludeRemoteClass">nonempty</item>

                    </annotation>

                    <annotation name="DataManagement">

                      <item name="create">createClients</item>

                      <item name="update">updateClients</item>

                      <item name="get">getClientsByID</item>

                      <item name="delete">deleteClients</item>

                      <item name="fillFunc">getAllClients,getClients_paged</item>

                      <item name="managingService">ClientsService</item>

                    </annotation>

                    <annotation name="getClientsByID">

                      <item name="propertySpecifier">ID,SURNAME,FIRSTNAME,DOB,PHONE,MOBILE</item>

                    </annotation>

                    <annotation name="getAllClients">

                      <item name="propertySpecifier">ID,SURNAME,FIRSTNAME,DOB,PHONE,MOBILE</item>

                    </annotation>

                    <annotation name="getClients_paged">

                      <item name="propertySpecifier">ID,SURNAME,FIRSTNAME,DOB,PHONE,MOBILE</item>

                      <item name="pagingEnabled">true</item>

                      <item name="positionalPagingParameters">true</item>

                      <item name="countOperation">count</item>

                    </annotation>

                    <annotation name="ActionScriptGeneration">

                      <item name="Package">valueObjects</item>

                    </annotation>

                    <annotation name="ASFilesGenerated">

                      <item name="EntityFilesGenerated">valueObjects/_ClientsEntityMetadata.as~#~valueObjects/_Super_ Clients.as~#~valueObjects/Clients.as~#~</item>

                    </annotation>

                    <id name="ID" type="integer"/>

                    <property name="SURNAME" type="string" required="true"/>

                    <property name="FIRSTNAME" type="string" required="true"/>

                    <property name="DOB" type="string" required="true"/>

                    <property name="PHONE" type="string" required="true"/>

                    <property name="MOBILE" type="string" required="true"/>

                  </entity>

                </model>

                1 person found this helpful
                • 5. Re: Where does FB4 keep its links to the Zend framwork
                  nikos101 Level 2

                  I hope its easy to change when I move to my remote server, Someone said I

                  just need to change the amf_ini thing

                   

                  best wishes

                   

                  Nikos

                   

                  Happy new hear 2 u too

                  • 6. Re: Where does FB4 keep its links to the Zend framwork
                    nikos101 Level 2

                    looking in the amf_config.ini

                     

                    since most are what looks like comments    ;

                     

                    I'm not sure what to change when I change the project location for the zend

                    path

                     

                    ;set the absolute location path of webroot directory, example:

                    ;Windows: C:\apache\www

                    ;MAC/UNIX: /user/apache/www

                    webroot =C:/Users/Nikos/Documents/Computing/htdocs/mission.org

                     

                    ;set the absolute location path of zend installation directory, example:

                    ;Windows: C:\apache\PHPFrameworks\ZendFramework

                    ;MAC/UNIX: /user/apache/PHPFrameworks/ZendFramework

                    ;zend_path =

                     

                    amf.production = false

                    amf.directories[]=flex/contacts

                     

                     

                    best wishes

                     

                    Nikos

                    • 7. Re: Where does FB4 keep its links to the Zend framwork
                      nikos101 Level 2

                      Hmm it seems the file of interest is the gateway.php file as the zend path is set in there

                       

                      <?php
                      ini_set("display_errors", 1);
                      $dir = dirname(__FILE__);
                      $webroot = $_SERVER['DOCUMENT_ROOT'];
                      $configfile = "$dir/amf_config.ini";

                       

                      //default zend install directory
                      $zenddir = $webroot. '/ZendFramework/library';

                       

                      //Load ini file and locate zend directory