Google Groups Home
Help | Sign in
New feature in SVN: Simple Actions, and some other things
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
David Zülke  
View profile
 More options Feb 7 2007, 11:23 am
From: David Zülke <d...@bitxtender.com>
Date: Wed, 7 Feb 2007 17:23:38 +0100
Local: Wed, Feb 7 2007 11:23 am
Subject: [Agavi-Users] New feature in SVN: Simple Actions, and some other things
Hi guys,

there's a new feature in 0.11-svn (RC2 is coming tonight!) that  
allows to switch actions into a "simple" mode.

An action running in simple mode will
- not be execute()d - control jumps directly to the view indicated by  
getDefaultViewName()
- therefor not pass any validation
- not get any request data except for arguments set on the container  
(as you would do when creating slots, for instance)
- not run through action filters (and therefor NOT THROUGH THE  
SECURITY FILTER EITHER, MIND YOU!)

The ideal use case for simple actions are slots. Which brings me to  
another addition: two new convenience methods in the view:

createForwardContainer() and createSlotContainer().

They both work like createExecutionContainer, but accept an array in  
addition to a request data holder as their third argument. This array  
will then be used as "parameters" in a request data holder that's  
created transparently to the calling code. Also, these methods will  
set an "is_forward" or "is_slot" parameter on the container. You can  
use this to determine whether or not the current action/view is  
running as a slot. This might come in handy:

public function isSimple()
{
   return $this->container->getParameter('is_slot', false);

}

in your base action would be enough to automatically make all slots  
simple!

Let me know if you have any questions.

Greetings,

David

P.S: next mail is about caching!

_______________________________________________
users mailing list
us...@lists.agavi.org
http://lists.agavi.org/mailman/listinfo/users


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google