dcsimg
www.webdeveloper.com
Results 1 to 7 of 7

Thread: PHP MVC architecture

  1. #1
    Join Date
    Oct 2012
    Posts
    15

    PHP MVC architecture

    Hi,
    I have got a task to work in an existing project which is half done, and i have to do another half, i have got the source code of PHP from existing project which is write in MVC architecture , but i am not familiar at all with MVC architecture , therefore it is difficult for me to make any changes and sometime i even cant recognize which files/how should i change, since it is in MVC architecture therefore the structure of viewing any objects is bit different to me

    do you have any tips for me please ?

  2. #2
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    21,295
    Does it use an existing 3rd-party MVC framework (CodeIgniter, CakePHP, Symfony, etc.) or is it a custom framework?
    "Well done....Consciousness to sarcasm in five seconds!" ~ Terry Pratchett, Night Watch

    How to Ask Questions the Smart Way (not affiliated with this site, but well worth reading)

    My Blog
    cwrBlog: simple, no-database PHP blogging framework

  3. #3
    Join Date
    Oct 2012
    Posts
    15
    yes, i think so, it is done with Phpstorm , but i dont know which tools exactly has been used but before most of the code code there is extension like that : \mvc\ImageHide::$view = ... ;

  4. #4
    Join Date
    Oct 2012
    Posts
    15
    it has been done with phpstorm, and before most of the code there is extension like : \mvc\SecSite::$contents['second'] = "Image";

    for example , normally if i want to add a new name into a form , then i can simple add like Username:<br />
    <input type="text" name="username" value=...

    but in my file i need to do that like : mvc\SecSite::$contents['second'] = "Username ";

    its too difficult for me to go through all the codes and made changes

    have you any suggestion please ?

  5. #5
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    21,295
    It may be time to read up on PHP namespaces.
    "Well done....Consciousness to sarcasm in five seconds!" ~ Terry Pratchett, Night Watch

    How to Ask Questions the Smart Way (not affiliated with this site, but well worth reading)

    My Blog
    cwrBlog: simple, no-database PHP blogging framework

  6. #6
    Join Date
    Oct 2012
    Posts
    15

    PHP MVC architecture

    Hi, how could i learn MVC design pattern in PHP?

  7. #7
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    21,295
    Have you tried Google yet?

    https://www.google.com/search?q=PHP+MVC+design+pattern
    https://www.google.com/search?q=PHP+MVC+tutorial

    APress has a book on PHP/MVC: http://www.apress.com/9781430241645

    And again, if you are using a specific 3rd-party MVC framework, assuming it's one of the several popular ones, there are bound to be books, forums, tutorials, etc. dedicated specifically to that framework.
    "Well done....Consciousness to sarcasm in five seconds!" ~ Terry Pratchett, Night Watch

    How to Ask Questions the Smart Way (not affiliated with this site, but well worth reading)

    My Blog
    cwrBlog: simple, no-database PHP blogging framework

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles