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: User Manager Demo (Puremvc + weborb + php + mysql)  (Read 13458 times)
danielcsgomes
Full Member
***
Posts: 47

 - daniel@onedesign.com.pt
View Profile Email
« on: August 20, 2008, 12:52:22 »

Hi guys,

Today i finished my first Demo App with Puremvc, it's based on "Login Demo" created by Jens Krause and on "Employee Admin" created by Cliff Hall.

Why i did it?

I'm a new to PureMVC, just started with it 5 days ago. I have a small knowledge about OOP and Design Patterns and i tried make a simple App to understand all this concepts with PureMVC using Remote Services (server-side) and CRUD Operations.

What did i do?

I joined this two applications into a single one, with this features:

    * Login/Logout
    * List, add, update and delete users (except the admin user)
    * Refresh users list button
    * Main.mxml with Deferred instantiation
    * All data comes from database using remote services (weborb|php)
    * Server-Side CRUD operations
    * Tried to make code reuse to my next step is turn this Demo into an Pipe Multicore Demo with modules in a Flex Library Project


Technologies used:

    * Flex 3
    * Puremvc Standart 2.0.4
    * Weborb (php) 3
    * PHP
    * MySQL

Feel free to comment or suggest anything on this Demo ;)

You can see live Demo here.

Hope it helps,

Daniel Gomes
« Last Edit: August 24, 2008, 05:30:48 by danielcsgomes » Logged
danielcsgomes
Full Member
***
Posts: 47

 - daniel@onedesign.com.pt
View Profile Email
« Reply #1 on: August 24, 2008, 05:31:30 »

The full source file can be downloaded here.

Daniel Gomes
Logged
puremvc
Global Moderator
Hero Member
*****
Posts: 2871



View Profile WWW Email
« Reply #2 on: August 24, 2008, 02:39:58 »

Hi Daniel,

Great job on this!

I just wanted to mention for those who don't have support for a .RAR file, the .ZIP of this demo is here:
http://onedesign.com.pt/puremvc/UserManagerDemo/srcview/UserManager.zip

-=Cliff>
Logged
danielcsgomes
Full Member
***
Posts: 47

 - daniel@onedesign.com.pt
View Profile Email
« Reply #3 on: August 24, 2008, 03:32:35 »

Thanks Cliff, i have uploaded all sources in .zip too, can be downloaded from here:
http://onedesign.com.pt/puremvc/UserManagerDemo.zip

Daniel Gomes
Logged
creynders
Jr. Member
**
Posts: 18


View Profile Email
« Reply #4 on: August 25, 2008, 01:03:04 »

Thanks for the excellent demo. There's just one thing though, I think it would be better to handle the loginpanel through a separate mediator instead of the ApplicationMediator...

Great job!!
Logged
danielcsgomes
Full Member
***
Posts: 47

 - daniel@onedesign.com.pt
View Profile Email
« Reply #5 on: August 25, 2008, 01:31:33 »

Thanks creynders.

Thanks for the excellent demo. There's just one thing though, I think it would be better to handle the loginpanel through a separate mediator instead of the ApplicationMediator...

Great job!!

Well you are right, the LoginPanelMediator should handle the LoginPanel and LoginProxy notifications,  but how the LoginPanelMediator will change the View to UserManagerPanel?
That was the reason i prefered handle all View Changes in ApplicationMediator, but you are absoluty right on this thought because the LOGIN_FAILED should be handled in LoginPanelMediator because it's part of LoginPanel and it won't change the Main App view.
But the LOGIN_SUCCESS shouldn't be handled in LoginPanelMediator, because if i handle it on LoginPanelMediator the unique thing i will do is send another notification to the ApplicationMediator hear and change view and i think it's not a good practice because you are duplicating code.

When i have a little more time i will make this changes to the Demo ;)

Thanks for your thought ;)

Daniel Gomes
« Last Edit: August 25, 2008, 01:38:23 by danielcsgomes » Logged
kevin
Newbie
*
Posts: 1


View Profile Email
« Reply #6 on: November 23, 2008, 03:00:45 »

Thanks Cliff, i have uploaded all sources in .zip too, can be downloaded from here:
http://onedesign.com.pt/puremvc/UserManagerDemo.zip

Daniel Gomes

Download failure.

Logged
danielcsgomes
Full Member
***
Posts: 47

 - daniel@onedesign.com.pt
View Profile Email
« Reply #7 on: November 23, 2008, 06:02:15 »

Thanks Cliff, i have uploaded all sources in .zip too, can be downloaded from here:
http://onedesign.com.pt/puremvc/UserManagerDemo.zip

Daniel Gomes

Download failure.



Hi Kevin,

I tried now, and i download it successful.

Daniel Gomes
Logged
Pages: [1]
Print