Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Welcome, Guest. Please login or register.
November 23, 2017, 01:38:24 PM
Home Help Search Login Register
News: Please DM @puremvc on Twitter to gain forum access. Spambots are why we can't have nice things.
  Show Posts
Pages: [1]
1  PureMVC Manifold / Standard Version / Problem with pmvc php port on: April 29, 2009, 06:51:04 AM
Hey people!

I've been using puremvc for several AS3 projects and now I decided to use it for PHP as well.
I've developed application on local machine and it works nice.
Though as I moved it to production server it just doesn't work. Sometimes output is shown but in most of the cases I get just a blank screen and no error messages in logs.
Do anyone have some ideas on what could cause this?
Maybe there's some issues with PHP versions? Local machine has 5.2.5 while production server is 5.2.9, could it be the reason?
I'm totally lost, and I have no bloody idea whats the reason for this.
Any ideas are welcomed!
2  Announcements and General Discussion / General Discussion / Re: Some novice questions on: September 10, 2007, 12:13:31 AM
Hello!

Thanks for reply!

I just figured that first issue wasn't really happening, my own mistake. So it's perfectly alright with notifying.

About third issue - the layout I've tried was like this:
1. LoginFormMediator receives user interaction and passes notification LOGIN_DATA_READY to everyone else.
2. UserLoginCommand is attached to that notification and fires sessionProxy.login with proper arguments.
3. When sessionProxy receives callback from server side it broadcast notification USER_LOGIN_SUCESSFULL
4.1 LoginFormMediator is subscribed to USER_LOGIN_SUCESSFULL
which commands it to remove visual component
4.2 StartApplicationCommand is also attached to that notification and tries to remove LoginFormMediator from mediator list

Hence, as I've noticed StartApplicationCommand is executed earlier than LoginFormMediator notification so  LoginFormMediator visual comoponent stays on stage.

I have a suspicion that it is normal behavior and what I did it the right thing.
I've changed event chain so StartApplicationCommand isn't attached to USER_LOGIN_SUCESSFULL and when LoginFormMediator  receives USER_LOGIN_SUCESSFULL after it's done removing of visual component it notifies others of START_APPLICATION notification.

Hope this time i'm more clear Smiley
3  Announcements and General Discussion / General Discussion / Some novice questions on: September 09, 2007, 02:29:14 PM
Hey ppl!

I just started to use pureMVC just few days ago so I'm pretty new to it hence i might be missing some basic things.
Anyhow, everything is great, everything is working except that I ran into some  issues I don't really understand.
First of all I noticed that if I do like this:
Code:
override public function handleNotification(notification:INotification):void {
trace("getName "+notification.getName())
}
I get traces from notifications current mediator isn't subscribed to.
Is that normal behavior or a bug? If thats normal behavior listNotificationInterests implementation lose any sense.
I would be grateful if anyone could explain me this issue.

Other thing give a lot more head ache.
I have a mediator which is needed only while user haven't logged on - LoginForm. I assumed that it would be only logical if i remove that mediator after user has logged on so I made class StartApplicationCommand which does
Code:
facade.removeMediator(LoginFormMediator.NAME);
but this gives me error message
Code:
Error #1009: Cannot access a property or method of a null object reference.
What is it all about?

Third issue is that before making separate START_APPLICATION notifier I wanted to use USER_LOGIN_SUCESSFULL which should inform  LoginForm that it's job is done and then invoke StartApplicationCommand, but as I noticed StartApplicationCommand.execute is fired before this message gets to LoginForm hence it didn't  knew when to remove it's visual component.
Is there any best practices on this issue or I should just use two notifiers and thats a normal way?
Btw, when i had implemented this layout i didn't get any error from removeMediator call.
That seems inconsistent to me.

Anyhow, can some explain to me what is it all about?
Btw I like pureMVC a lot it really make my life developing RIA's a lot more easy.
Pages: [1]