PureMVC Architects Lounge

Announcements and General Discussion => Public Demos, Tools and Applications => Topic started by: danielcsgomes on August 20, 2008, 12:52:22



Title: User Manager Demo (Puremvc + weborb + php + mysql)
Post by: danielcsgomes 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 (http://onedesign.com.pt/puremvc/UserManagerDemo/Main.html).

Hope it helps,

Daniel Gomes


Title: Re: User Manager Demo (Puremvc + weborb + php + mysql)
Post by: danielcsgomes on August 24, 2008, 05:31:30
The full source file can be downloaded here (http://onedesign.com.pt/puremvc/UserManagerDemo.rar).

Daniel Gomes


Title: Re: User Manager Demo (Puremvc + weborb + php + mysql)
Post by: puremvc 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>


Title: Re: User Manager Demo (Puremvc + weborb + php + mysql)
Post by: danielcsgomes 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


Title: Re: User Manager Demo (Puremvc + weborb + php + mysql)
Post by: creynders 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!!


Title: Re: User Manager Demo (Puremvc + weborb + php + mysql)
Post by: danielcsgomes 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


Title: Re: User Manager Demo (Puremvc + weborb + php + mysql)
Post by: kevin 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.



Title: Re: User Manager Demo (Puremvc + weborb + php + mysql)
Post by: danielcsgomes 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