CodeIgniter 4 and PHP MVC basics: controllers, views and layouts

  Рет қаралды 41,153

Dave Hollingworth

Dave Hollingworth

Күн бұрын

Пікірлер: 71
@chevalier5691
@chevalier5691 3 жыл бұрын
Thanks a ton! Been looking for a non-tutorial style Codeigniter course cos I wanna focus solely on architectural knowledge, found the perfect video.
@ThirdBird295
@ThirdBird295 25 күн бұрын
Thank you,... This just cleared a lot off Fog 🔥
@ollikkikk3741
@ollikkikk3741 2 жыл бұрын
Searched high and low... came across this Hollingsworth guy again. And again he save me from pulling my hair out. Excellent explanation! Thank you again.
@dave-hollingworth
@dave-hollingworth 2 жыл бұрын
* Hollingworth (but thank you for your kind words! Glad you liked the video)
@someutubchannel69
@someutubchannel69 4 жыл бұрын
Nice and clear explanation! Looking forward for the next videos on this series on CodeIgniter! Thanks!!
@bravenoobstreaming3794
@bravenoobstreaming3794 3 жыл бұрын
just awesome, you have brillient teaching art, please give the full video for codeignitor
@annadogaeva9844
@annadogaeva9844 3 жыл бұрын
Perfect English, great explanation, amazing content 🤗
@MobiusCoin
@MobiusCoin 4 жыл бұрын
Cool! I LOVE how basic you go at the beginning. This is what I am missing as a front-end developer trying to learn backend. Even if I understand the basics of programming really well, I don't understand the fundamental architecture. This has been super enlightening. Will you do a series on Laravel as well?
@dave-hollingworth
@dave-hollingworth 4 жыл бұрын
Thank you for your kind comments! I have a Laravel series on my list to do when I get chance, yes :-)
@joel-rg8xm
@joel-rg8xm 2 жыл бұрын
@@dave-hollingworth a Laravel intro, series or even an Udemy course from you are on my #1 ToWatch and ToBuy list :) Really looking forward to it.
@sakmaestro3852
@sakmaestro3852 Жыл бұрын
Please do a course or tutorial using Symfony framework.... thanks sir... you really explained very clear..
@pixmasterstudios5623
@pixmasterstudios5623 4 жыл бұрын
Thanks Dave for this series.
@martind54
@martind54 3 жыл бұрын
I just re-watch it. Thanks Again Dave (I had to say it!)
@martind54
@martind54 3 жыл бұрын
Dave, great content and clearly explained.
@azmisudrajat
@azmisudrajat 3 жыл бұрын
Perfect explanation. Thank you, dave.
@TheCzx
@TheCzx 2 жыл бұрын
Thanks my lord :) u just saved my college study to web programming basics Subscribe +1
@dilancroos3504
@dilancroos3504 2 жыл бұрын
Need more of this!!!
@someutubchannel69
@someutubchannel69 3 жыл бұрын
Will You continue on this series? Or Do You have a course about MVC and/or CodeIgniter?
@dave-hollingworth
@dave-hollingworth 3 жыл бұрын
I have courses on both of those, linked to in the description. I will add some more CI videos in the future however, no ETA at the moment but they are on my list.
@someutubchannel69
@someutubchannel69 3 жыл бұрын
@@dave-hollingworth Good afternoon, I am taking the codeigniter course in Udemy, excelent class. Just got stuck with CLI the command line, spark for migrations giving me an access error to the database, Would you help me on that issue? Thanks in advance
@dave-hollingworth
@dave-hollingworth 3 жыл бұрын
@@someutubchannel69 Yes of course - please can you ask your question in the Q&A section in Udemy? Thanks!
@someutubchannel69
@someutubchannel69 3 жыл бұрын
@@dave-hollingworth Dave I figured it out, some how the user did not have permisions & deleted it & created it again, all working great now! Great Class! 👏🏽👍🏽 Thank You!
Жыл бұрын
Thanks!
@dave-hollingworth
@dave-hollingworth Жыл бұрын
Thank you so much!
@ahmedharoon2740
@ahmedharoon2740 2 жыл бұрын
great explaination!!! i just started learning CI4 (no background of previous versions), as a newbie from Oracle Forms & Apex, i want to ask is there a way i can create a 'Single View' for both methods Add & Edit ? like we can have in Oracle Forms and Oracle Apex and/or like a single Method to perform different tasks as per parameter, if so, please provide a link to the guide from where i can create a single Modal Form for both operations changing $title and passing primary key in case of Edit otherwise it will be blank to Add. regards.
@dave-hollingworth
@dave-hollingworth 2 жыл бұрын
Yes, kind of - you can create add and edit views, and include in them a common form view that contains the same form fields. This way you only have the form code once.
@ahmedharoon2740
@ahmedharoon2740 2 жыл бұрын
@@dave-hollingworth thanks very much for very quick response and help. will try how i can achieve this as i mentioned i am newbie, just few days back started learning CI 4. kind regards
@dave-hollingworth
@dave-hollingworth 2 жыл бұрын
@@ahmedharoon2740 You can create a view that contains the form, then include this in another view like this: this would include the view app/Views/Users/form.php
@ahmedharoon2740
@ahmedharoon2740 2 жыл бұрын
@@dave-hollingworth many thanks ( again 😊) for your interest to guide us, definitely i will follow your instructions. kind regards
@SLEcom
@SLEcom 3 жыл бұрын
Perfect! Best so far. Thanks
@atakhanking
@atakhanking Жыл бұрын
Excellent job sir
@ShubhamMishra-uw9yi
@ShubhamMishra-uw9yi 4 жыл бұрын
Hello sir. Does udmey course includes how to use pagination and third party library using composer? And does it had method to create admin panel and front end with same library? Thank you
@dave-hollingworth
@dave-hollingworth 4 жыл бұрын
Yes, the course covers pagination, CRUD, user admin and more. You can see the full list in the course description following the link under the video.
@ideaplusagency
@ideaplusagency 20 күн бұрын
Wonder why the "Routes.php" file is SO different now in version 4.5.5??
@rizaimm8169
@rizaimm8169 3 жыл бұрын
Thank you mate
@PHP-MySQL
@PHP-MySQL 2 жыл бұрын
did you not have to create routes for the tasks controller to work?
@dave-hollingworth
@dave-hollingworth 2 жыл бұрын
No, it uses autorouting (I know this isn't recommended now - I'll be updating this video when I get chance)
@PHP-MySQL
@PHP-MySQL 2 жыл бұрын
@@dave-hollingworth Can you help me to understand? Is it the new recommendation now to manually create routes for every controller?
@dave-hollingworth
@dave-hollingworth 2 жыл бұрын
@@PHP-MySQL I believe so, but I haven't had chance to look into it in detail yet
@ahmedharoon2740
@ahmedharoon2740 2 жыл бұрын
hi, in Codeigniter 4, can i have an example of 2 tables master-detail like i can create in Oracle Apex where master is in Form style single record (in above region) and detail in Grd style multi-row (say tabular using datatable etc.), i failed to find yet, please help us. regards
@dave-hollingworth
@dave-hollingworth 2 жыл бұрын
Yes you could do that, but I'm not aware of any part of CodeIgniter that would do that for you automatically, you'd have to query the necessary data manually in a controller method
@ahmedharoon2740
@ahmedharoon2740 2 жыл бұрын
@@dave-hollingworth thank you sir for your reply. it is simple for seniors like you, i am a very beginner, even don't know about editable datatable how to's... so please please, give us a working example or a link from where i can understand what i want to achieve using CI4 + JS etc. regards
@dave-hollingworth
@dave-hollingworth 2 жыл бұрын
@@ahmedharoon2740 I do plan to make a datatables video at some point, but I can't say when I'll be able to do it - in the meantime I would suggest the official documentation and examples there, they're very good - try it with plain PHP first, then you can get a CI application to produce the same data
@ahmedharoon2740
@ahmedharoon2740 2 жыл бұрын
@@dave-hollingworth thanks sir, will wait for your guide, if it will be what i asked for i will be much grateful. regards
@manishasalunke1446
@manishasalunke1446 2 жыл бұрын
hi, I am working on Codeigniter 4.2.1 localhost as i placed default controller in URL it showing error "404 File not Found Can't find a route for 'get: /home'."
@dave-hollingworth
@dave-hollingworth 2 жыл бұрын
You need a getIndex method instead of just an index method (this is the new routing since 4.2)
@TeacherRichPH
@TeacherRichPH 3 жыл бұрын
Hi. Why do i need to use public to access the home?
@dave-hollingworth
@dave-hollingworth 3 жыл бұрын
It's for security - it prevents access to the source code in a browser. More details here: codeigniter.com/user_guide/concepts/structure.html#public
@TeacherRichPH
@TeacherRichPH 3 жыл бұрын
@@dave-hollingworth but in your urls no public was added
@dave-hollingworth
@dave-hollingworth 3 жыл бұрын
@@TeacherRichPH You configure the web server so that the public folder is the root folder. So the file public/index.php for example would be available in the web root, e.g. localhost/index.php
@TeacherRichPH
@TeacherRichPH 3 жыл бұрын
@@dave-hollingworth got this.
@alalyrealestate1136
@alalyrealestate1136 9 ай бұрын
Hi Dave, May I ask you if your Codeigniter course on udemy is up to date? I have already join 4 of your courses in udemy
@dave-hollingworth
@dave-hollingworth 9 ай бұрын
Yes, I completely updated it recently. It's a couple of minor versions behind the latest release, but the content has been amended where necessary to reflect the changes.
@jayavarapumani4532
@jayavarapumani4532 Жыл бұрын
hii sir i have doubt in php please clarify the doubt my doubt is :Creation of dynamic property CI_URI::$config is deprecated what the solution
@dave-hollingworth
@dave-hollingworth Жыл бұрын
You need to upgrade your CI version, or if it's not that, make sure you're not creating any properties dynamically in your PHP classes
@sammybammy52
@sammybammy52 2 жыл бұрын
Is that Xubuntu you're using?
@dave-hollingworth
@dave-hollingworth 2 жыл бұрын
It is indeed, my desktop OS of choice :-)
@heyjulyabas1681
@heyjulyabas1681 3 жыл бұрын
THANK YOU😀
@danieluwana2790
@danieluwana2790 Жыл бұрын
+1 sub. Like you way of teaching, really helpful. I've been confused in the add a session title, what the difference when you hand code and use the session title. ?
@dave-hollingworth
@dave-hollingworth Жыл бұрын
I'm afraid I'm not sure what you mean, please could you explain further?
@phpcodemania
@phpcodemania 3 жыл бұрын
Thank you
@RixtronixLAB
@RixtronixLAB 2 ай бұрын
Nice, thanks :)
@jesseglennthiam6752
@jesseglennthiam6752 2 жыл бұрын
Can you do another discount from udemy thank you
@dave-hollingworth
@dave-hollingworth 2 жыл бұрын
Of course: the current best price is available here (available for the next five days): www.udemy.com/course/codeigniter-from-scratch/?couponCode=268D0BEA01A7D18DFF8D
@jesseglennthiam6752
@jesseglennthiam6752 2 жыл бұрын
@@dave-hollingworth , yey i already made a purchase from this link, its a really huge discount thank you so much
@ademineshat
@ademineshat 4 жыл бұрын
It's really a nice tutorial, but the copy and pasting, I think isn't a good practice, even if you try to save time. Thank you!
@dave-hollingworth
@dave-hollingworth 4 жыл бұрын
Thank you for the feedback! I found that typing everything in did waste a lot of the viewer's time, so I try and highlight everything when inserting it using that method. Some like it, some don't. I haven't come up with an alternative that everyone likes yet!
@ademineshat
@ademineshat 4 жыл бұрын
@@dave-hollingworth Thanks for the reply :) What about both methods? of course, not everyone likes writing HTML and CSS to make it look better, but imagine when we write notes, not that we will read them after, but writing helps us remember things! Best regards ✌️
@Viralplace
@Viralplace 4 жыл бұрын
I prefer Laravel
@NTKM-om9vn
@NTKM-om9vn 2 жыл бұрын
Error 404
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН
1% vs 100% #beatbox #tiktok
01:10
BeatboxJCOP
Рет қаралды 67 МЛН
Learn Symfony in 1 Hour
1:11:01
Dave Hollingworth
Рет қаралды 6 М.
CodeIgniter 4 from Scratch - #6 - Views | Basic Views | Part 1/3
25:50
CodeIgniter vs Laravel: A Detailed Side-by-Side Comparison
11:21
Namespaces and CodeIgniter 4
16:31
IgnitedCode
Рет қаралды 6 М.
Securely Storing PHP Configuration Settings
7:20
Dave Hollingworth
Рет қаралды 9 М.
CodeIgniter 4 from Scratch - #9 - Models
50:36
Alex Lancer
Рет қаралды 36 М.
How to call APIs from PHP: file_get_contents, cURL, Guzzle and SDKs
25:14
Dave Hollingworth
Рет қаралды 43 М.
Le MVC qu’est ce que c’est ? (Model View Controller)
23:24
Nico Develop
Рет қаралды 33 М.
She made herself an ear of corn from his marmalade candies🌽🌽🌽
00:38
Valja & Maxim Family
Рет қаралды 18 МЛН