[Jifty-commit] r7350 - jifty/trunk/lib/Jifty/Manual

Jifty commits jifty-commit at lists.jifty.org
Sat Aug 1 08:15:32 EDT 2009


Author: c9s
Date: Sat Aug  1 08:15:31 2009
New Revision: 7350

Modified:
   jifty/trunk/lib/Jifty/Manual/Cookbook.pod

Log:
add 2 new item to cookbook

Modified: jifty/trunk/lib/Jifty/Manual/Cookbook.pod
==============================================================================
--- jifty/trunk/lib/Jifty/Manual/Cookbook.pod	(original)
+++ jifty/trunk/lib/Jifty/Manual/Cookbook.pod	Sat Aug  1 08:15:31 2009
@@ -11,6 +11,26 @@
 
 =head1 HOW DO I ...
 
+=head2 Catching Action Result in Dispatcher
+
+To get action result in your dispatcher:
+
+    on '/=/your_action_name/'  => run {
+
+        my $result = Jifty->web->response->result( 'action-moniker' );
+
+
+    };
+
+=head2 Catching POST data in Dispatcher
+
+In your L<MyApp::Dispatcher>:
+
+    on POST '/=/catch' => run {
+        my $data = get('data');
+
+    };
+
 =head2 Upload file via Action parameter
 
 In your action schema:


More information about the Jifty-commit mailing list