Hi Mario,

I wrote a Catalyst controller which might be worth looking at for you.

It handles all kind of REST requests using formfu config files. For each kind of request there is an extra file.

I added a few bits of documentation to it. It's currently in development for a new project I'm working on.

My Controllers look currently something like this:

package MyApp::Controller::User;
use strict;
use warnings;

use base 'CatalystX::Controller::ExtJS::REST';


1;


This will create two chained actions: /user and /users, where you can post,put, delete and get whatever you want.

You can read the documentation I wrote and try it.

Attachment: ExtREST.tgz
Description: Binary data




moritz

Am 31.03.2009 um 14:30 schrieb Mario Minati:

There is also an other error, that makes me believe, that
__PACKAGE__->config() of 'Catalyst::Controller::REST' isn't called correctly:

[warn] Use of uninitialized value in hash element
at /usr/local/share/perl/5.8.8/Catalyst/Controller/REST.pm line 391.


Greets,

Mario Minati

Am Dienstag 31 März 2009 14:13:28 schrieben Sie:
Hi,

I would like to create a Catalyst Controller which inherits from
Catalyst::Controller::HTML::FormFu::ExtJS and Catalyst::Controller::REST.

I did it as described in Catalyst::Upgrading:

package glue::Controller::Ext::Form;

use strict;
use warnings;

use Moose;
BEGIN {
  extends
      'Catalyst::Controller::HTML::FormFu::ExtJS',
      'Catalyst::Controller::REST'
};


This is working, despite of this warning when running the App:
Subroutine glue::_loc_lang redefined
at /usr/local/share/perl/5.8.8/Locale/Maketext/Simple.pm line 120.


I would now like to ask if there are other possible ways for multiple
inheritence of Catalyst Controllers?
Or an idea why that messages comes up?


Greets,

Mario Minati



_______________________________________________
HTML-FormFu mailing list
HTML-FormFu@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu

_______________________________________________
HTML-FormFu mailing list
HTML-FormFu@lists.scsys.co.uk
http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu

Reply via email to