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

Поделиться
HTML-код
  • Опубликовано: 24 авг 2024

Комментарии • 68

  • @chevalier5691
    @chevalier5691 3 года назад +6

    Thanks a ton! Been looking for a non-tutorial style Codeigniter course cos I wanna focus solely on architectural knowledge, found the perfect video.

  • @bravenoobstreaming3794
    @bravenoobstreaming3794 3 года назад +4

    just awesome, you have brillient teaching art, please give the full video for codeignitor

  • @someutubchannel69
    @someutubchannel69 3 года назад +4

    Nice and clear explanation!
    Looking forward for the next videos on this series on CodeIgniter!
    Thanks!!

  • @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)

  • @MobiusCoin
    @MobiusCoin 3 года назад +13

    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 года назад +1

      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 Год назад +1

    Please do a course or tutorial using Symfony framework.... thanks sir... you really explained very clear..

  • @annadogaeva9844
    @annadogaeva9844 3 года назад +3

    Perfect English, great explanation, amazing content 🤗

  • @pixmasterstudios5623
    @pixmasterstudios5623 3 года назад +3

    Thanks Dave for this series.

  • @dilancroos3504
    @dilancroos3504 Год назад +1

    Need more of this!!!

  • @azmisudrajat
    @azmisudrajat 3 года назад +1

    Perfect explanation. Thank you, dave.

  • @martind54
    @martind54 3 года назад +2

    Dave, great content and clearly explained.

  • @rizaimm8169
    @rizaimm8169 3 года назад +3

    Thank you mate

  • @martind54
    @martind54 3 года назад +1

    I just re-watch it. Thanks Again Dave (I had to say it!)

  • @SLEcom
    @SLEcom 3 года назад +1

    Perfect! Best so far. Thanks

  • @atakhanking
    @atakhanking 10 месяцев назад

    Excellent job sir

  • @heyjulyabas1681
    @heyjulyabas1681 3 года назад +1

    THANK YOU😀

  • @someutubchannel69
    @someutubchannel69 3 года назад +3

    Will You continue on this series?
    Or Do You have a course about MVC and/or CodeIgniter?

    • @dave-hollingworth
      @dave-hollingworth  3 года назад +1

      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 года назад +1

      @@someutubchannel69 Yes of course - please can you ask your question in the Q&A section in Udemy? Thanks!

    • @someutubchannel69
      @someutubchannel69 2 года назад +1

      @@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!

  • @TheCzx
    @TheCzx Год назад

    Thanks my lord :) u just saved my college study to web programming basics
    Subscribe +1

  • @phpcodemania
    @phpcodemania 3 года назад +1

    Thank you

  • @ahmedharoon2740
    @ahmedharoon2740 2 года назад +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 года назад +1

      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 года назад +1

      @@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

  • @ShubhamMishra-uw9yi
    @ShubhamMishra-uw9yi 3 года назад +1

    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 года назад +1

      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.

  • @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)

  • @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

  • @alalyrealestate1136
    @alalyrealestate1136 5 месяцев назад

    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  5 месяцев назад +1

      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.

  • @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?

  • @sammybammy52
    @sammybammy52 Год назад

    Is that Xubuntu you're using?

  • @ademineshat
    @ademineshat 3 года назад +2

    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 года назад +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 года назад +1

      @@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 ✌️

  • @PHP-MySQL
    @PHP-MySQL 2 года назад

    did you not have to create routes for the tasks controller to work?

    • @dave-hollingworth
      @dave-hollingworth  2 года назад +1

      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 Год назад

      @@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  Год назад

      @@PHP-MySQL I believe so, but I haven't had chance to look into it in detail yet

  • @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

  • @TeacherRichPH
    @TeacherRichPH 2 года назад

    Hi. Why do i need to use public to access the home?

    • @dave-hollingworth
      @dave-hollingworth  2 года назад

      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 2 года назад

      @@dave-hollingworth but in your urls no public was added

    • @dave-hollingworth
      @dave-hollingworth  2 года назад +1

      @@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 2 года назад +1

      @@dave-hollingworth got this.

  • @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 года назад +1

      @@dave-hollingworth , yey i already made a purchase from this link, its a really huge discount thank you so much

  • @Viralplace
    @Viralplace 3 года назад +1

    I prefer Laravel

  • @NTKM-om9vn
    @NTKM-om9vn Год назад

    Error 404