Hello,

I've been working in sfDojoPlugin for a while. It's on my personal SVN
and soon I'll commit it to symfony-forge and I'll update the wiki. It
has two main features:

1. easy rpc, for instance:

actions.class.php:

class testActions extends sfDojoActions {
  public function callList($sort) {
    $c = new Criteria();
    if($sort) {
      $c->addAscendingOrderByColumn(TestPeer::CREATED_AT);
    }
    $this->items = TestPeer::doSelect($c);
  }
}

listSuccess.php:

<result type="array">
  <? foreach($items as $item): ?>
  <item type="object">
    <id><?= $item->getId() ?></id>
    <name><?= $item->getClient()->getName() ?></name>
  </item>
  <? endforeach; ?>
</result>

Javascript:

var datasource = new dojo.rpc.JsonService('test/smd');

datasource.list(true).addCallback(function(items) {
  dojo.lang.forEach(items, function(item) {
    alert(item.id + " : " + items.name);
  });
});

in short: use call instead of execute and templates are XML which are
transformed to json in symfony.

2. new theme for propel admin generator based on dojo and the previous
feature. Full featured ajax admin generator!

Please be patient while I'm get some spare time to tie thing up.

Cheers

On Apr 16, 4:33 pm, "Ruthsbel Tambo" <[EMAIL PROTECTED]> wrote:
> Thanks a lot for your comments.
>
> I hope to find more information about dojo and symfony integration.
>
> Kind regards.
>
> ruthsbel
>
> On 4/16/07, Roel Vanhout <[EMAIL PROTECTED]> wrote:
>
>
>
> > Check outhttp://trac.symfony-project.com/trac/wiki/DojoIntegrationand
> >http://sourceforge.net/projects/sfdojo/. It's not much but it's a start.
>
> > cheers,
>
> > roel
>
> > Guillermo wrote:
> > > Hi.
>
> > > I'm building a php project with symfony, my question is about dojo and
> > > symfony, somebody could configured dojo with symfony.
> > > Really appreciate yur help.
> > > Sorry for my english. :)
>
> > > Kind regards.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony developers" 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-devs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to