The following should help:
'resetParams' => false
-
--
Wil Moore III
Why is Bottom-posting better than Top-posting:
http://www.caliburn.nl/topposting.html
DO NOT TOP-POST and DO trim your replies:
http://linux.sgms-centre.com/misc/netiquette.php#toppost
--
View this message in context:
ht
You should benchmark your app with and without the plugin. Try benchmarking
common pages like the homepage, login, etc. and see for yourself if the
performance gains outweigh the minification-on-the-fly cost.
--
Hector Virgen
Sent from my Droid X
On Dec 22, 2010 7:56 PM, "Sergio Rinaudo" wrote:
>
Hi Hector,
it perfectly worked!
Do you think is a good idea minify the html response in this way to increase
performances?
Thank you very much for your help
Sergio
Date: Wed, 22 Dec 2010 19:35:23 -0800
Subject: Re: [fw-general] Get full html response in a plugin
From: djvir...@gmail.com
T
You'll need to register your plugin after the layout plugin, which I believe
is registered in position 100. Try this:
$front->registerPlugin($myplugin, 150);
Also don't forget to return early in your post-dispatch hook if the request
is not marked as dispatched (meaning a forward was detected):
I have a unit test like
class Application_Controller_Plugin_AclTest extends
Zend_Test_PHPUnit_ControllerTestCase {
public function setUp() {
$this->getFrontController()->setDefaultModule('default');
}
public function testAccessToUnauthorizedPageRedirectsToLogin() {
$this->di
Hi all,
how to get and set the full html response in a plugin?
I'm trying to minify the html response but apparently I cannot get and set the
the full html response using response object's
getBody/setBody methods.
I am currently working inside the postDispatch hook in my test plugin.
Thanks
-- Konr Ness wrote
(on Tuesday, 21 December 2010, 11:33 PM -0600):
> Another thing Zend_Json does that json_encode() does not is supporting
> iterable objects. I use this frequently for JSON encoding objects that do
> not have public properties.
>
> p.s. I think that Zend_Json should actually che
> If you pass your user (instanceof Acl_Role_Interface) and project
(instanceof Acl_Resource_Interface) to the ACL, you're able to check the
project's owner
Yes I am trying to implement that, but it seems counter intuitive
Yes, I can pass any instanceof Zend_Acl_Resource_Interface to
Zend_Acl_As
> just deny it.
But I want to allow if the user is the owner of the project to add lists to
the project. I think I can't use just
$acl->allow($user, 'lists', 'add')
as I must check if the user is a collaborator of the project. eg.
/lists/add?projId=1
only users who are owner of proj
On Wednesday 22 Dec 2010 12:11:08 Sergio Rinaudo wrote:
> Hi,
>
> you don't need assertion to check if a role has certain permission to a
> resource,
>
> just deny it.
>
> The official documentation explains the use of ACL pretty well with
> examples
>
>
> http://framework.zend.com/manual/en/z
Hi,
you don't need assertion to check if a role has certain permission to a
resource,
just deny it.
The official documentation explains the use of ACL pretty well with examples
http://framework.zend.com/manual/en/zend.acl.refining.html
Bye
Sergio
> Date: Wed, 22 Dec 2010 02:5
Suppose I have the following models/resources
- Projects (has many Lists)
- Lists
I want only owners of the project to be able to add lists. How can I
implement that in Zend_Acl? I think Assertion are the the way to go. But how
does
$acl->allow($user, $project, 'add', $assertion); // for a
12 matches
Mail list logo