topleft topright
  PureMVC Forums

Welcome, Guest. Please login or register.
September 02, 2010, 07:48:35 AM
Home Help Search Login Register
News: ATTENTION: Spambots must die! Humans must visit http://contact.futurescale.com to request forum access.

Pages: [1]
Print
Author Topic: User Manager Demo (Puremvc + weborb + php + mysql)  (Read 4524 times)
danielcsgomes
Full Member
***
Posts: 47

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

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 Wink

You can see live Demo here.

Hope it helps,

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

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

The full source file can be downloaded here.

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



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

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
« Reply #3 on: August 24, 2008, 03:32:35 PM »

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
« Reply #4 on: August 25, 2008, 01:03:04 AM »

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
« Reply #5 on: August 25, 2008, 01:31:33 AM »

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 Wink

Thanks for your thought Wink

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


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

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
« Reply #7 on: November 23, 2008, 06:02:15 AM »

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
Jump to:  



Login with username, password and session length

Powered by SMF 1.1.11 | SMF © 2006-2007, Simple Machines LLC
Copyright © 2006-2008 Futurescale, Inc.