Philip Iezzi wrote:
Notice: Indirect modification of overloaded property Zend_Session::$default has
no effect in FlashMessage.php on line 42
line 42 (in add()):
self::$_session->{$namespace}[] = $message;
It didn't work with Matthew's hack either...
http://weierophinney.net/matthew/archives/131-Overloading-arrays-in-PHP-5.2.0.html
I did fix and tested and commented..
http://svn.ralphschindler.com/repo/ZendFramework/library/FlashMessage.php
please let me konw what you think. This is a standalone version of
FlashMessaging.. Ideally, there are aspects of this that should be
dispatched from other areas, specifically Zend_Controller_Action, and
from Zend_View_Helper..
But I will address that within the next 2 days as I propose
Zend_Controller_Action_Helper. Having a component like that would allow
for an easier and more seemless integration of FlashMessageing and other
such related composite components.
Also, I am pretty sure this shoudl work even in PHP 5.2.0* even due to
its brokenness.
Cheers, and let me know what you think!
-ralph