I'd like to pick up this topic again.
Even though I didn't really understand the PHP problem that still persists in
PHP 5.2.1(*), I found my own workaround.
(*) Notice: Indirect modification of overloaded property
Zend_Session_Namespace::$default has no effect in Ralph_FlashMessage.php on
line
Right, the Zend_Session API has changed very significantly yesterday,
and we are in the stages of finializing the would be ZF 1.0 Zend_Session
api. I will update FlashMessage to work with whats currently in svn,
but do know that it could change only slightly more since we are in the
finializin
http://svn.ralphschindler.com/repo/ZendFramework/library/
It currently uses Zend_Session, also implementing countable, iteratable
interface. I use it to add messages in my controllers, and also to
retrieve messages in my view scripts.
FlashMessage::add($message);
if (FlashMessage::hasMessag
Matthew Weier O'Phinney wrote:
I encountered this issue with Zend_View, and fixed it for the latest
release.
The only solution that works with <= 5.2.0 is to use public properties:
public function __set($key, $value)
{
if ('_' != substr($key, 0, 1)) {
$this->$key =
-- Ralph Schindler <[EMAIL PROTECTED]> wrote
(on Thursday, 01 February 2007, 09:49 AM -0600):
> Ok, its still the same 5.2.0 problem, I'll get with gavin and see what
> solutions he has found to this bug in PHP.
I encountered this issue with Zend_View, and fixed it for the latest
release.
The on
Ok, its still the same 5.2.0 problem, I'll get with gavin and see what
solutions he has found to this bug in PHP.
Essentially, the guys as php decided to start returning things by value
instead of references (from what I understand), which means
Class::__set($n,$v); calls when called from some
Thanks Ralph
It won't work yet on PHP 5.2.0 yet.
On a Windows box I'm getting the following notice:
Notice: Indirect modification of overloaded property Zend_Session::$default has
no effect in FlashMessage.php on line 87
On a Unix box I'm not getting any notice at all, hasMessages() returns tru
Good catch, I Commited in haste it seems when I was commenting and
cleaning up, its updated now, and works, ive tested ;)
Thanks,
Ralph
Nico Edtinger wrote:
[31.01.2007 21:08] Ralph Schindler wrote:
Cheers, and let me know what you think!
There's a bug:
// ...
protected static functi
[31.01.2007 21:08] Ralph Schindler wrote:
Cheers, and let me know what you think!
There's a bug:
// ...
protected static function start()
{
if ($namespace == "") {
throw new Exception(__CLASS__ . ": namespace cannot be
null.");
}
// ...
$namespace is not
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/
-- Ralph Schindler <[EMAIL PROTECTED]> wrote
(on Monday, 29 January 2007, 05:16 PM -0600):
> 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::$_
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/
> 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-Overloa
Hi Ralph
Thanks for your nice solution.
I didn't get it running though. Could you please fix the following in
http://svn.ralphschindler.com/repo/ZendFramework/library/FlashMessage.php:
protected static function start()
{
if (Zend_Session_Core::) // <-- ???
if (
On 28/01/07, Ralf Eggert <[EMAIL PROTECTED]> wrote:
I am not quite sure if I fully understand the ROR Flash stuff, but I
guess this feature is already implemented.
in RoR, I use flash to save message for next action whether using
redirect or forward
so flash is saved to session, until it ask
I have touched on this in the past.. I think the only reason I have not
put together a component proposal is that it requires finalization of a
few things..
This component, when done right, would be a helper to
Zend_Controller_Action and a helper of Zend_View (>_Helper) and would
consume Zend
On 28/01/2007, at 9:26 PM, Ralf Eggert wrote:
[snip]
Hope this helps and if someone thinks I forgot anything please add
your
comments...
The only other comment that I'd make is it appears that the flash
stuff does a bit of Session magic - essentially it's storing a
message in a sessio
Hi Simeon,
I am not quite sure if I fully understand the ROR Flash stuff, but I
guess this feature is already implemented.
Within your action controller you can set any parameter in the request
object by using these two variants:
$this->_setParam('notice', 'Successfully created');
$this->g
Hi everyone
I looked the components/proposals into the library and incubator and I
didn't found something like Flash in ROR:
http://www.rubyonrails.org/api/classes/ActionController/Flash.html
Maybe will be useful to have this one in ZF ? What do you think ?
Greetings,
s.g.
-
19 matches
Mail list logo