5. PHP MVC View & scope | Build a CMS using OOP PHP tutorial MVC [2020]

preview_player
Показать описание
PHP MVC View portion is responsible for presentational functionality. We make one simple view/template engine and we organize our html. We also talk a bit on the scope of variables.

This is the fifth lesson in full php mvc tutorial/course for beginners who are familiar with php basics and are starting with oop concepts.
You can learn Object Oriented Programming principles by coding along on this project, as we build one Content Management System using modern OOP patterns.

Interested in learning real-life PHP design patterns?

Join our Facebook group to follow the news and join discussion
or discord group if that is more your thing

Need a hosting platform for your projects and portfolio? I've been using Bluehost for over fifteen years for my personal and professional projects, and never had an issue or reason to use something else.

➤ LINKS

DISCLAIMER: Some of the links might be affiliated, which means that if you click on one of the product links, I’ll receive a commission. This helps support the channel and allows me to continue to make videos like this. I will never support or push a product I don't believe in. Thank you for the support!

Рекомендации по теме
Комментарии
Автор

Thank you so much for this series, I am searching it for long time. Please continue this series...!!

praveen_kk
Автор

Great Video, I learned a lot. Please keep up the excellent work, the world needs more jokes from you.

thevipinchand
Автор

Thank you for your videos. They are very helpful and I am learning so much. Im still completely lost when it comes to programming but still moving forward.

obsidian
Автор

I greatly appreciate your teaching, so clear and very informative.

liubovguzii
Автор

great work ! easy to understand... appreciated .. thanks for the wonderful course.

lakshmanank
Автор

you are so professional I understand and follow you step by step .. Thank you so much and we need more and more .. just note you little fast in writing code if you can just slow down little bit ... again thank you so much

ahmedzeidan
Автор

Another great video, I will be up to date in about 3 a 4 days and then I will start making the homework you are giving at episode 9. Keep up the good work!

kevinvandelft
Автор

I was searching for that. Thank you so much for these amazing tutorials. Keep up the good work!

eliobteich
Автор

Great video, it really helps me to improve my code standard .kindly continue this series

codeonline
Автор

You teach so well, I don't know what to do but subscribe to your channel to support you

nga
Автор

This is very helpful. I have one suggestion, though: please explain why you used ?? operator for setting session variable. Specifically what does $_session['some_variabe'] ?? 0==1 mean? Other than that, it's perfect. If you are looking suggestion for videos, I think it would be very help if you do another project using oop and mvc so that beginner can get more practice.

raku
Автор

Awesome lesson! Question, is there any cons in using a .php file instead of .html to put the html content? When it is .html the code editor doesn't recognizes the php to help with auto complete and so on.

Автор

Another super useful video, thank you! My question over scope is always 'why' you use each?; for me, private makes sense and to a degree protected does, but i dont know why all methods and properties aren't just available to all children anyway? Whats the usefulness in keeping some private only to a single class?

Also finally, I dont really get 'public'? Why would you want to access a property from a class, but not use it in an object? (i understand that right you can call Class->property any time if its a public property without instantiating the class?)

Thanks!

SwitchedOn
Автор

hello, I think it would be better if we created the renderView function as static

emredikmen
Автор

Hello, I'm enjoying this series so far and I'm learning a lot. I didn't know you can write PHP code in a .html file. I tried searching on google and some people say you need to configure your server correctly in order to write PHP in a .html file. But you say as long as you are including the html file within a PHP file you should be fine. Do you know where I can read more about this?

aaronfischer
Автор

View part of the MVC pattern is responsible for presenting the data, formatting it on the way and showing it to app clients

ApplicableProgramming
visit shbcf.ru