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

  Рет қаралды 39,970

Dave Hollingworth

Dave Hollingworth

Күн бұрын

Пікірлер: 69
@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.
@MobiusCoin
@MobiusCoin 3 жыл бұрын
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 3 жыл бұрын
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.
@someutubchannel69
@someutubchannel69 3 жыл бұрын
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
@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)
@pixmasterstudios5623
@pixmasterstudios5623 3 жыл бұрын
Thanks Dave for this series.
@annadogaeva9844
@annadogaeva9844 3 жыл бұрын
Perfect English, great explanation, amazing content 🤗
@sakmaestro3852
@sakmaestro3852 Жыл бұрын
Please do a course or tutorial using Symfony framework.... thanks sir... you really explained very clear..
@azmisudrajat
@azmisudrajat 3 жыл бұрын
Perfect explanation. Thank you, dave.
@martind54
@martind54 3 жыл бұрын
Dave, great content and clearly explained.
@dilancroos3504
@dilancroos3504 2 жыл бұрын
Need more of this!!!
@SLEcom
@SLEcom 3 жыл бұрын
Perfect! Best so far. Thanks
@martind54
@martind54 3 жыл бұрын
I just re-watch it. Thanks Again Dave (I had to say it!)
@rizaimm8169
@rizaimm8169 3 жыл бұрын
Thank you mate
@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 2 жыл бұрын
@@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 2 жыл бұрын
@@someutubchannel69 Yes of course - please can you ask your question in the Q&A section in Udemy? Thanks!
@someutubchannel69
@someutubchannel69 2 жыл бұрын
@@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!
@atakhanking
@atakhanking Жыл бұрын
Excellent job sir
@TheCzx
@TheCzx 2 жыл бұрын
Thanks my lord :) u just saved my college study to web programming basics Subscribe +1
@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
@phpcodemania
@phpcodemania 3 жыл бұрын
Thank you
@heyjulyabas1681
@heyjulyabas1681 3 жыл бұрын
THANK YOU😀
@RixtronixLAB
@RixtronixLAB 8 күн бұрын
Nice, thanks :)
@ShubhamMishra-uw9yi
@ShubhamMishra-uw9yi 3 жыл бұрын
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 3 жыл бұрын
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.
@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?
@alalyrealestate1136
@alalyrealestate1136 7 ай бұрын
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 7 ай бұрын
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.
Жыл бұрын
Thanks!
@dave-hollingworth
@dave-hollingworth Жыл бұрын
Thank you so much!
@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
@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
@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)
@ahmedharoon2740
@ahmedharoon2740 Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
@@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 Жыл бұрын
@@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 Жыл бұрын
@@dave-hollingworth thanks sir, will wait for your guide, if it will be what i asked for i will be much grateful. regards
@sammybammy52
@sammybammy52 2 жыл бұрын
Is that Xubuntu you're using?
@dave-hollingworth
@dave-hollingworth 2 жыл бұрын
It is indeed, my desktop OS of choice :-)
@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.
@ademineshat
@ademineshat 3 жыл бұрын
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 3 жыл бұрын
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 3 жыл бұрын
@@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 ✌️
@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
@Viralplace
@Viralplace 3 жыл бұрын
I prefer Laravel
@NTKM-om9vn
@NTKM-om9vn 2 жыл бұрын
Error 404
Routing, Controllers, Views - Part 1 | PHP MVC Framework from Scratch
1:23:21
CodeIgniter vs Laravel: A Detailed Side-by-Side Comparison
11:21
Это было очень близко...
00:10
Аришнев
Рет қаралды 919 М.
«Кім тапқыр?» бағдарламасы
00:16
Balapan TV
Рет қаралды 266 М.
Flipping Robot vs Heavier And Heavier Objects
00:34
Mark Rober
Рет қаралды 33 МЛН
小蚂蚁会选到什么呢!#火影忍者 #佐助 #家庭
00:47
火影忍者一家
Рет қаралды 97 МЛН
Codeigniter 4 CRUD Operation | CRUD Application in Codeigniter 4
52:26
MVC Explained in 8 Minutes
8:09
codeSTACKr
Рет қаралды 26 М.
Battle: Laravel vs Symfony vs CodeIgniter | You won't believe who wins! | Jelvix
5:11
Jelvix | TECH IN 5 MINUTES
Рет қаралды 16 М.
CodeIgniter 4 Tutorial - Simple Blog Part 1
38:48
Alex Lancer
Рет қаралды 87 М.
How to call APIs from PHP: file_get_contents, cURL, Guzzle and SDKs
25:14
Dave Hollingworth
Рет қаралды 42 М.
PHP how to sanitize/validate input
8:03
Bro Code
Рет қаралды 4,9 М.
PHP File Uploads | The Complete Guide to Uploading Files Using PHP
19:28
Dave Hollingworth
Рет қаралды 44 М.
ASP.NET Core Crash Course - C# App in One Hour
1:00:44
freeCodeCamp.org
Рет қаралды 1,6 МЛН
Это было очень близко...
00:10
Аришнев
Рет қаралды 919 М.