Is Heredoc in MVC a good way to begin my foray into separating layers? I read one place it could be use and another that heredoc had more problems than it solved.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No. HEREDOC is completely unrelated to MVC. HEREDOC is just one way to delimit strings. It’s the same as asking whether Single or Double quotes are good way to separate layers.
MVC’s idea is to split the user interface into three separate roles. I have answered this a few minutes before in your other MVC question, so I just link you to it. There is also a number of good other questions on SO about MVC. Just use the Search function.