Wu, who suddenly understood the MVC model

Source: Internet
Author: User
Tags php website zend framework
Wu, it seems that he suddenly understood the MVC model! This post was last edited by default7 from 2012-12-2916: 52: 11 and has always been a mysterious thing for MVC. I was asked MVC for an interview when I graduated. I don't understand it at all. Then I also read CakePHP and ThinkPHP. the more I saw it, the more I realized it. it seems that I suddenly understood the MVC model!
At last, this post was edited by default7 at 16:52:11 on. it has always been a mysterious thing for MVC. I was asked MVC for an interview when I graduated. I don't understand it at all. Then I read CakePHP and ThinkPHP. the more I see it, the more I don't understand it. the more I see it, the more I feel confused ...... I thought that I would not be able to work on PHP without MVC, and I was getting more and more discouraged. I almost gave up PHP ...... Later, I lost these and ignored them.

Later, I wrote code and made my own programs, but I didn't use cakephp or thinkphp. it actually started from school. After graduation, I also insisted. Today, I suddenly got a website platform (in fact, it is a CMS) developed by myself N years ago (when I graduated). There are many types of website content: Software soft, image pics, news, blog website.
Then we can see the folder structure:
Get. php
Then each access is like this:

Reference
(Access the news list)
Front-end website/get. php? Db = news & mod = list & page = $ page,
Handler/source/list_news.php
Template address/template/default/list_news.htm

(Visit the News Details page)
Front-end website/get. php? Db = news & mod = detail & id = $ id
Handler/source/detail_news.php
Template address/template/default/detail_news.htm

(Access software list)
Front-end website/get. php? Db = news & mod = list & page = $ page (actually C)
Handler/source/list_soft.php (this is M)
Template address/template/default/list_soft.htm (this is V)




Previous posts:
Reference
Non-technical questions: I 'd like to know how many people do not like to use those frameworks.
Http://bbs.csdn.net/topics/320206261 (published at 23:33:49)


I have never understood what MVC is. come in with a friend who understands MVC in the JAVA section !!
Http://bbs.csdn.net/topics/350216811 (published on 22:01:11)


I am tired of arguing with others about MVC in PHP.
Http://bbs.csdn.net/topics/350216861 (published on 22:38:53)


Read PHP5 using Zend Framework & Smarty to build a true MVC application model 
Http://bbs.csdn.net/topics/350139910 (published on 15:00:35)





I think that my first job to interview PHP was rejected, and my memory was too deep. (in the month of graduation, I went to the interview with information and took a three-hour bus, when I ran from Wuchang to Hankou, I heard that the programmers in the interview could not even jump to PHP. I thought I could definitely interview, but the result was the opposite. I was rejected. I had no package for 800 a month. I had to rest for one day in a week and be on standby at any time. The trial period was less than 800, and I had to turn to work for three months ....... The reason for rejection is that you are not familiar with mvc.) Then I saw that their company's business was to build a forum and many PHP programmers.

I asked, isn't there discuz? The result made the boss unhappy. He said that discuz (discuz 7.xalready exists at the time) does not comply with MVC at all, but does not comply with standard MVC. Therefore, their company wants to create a discuz by itself ...... Half a year later, I went to search for their company, and the results couldn't even go to the official website. The domain names were sold .....

I'm a little touched, but after so many years, I still reject using cakephp and thinkphp! Why? With these, Why don't I use discuz or dedecms directly? There are all the background, member systems, and data operations in it! Why do we need to follow the rules of cakephp and thinkphp.The feeling of MVC was cakephp and thinkphp. without cakephp and thinkphp, they would not be php. to write PHP website things, you must use cakephp or thinkphp (almost obsessive-compulsive disorder )......

It's not easy to get PHP along the way ~ ~

















Cakephp mvc php interview emotion?
------ Solution --------------------
Stained sofa...
Thinkphp is good.
I want to learn thinkphp and come to my group for 7948162


------ Solution --------------------

------ Solution --------------------
It has been deprecated by CMS secondary development ~~
------ Solution --------------------
Well, I'm more interested in that company. if DZ is 7, I should share the world with PHPwind (local area network), then with such a big ideal, it's not surprising that cheap developers are invited.
Maybe it's not their main product line, maybe it's an item of interest...
Those things in those years...
------ Solution --------------------
What is MVC? What is MVC?
MVC is nothing more than an abstract product of every application. Or MVC is the sublimation from Practice to Theory.
Any program for "person" is consciously or unconsciously used. later, it is called the MVC design pattern.


------ Solution --------------------

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.