#1
  1. A Change of Season
    Devshed Frequenter (2500 - 2999 posts)

    Join Date
    Mar 2004
    Location
    Next Door
    Posts
    2,653
    Rep Power
    171

    Isit a better idea to keep "update photo" section seperate from "update details"?


    Hi;

    How is the best way to manage "member's profile" with photos?

    I personally think that it is a better idea to keep "manage photos" seperate from "edit profile" section.

    Code management gets easier and controllers get easier to manage.

    While from coding point of view it is a better, clients keep asking me to have them on the same page.

    Whats the right thing to do:

    1 - Convince clients to have seperate pages?
    2 - Find a way to manage code. If so please guide.
    3 - Whats the right approach anyways?

    Jesus loves you
  2. #2
  3. --
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Jul 2012
    Posts
    3,957
    Rep Power
    1046
    What does the GUI have to do with code management? Just because all the functionalities are on one page of the GUI doesn't mean you have to put all the underlying code into one script. There are things like functions and objects which were invented for this very purpose: to keep the logic outside of the main script.

    Of course the controller needs to provide the accessor methods for the photo stuff. But those methods have to do nothing but proxy the request to some external object or function.



    Originally Posted by English Breakfast Tea
    Jesus loves you
    Satan rules.

    Comments on this post

    • paulh1983 disagrees : with the satan comment!!! :(
    The 6 worst sins of security ē How to (properly) access a MySQL database with PHP

    Why canít I use certain words like "drop" as part of my Security Question answers?
    There are certain words used by hackers to try to gain access to systems and manipulate data; therefore, the following words are restricted: "select," "delete," "update," "insert," "drop" and "null".

IMN logo majestic logo threadwatch logo seochat tools logo