PHP MVC Framework from scratch | Update#1 | Source code included | Quick programming tutorial

  Рет қаралды 18,027

Quick Programming

Quick Programming

Күн бұрын

Пікірлер: 81
@KumJudeTTem-vo2qt
@KumJudeTTem-vo2qt 2 жыл бұрын
Hey guys let's all click on the ads to promote this channel. I learned a lot from this channel.
@QuickProgramming
@QuickProgramming 2 жыл бұрын
cool, thanks
@emgodas
@emgodas 2 жыл бұрын
literally watching him and coding at the same time, after the video try to write it again by yourself until you learn it all its concepts what each do and her you go you learned and you know how to create a whole mvc framework
@QuickProgramming
@QuickProgramming 2 жыл бұрын
cool :)
@emgodas
@emgodas 2 жыл бұрын
@@QuickProgramming also i here and there go into your website and click at least the same ad about 5 times each 👍 if i could i would donate and join patreon but unfortunately i cant because of age
@QuickProgramming
@QuickProgramming 2 жыл бұрын
@@emgodas thank you. clicking on ads is good enough, thanks for doing that🙂
@basilistigris640
@basilistigris640 Жыл бұрын
thank you Quick Programing for real world php mvc from scratch videos is the best to learn php javascript and all web development code! You are great teacher explaining all thinks and provide the source code of each lesson to help us, have the best luck!
@QuickProgramming
@QuickProgramming Жыл бұрын
You are most welcome! and thanks for the feedback
@abolfazl3273
@abolfazl3273 14 күн бұрын
Perfect Tutorial 🔥 Thanks ❤
@gru8299
@gru8299 Жыл бұрын
Thank you very much!!! There are few people like you! You really help!🤝
@QuickProgramming
@QuickProgramming Жыл бұрын
Thanks for the compliment and you're most welcome😊
@martebest
@martebest Жыл бұрын
Thanks a million for this detailed tutorial. It's really helpful. I have learned few new things about PHP.
@QuickProgramming
@QuickProgramming Жыл бұрын
Am glad to hear it, you're most welcome
@primepryme
@primepryme Жыл бұрын
first, i just want to thank you for your classes are easy to follow and has really improved my skills on mvc. when i first saw this update, i thought you will handle the part where the query involves joining tables in the database
@QuickProgramming
@QuickProgramming Жыл бұрын
watch this for joining tables in a query kzbin.info/www/bejne/bWq0p5Slq72ee8k
@primepryme
@primepryme Жыл бұрын
@@QuickProgramming thanks for the link, i have learnt a lot from the query class, i was asking about relational querys using the mvc you created
@JACKoPL
@JACKoPL 3 ай бұрын
I was hoping that the update would add composer and routing. Maybe in the next mvc updates (2-4). Or other projects... At least there were namespaces. However, some strange workarounds. A template system would also be useful. Like in clone udemy, which contained a lot of redundant code. Although I would prefer blade components :D In this project (2 years after the premiere) I had a problem with $_GET['url'] from the beginning. I was not alone, using php serving. And you had to use $_SERVER['REQUEST_URI'] and splitURL had to be modified a bit.
@DR9Freelancer
@DR9Freelancer 8 ай бұрын
Thank you so much for sharing your knowledge and source code with us! Another great tutorial!!! Will sure help you with the clicks!!!
@QuickProgramming
@QuickProgramming 8 ай бұрын
That will be much appreciated
@Stephen0852
@Stephen0852 Жыл бұрын
First of all, thank you so much for your tutorials - they are hugely important to me and many, many others learning new programming skills. I particularly appreciate the candour with which they are presented. With respect to 'Namespaces', I can only see their need if one is importing an external module or package that may employ class names that conflict with the ones used in your application. In which case could you not simply create a namespace 'My_Namespace' and put everything you create into that and simply 'use' the namespace of the vendor of the package as and when necessary? Even you found namespaces confusing so goodness knows how difficult it is to grasp for ordinary mortals. Thanks again for your tutorials, they are very helpful.
@QuickProgramming
@QuickProgramming Жыл бұрын
You're most welcome. Namespaces are also important even when you're not importing packages because you can have repeating classes in your own application. take for example you have a 'videos' table. this will need a videos class. but then if you have a page named videos to display the same videos, you'll run into a problem because you now need a controller named videos too. a controller and model are both classes and so both cant exist at once. in this case you can use a Controllers namespace for controller and then a Models namespace for models. This is exactly what we do in the projects where i used this same framework
@QuickProgramming
@QuickProgramming Жыл бұрын
But if you dont want to use namespaces, the alternative is to have longer names for your classes. e.g if you have a controller named videos and also a model named videos, you can name them like this: class Videos_controller{ } and class Videos_model{ } this way you dont need namepsaces. but naming classes like this doesnt look very neat or organised, and also if you project is very large, the names can get ridiculously long. thats why we use namespaces instead
@Stephen0852
@Stephen0852 Жыл бұрын
@@QuickProgramming Thanks for your response - I do tend to use longer names for classes since it is relatively easy to do and helps me avoid confusion. I am trying to develop a consistent and simple strategy for naming and organising the folder hierarchy of an app. The MVC pattern seems to be the easiest so far.👍
@etech.innovations
@etech.innovations Жыл бұрын
Thanks for your work. Very educative.
@QuickProgramming
@QuickProgramming Жыл бұрын
You're most welcome and thanks for leaving some feedback
@etech.innovations
@etech.innovations Жыл бұрын
@@QuickProgramming pls I'd love to ask for some personal guidance. I'd be glad if I get ur whatsapp contact
@QuickProgramming
@QuickProgramming Жыл бұрын
@@etech.innovations you can contact me on facebook.com/quickcode
@rpbale
@rpbale Жыл бұрын
At 1:21:08 you’re fixing the issue of the namespace being included in the path. Once removed, it’s calling Controller.php in the models folder. But that file is in the core folder. How do you fix that? The auto loader is defaulting to everything being in the models folder and that’s not the case.
6 ай бұрын
I should have found this channel sooner!
@mawudzrohounnake6422
@mawudzrohounnake6422 Жыл бұрын
Hello our Teacher We have a very beautifull and organized basic framework Please Can you use it to create a complete CMS with advanced features ? We will learn a lot from that Thank you a lot for your humanity Let all your projects be successful 👌🙏
@gilliantv9917
@gilliantv9917 2 жыл бұрын
Thank you sir 💥
@QuickProgramming
@QuickProgramming 2 жыл бұрын
You're most welcome 👍
@abdulazizbah1418
@abdulazizbah1418 2 жыл бұрын
Thank you very much
@QuickProgramming
@QuickProgramming 2 жыл бұрын
You are welcome
@davebudah
@davebudah 2 жыл бұрын
So I use PHPStorm for my PHP development and at 20:21 I'm getting this error hint from my IDE "Scalar type hints are only allowed since PHP 7.0". I'm yet to check for possible solutions, but whats your take on that.
@QuickProgramming
@QuickProgramming 2 жыл бұрын
it doesnt matter because that warning is for php 7. the framework only works with php 8 and above so just ignore the warning
@davebudah
@davebudah 2 жыл бұрын
@@QuickProgramming Ok bro, thank you
@davebudah
@davebudah 2 жыл бұрын
@@QuickProgramming I later realized my PHP interpreter had reverted to default settings, that's why I was getting the error hint. Thanks man.
@CryptoManiaLtd
@CryptoManiaLtd Жыл бұрын
Hello dave, i have a slight challenge uploading this framework online. can u just assist me. this is my first project with a framework.. i usually dnt used frame work.
@davebudah
@davebudah Жыл бұрын
@@CryptoManiaLtd how can we link up so i can help you.
@regiecajes3163
@regiecajes3163 Жыл бұрын
Hey Im watching your old videos the learning management system i have a request can you add the books like for uploading a files
@Psyzenn
@Psyzenn Жыл бұрын
I would like if you would insert in your videos for what purpose. You tell why and how it works. But for example what is the purpose of converting image ? Can't you just ROOT . /assets/images/$filename.$extension or something like that ?
@QuickProgramming
@QuickProgramming Жыл бұрын
have you watched part 1 of this video?
@Psyzenn
@Psyzenn Жыл бұрын
@@QuickProgramming I did sir. I assume there is something I missed there. I will watch it again. Thank you for reply and teaching us.
@rickywisnadri3318
@rickywisnadri3318 5 ай бұрын
do you use this framework on your production sir ? and may I know what version of php do you use? sorry for my bad english.
@QuickProgramming
@QuickProgramming 5 ай бұрын
yes i do. i use version 8.0
@aliroman680
@aliroman680 Жыл бұрын
This is amazing, but it should have been compatible with older versions of PHP
@ngma2905
@ngma2905 2 жыл бұрын
Hey it helped a lot, How can we load abstract class with spl_autoload?
@QuickProgramming
@QuickProgramming 2 жыл бұрын
you're most welcome. to autoload abstract classes, simply put them in the same folder as the classes that inherit from them and make sure the class name and file name for abstract classes also are the same. php will try to look for any classes required in the same folder you specify in the spl_autoload function
@rishabhkundravlog3101
@rishabhkundravlog3101 2 жыл бұрын
Where do we put PHP mailer folder ? Assets or?
@QuickProgramming
@QuickProgramming 2 жыл бұрын
in the models folder. all imported code/classes from other coders should go there
@rishabhkundravlog3101
@rishabhkundravlog3101 2 жыл бұрын
Hi The way you taught to build ecommerce, please also make tutorial on Amazon seller central clone as amzon is multi vendor. Will you? 😅
@lloydnorbal3393
@lloydnorbal3393 Жыл бұрын
i am getting Undefined type 'Model\PDO' everywhere i use PDO() in my database.php file need some help
@QuickProgramming
@QuickProgramming Жыл бұрын
make sure you add a slash everywhere you use PDO. e.g $pdo = new \PDO(). this will tell php that PDO is not inside any namespace
@anzarcademy
@anzarcademy Жыл бұрын
I am having issue here; $this->db_handler = new PDO(DBDRIVER.":host=".DBHOST.";dbname=".DBNAME, DBUSER, DBPASS); the Database trait is in the Model namespace and somehow the init is trying to load PDO from the Model namesapce?. Kindly help me.
@robertjota
@robertjota Жыл бұрын
use PDO; this works for me
@Examji
@Examji 2 жыл бұрын
You mean this is your own php framework, that you will you from now as a starter code for every web app, alternative to laravel or codeignitor, right ????
@QuickProgramming
@QuickProgramming 2 жыл бұрын
yes exactly
@Examji
@Examji 2 жыл бұрын
@@QuickProgramming r u going to release it officially like laravel
@MinhazTaher
@MinhazTaher 2 жыл бұрын
Dear all viewers, we must view and click his Advertise. just imagine what if we need to buy all these videos as a premium course
@QuickProgramming
@QuickProgramming 2 жыл бұрын
awesome, thanks
@patricoliveira6444
@patricoliveira6444 2 жыл бұрын
👏🏻👏🏻👏🏻
@Southernview3k
@Southernview3k 2 жыл бұрын
Thanks tutor
@QuickProgramming
@QuickProgramming 2 жыл бұрын
You are most welcome
@aravind_gowda
@aravind_gowda 2 жыл бұрын
Please make a tutorial on php gd library
@abdulazizbah1418
@abdulazizbah1418 2 жыл бұрын
I want you to to help me with the school project. It has problem updating profile picture
@sultanaditia3985
@sultanaditia3985 2 жыл бұрын
Why you not use composer?
@QuickProgramming
@QuickProgramming 2 жыл бұрын
composer adds complexity to a project that is unnecessary. its useful sometimes but i never use it in real life projects
@NewsThatsUsed
@NewsThatsUsed 2 жыл бұрын
I don't understand, does my server need php8 to run this?
@davebudah
@davebudah Жыл бұрын
To be safe the answer is YES. Just set your default PHP Version to 8.
@samuelonowuko110
@samuelonowuko110 2 жыл бұрын
Which country are you now?
@SultanovAsrorbek
@SultanovAsrorbek 2 жыл бұрын
Where are you from?
@QuickProgramming
@QuickProgramming 2 жыл бұрын
am from Zambia
@davebudah
@davebudah 2 жыл бұрын
@@QuickProgramming oh you from Zambia, hie neighbor, Im from Zimbabwe.
@Saboor-Hamedi
@Saboor-Hamedi Жыл бұрын
You just need to remove namespace controller from Controller class
@aravind_gowda
@aravind_gowda 2 жыл бұрын
Let's build news website
@serversus17
@serversus17 Жыл бұрын
If you watch his videos, I promise you won’t need him to do a tutorial for a website you want, you will be able to build it on your own.
@markrussell4682
@markrussell4682 Жыл бұрын
Your download page is a complete shitshow. First, the link does NOT lead to your download page. It leads to an ad. On your download page, there is no way to tell which link is for this video. There is no link for "PHP MVC FRAMEWORK UPDATE 1". Not a good look.
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН
Create a Custom PHP MVC Framework in Just 1 Hour | Intermediate
45:55
Coding with Pixel Fix
Рет қаралды 2,2 М.
PHP 8 3 Released
11:03
ThePrimeTime
Рет қаралды 111 М.
Routing, Controllers, Views - Part 1 | PHP MVC Framework from Scratch
1:23:21
PHP Framework Pro (Create a PHP framework step by step)
1:12:14
Gary Clarke
Рет қаралды 30 М.
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН