It's easy no need of any plugin installed , just follow the tutorial
on the adobe site and in the php file  , create first php file
somewhere in your root dir , (name cannot contain _ or . ) an then put
this in it


<?php


class SamplePhp {


        public function __construct() {
                require_once(dirname(__FILE__).'path to config dir/config/
ProjectConfiguration.class.php');

    $configuration =
ProjectConfiguration::getApplicationConfiguration('frontend', 'prod',
true);
    sfContext::createInstance($configuration);


    Propel::setConfiguration(sfPropelDatabase::getConfiguration());
    Propel::initialize();
    $autoload = sfSimpleAutoload::getInstance();
    $autoload->addDirectory( dirname(__FILE__).'path to lib dir dir/
lib');
    $autoload->register();
    sfContext::switchTo("frontend");

    $this->user = sfContext::getInstance()->getUser();

        }

        public function getAllItems() {
            $this->user->setAttribute("asd","asd");
      //echo $this->user->getAttribute("asd");


      $c = new Criteria();
      $users = UsersPeer::doSelect($c);

      $ret = array();

      foreach ($users as $key => $user) {
        $row->id = $user->getId();
        $row->name = $user->getName();
        $ret[] = $row;
      }

      return $ret;
        }



}


?>


That's it , absolutely easy , and nothing to worry about. The
combination between these two ones is absolutely amazing.

It'll be very cool to make little plugin that generates from model
service with ready to use methods.

On Jan 11, 5:07 pm, Frank He <[email protected]> wrote:
> This plugin looks great for using Flex with symfony and I wanted to give a
> try, but when I  tried to install flex plugin,
> 1. Its dependency is afmPlugin, which can only be used in symfony 1.2, so
> your flex plugin can only be used in 1.2, I think
> 2. after installing flex plugin, much fatal error happened, please see
> attached image.
> I used both --install_deps as well as manually install afmphp and then flex
> plugin, the error is always there.
>
> Any idea on how to install this flex plugin?
>
> Thanks
>
> On Sun, Jan 10, 2010 at 11:15 PM, Vapirov <[email protected]> wrote:
> > Hey, maybe that plugin can help you.
> >http://www.symfony-project.org/plugins/sfFlexymfonyPlugin
>
> > On 8 янв, 17:22, xhe <[email protected]> wrote:
> > > Flash Builder 4 has a very exciting feature, data service, which can
> > > connect to backend PHP class directly and call the method, render the
> > > data consequently.
>
> > > Now the problem comes to me, Symfony is hiding all the class at
> > > backend etc. So can anyone if you ever used data service in Flash
> > > Builder 4 can give me some opinion on how to use symfony with Flash
> > > builder 4 Dataservice?
>
> > > This is a video from Adobe.
>
> > >http://labs.adobe.com/technologies/flashbuilder4/tutorials/
> > > Select Part 1. the php code->
> >http://labs.adobe.com/technologies/flashbuilder4/tutorials/php1/
>
> > > Thanks.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "symfony users" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected]<symfony-users%[email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/symfony-users?hl=en.
>
>
>
>  error.jpg
> 70KViewDownload

-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.

Reply via email to