Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 30.068.262 Times

Catalyst 5.7007

  Date Added: February 06, 2010  |  Visits: 628

Catalyst

Report Broken Link
Printer Friendly Version


Product Homepage
Download (76 downloads)

Catalyst is a Perl module that contains the elegant MVC web application framework. SYNOPSIS See the Catalyst::Manual distribution for comprehensive documentation and tutorials. # Install Catalyst::Devel for helpers and other development tools # use the helper to create a new application catalyst.pl MyApp # add models, views, controllers script/myapp_create.pl model MyDatabase DBIC::Schema create=dynamic dbi:SQLite:/path/to/db script/myapp_create.pl view MyTemplate TT script/myapp_create.pl controller Search # built in testserver -- use -r to restart automatically on changes # --help to see all available options script/myapp_server.pl # command line testing interface script/myapp_test.pl /yada ### in lib/MyApp.pm use Catalyst qw/-Debug/; # include plugins here as well ### In lib/MyApp/Controller/Root.pm (autocreated) sub foo : Global { # called for /foo, /foo/1, /foo/1/2, etc. my ( $self, $c, @args ) = @_; # args are qw/1 2/ for /foo/1/2 $c->stash->{template} = foo.tt; # set the template # lookup something from db -- stash vars are passed to TT $c->stash->{data} = $c->model(Database::Foo)->search( { country => $args[0] } ); if ( $c->req->params->{bar} ) { # access GET or POST parameters $c->forward( bar ); # process another action # do something else after forward returns } } # The foo.tt TT template can use the stash data from the database [% WHILE (item = data.next) %] [% item.foo %] [% END %] # called for /bar/of/soap, /bar/of/soap/10, etc. sub bar : Path(/bar/of/soap) { ... } # called for all actions, from the top-most controller downwards sub auto : Private { my ( $self, $c ) = @_; if ( !$c->user_exists ) { # Catalyst::Plugin::Authentication $c->res->redirect( /login ); # require login return 0; # abort request and go immediately to end() } return 1; # success; carry on to next action } # called after all actions are finished sub end : Private { my ( $self, $c ) = @_; if ( scalar @{ $c->error } ) { ... } # handle errors return if $c->res->body; # already have a response $c->forward( MyApp::View::TT ); # render template } ### in MyApp/Controller/Foo.pm # called for /foo/bar sub bar : Local { ... } # called for /blargle sub blargle : Global { ... } # an index action matches /foo, but not /foo/1, etc. sub index : Private { ... } ### in MyApp/Controller/Foo/Bar.pm # called for /foo/bar/baz sub baz : Local { ... } # first Root auto is called, then Foo auto, then this sub auto : Private { ... } # powerful regular expression paths are also possible sub details : Regex(^product/(w+)/details$) { my ( $self, $c ) = @_; # extract the (w+) from the URI my $product = $c->req->captures->[0]; }.

Requirements: No special requirements
Platforms: Linux
Keyword: Application C- Called Called For Catalyst Libraries Mvc Myapp Perl Module Private Programming Sub Tt Web Application
Users rating: 0/10

License: Freeware Size: 143.36 KB
CATALYST RELATED
Libraries  -  Task::Catalyst::Tutorial 0.03
Task::Catalyst::Tutorial is a Perl module that installs everything you need to learn Catalyst. SYNOPSIS Installs the example "MyApp" described in Catalyst::Manual::Tutorial, and all its dependencies..
74.75 KB  
Libraries  -  Calyxo Web Application Framework 0.9.0
Calyxo Web Application Framework encourages in MVC model 2 based web application development. It offers support for true modular applications, i18n, a flexible view manager, a powerful validation engine, and more! Calyxo is entirely written in...
2.3 MB  
Development Editors  -  C/C++ Compiler Package for RX Family 1.02 Release 00
The C/C++ Compiler Package for RX Family package includes the following embedded system development tools: C/C++ compiler ANSI-compliant. Language specification supports exception processing and template functions according to ANSI/ISO standards....
 
Development Editors  -  C Compiler Package for R32C Series 1.02 Release 01
The C Compiler Package for R32C Series package includes the following embedded system development tools: C compiler Optimizing ANSI C compiler with extensions for embedded systems. Assembler Produces object code for the target MCU from assembly...
 
Development Editors  -  C Compiler Package for M32C Series 5.42 Release 00
The C Compiler Package for M32C Series package includes the following embedded system development tools: C compiler : NC308 Optimizing ANSI C compiler with extensions for embedded systems. Assembler : AS308 Produces object code for the target...
 
Network & Internet  -  SME Web Application Framework 0.3
SME Web Application Framework provides a Web application framework for small and medium-sized organizations. SMEWebApp is a framework for constructing Web applications for SMEs (small and medium-sized enterprises, companies, institutions, and...
849.92 KB  
Libraries  -  Test::Version 0.02
Test::Version is a Perl module that has the role to check for VERSION information in modules. SYNOPSIS use Test::Version; plan tests => $num_tests; version_ok( $file ); FUNCTIONS version_ok( FILENAME, [EXPECTED, [NAME] ] ) version_ok...
5.12 KB  
Libraries  -  Mac::Errors 1.13
Mac::Errors is a Perl module with constants for Mac error codes. SYNOPSIS use Mac::Errors qw(openErr); if( $value == openErr ) { ... } my $error = $MacErrors{ $symbol }; # -- OR -- my $error = $MacErrors{ $number }; my $symbol =...
54.27 KB  
Utilities  -  High-performance but simple! QuickTodo+ (alarm notification / passcode) 1.3
High-performance and simple! QuickTodo + (alarm notification / passcode) What type of TODO application is the best for iphone? How we can realize nimble operability and comfort when using application? The answer is "QuickTodo +". Every...
7.3 MB  
Libraries  -  dtRdr::Logger 0.0.11
dtRdr::Logger is a Perl module for global logging. SYNOPSIS use dtRdr::Logger; L->debug($message, ...); L->info($message, ...); L->warn($message, ...); L->error($message, ...); L->fatal($message, ...); For a stacktrace: sub bar {...
2.8 MB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  wolfSSL 3.12.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
2.73 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB