Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Pages: [1]
Print
Author Topic: [ FIXED ] - Error running demo  (Read 3974 times)
mazeroth
Newbie
*
Posts: 1


View Profile Email
« on: December 03, 2008, 08:11:55 »

Just downloaded PureMVC version 1.0.1 and was trying the Zen Garden demo on my local machine running PHP 5.2.6 and I was getting the following notices:

Notice: Undefined index: startApplication in C:\Documents and Settings\jorivera\My Documents\htdocs\puremvc\org\puremvc\php\core\View.php on line 103

Notice: Undefined index: viewDataReady in C:\Documents and Settings\jorivera\My Documents\htdocs\puremvc\org\puremvc\php\core\View.php on line 103


I changed /core/View.php line 103 from:

if ($this->observerMap[ $notificationName ] != null)

To

if (isset($this->observerMap[ $notificationName ]) && $this->observerMap[ $notificationName ] != null)

And it seems to be working correctly now.

Thanks,

Joey
« Last Edit: January 14, 2009, 12:25:38 by puremvc » Logged
puremvc
Global Moderator
Hero Member
*****
Posts: 2871



View Profile WWW Email
« Reply #1 on: December 04, 2008, 12:50:28 »

Thanks for this report and workaround, Joey.

-=Cliff>
Logged
hasan
Moderator
Newbie
*****
Posts: 8



View Profile WWW Email
« Reply #2 on: December 10, 2008, 12:24:31 »

Hi Joey,

Thanks for the spot. We'll add this to the release real soon...

Logged

P E A C E

Hasan
Pages: [1]
Print