#23-1 Custom Libraries in CodeIgniter 4

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ก.พ. 2025

ความคิดเห็น • 34

  • @sachinkb7335
    @sachinkb7335 9 หลายเดือนก่อน +1

    Class "App\Models\AutoModel" not found

  • @ruma9338012757
    @ruma9338012757 3 ปีที่แล้ว

    all of your videos are best of the best

  • @rmr7206
    @rmr7206 4 ปีที่แล้ว +1

    You are simply awesome man......

    • @GoPHP
      @GoPHP  4 ปีที่แล้ว

      Thank You

  • @psychodepth4636
    @psychodepth4636 ปีที่แล้ว

    It is confusing that you communicate the db using libraries, I thought Models do the work? And now I don't understand the role of libraries plss explain...

  • @drm2196
    @drm2196 2 ปีที่แล้ว +1

    I am not able to find AutoModel in Codeigniter 4.1.8. This is the error thrown [ Class "App\Models\AutoModel" not found ]. Can you help me please? Thanks

  • @RogerGoll
    @RogerGoll 3 ปีที่แล้ว

    thanks for the content, in ci3 I had my libs organized in subfolders, now in ci4 I have no idea how to keep this organization and how to call a lib in a subfolder in the libraries folder.

  • @iamansohal
    @iamansohal 3 ปีที่แล้ว

    I did the same and having page not found error.

  • @macruzgi
    @macruzgi 2 ปีที่แล้ว

    But, what happens if I create another class in the TestLibrary library?

  • @learner4166
    @learner4166 4 ปีที่แล้ว +1

    At first Thank You for these great videos Sir!
    I had a question please, is it correct that we can create instance of libraries in Controller as well?
    And is it okay if i use only model to retrieve or insert data into database?

    • @learner4166
      @learner4166 4 ปีที่แล้ว

      And another question, When we tried to create instance 'uri' why we needed to declare "use CodeIgniter\HTTP\URI;" then also "$this->uri->current_uri();"
      Why couldn't we create instance like others as in $this->uri = \Config\Services::uri();

    • @GoPHP
      @GoPHP  4 ปีที่แล้ว

      If you want to access libraries into controllers, we have use the instance of library, I think there is no other way.
      As per MVC, A model is responsible for database operations. We can also perform db operations with controller also, but its not a good idea

    • @GoPHP
      @GoPHP  4 ปีที่แล้ว

      @@learner4166 if we want to use any library ( predefined + user defined) into your controller, first we have to import/use that library
      That is nothing but importing the library into your controller. By doing this, we can access the the methods and properties into your controller or views and models

  • @kulasiriniit
    @kulasiriniit 4 ปีที่แล้ว

    Thank you so much sir

  • @lifejoin7742
    @lifejoin7742 4 ปีที่แล้ว

    Need guidance on
    Libraries
    As get_instance
    Url - segment
    Call libraries class function in View file
    It was easier in ci3
    Please guide

  • @satishksharma
    @satishksharma 4 ปีที่แล้ว

    Why did you stop creating video.

  • @triwaskito831
    @triwaskito831 4 ปีที่แล้ว

    thanks

  • @hamzalijameco4284
    @hamzalijameco4284 4 ปีที่แล้ว

    can you expain how we can interract with content i vendor, i.e if i download some modules with composer and autoload it, how can i use that peace of code?

    • @GoPHP
      @GoPHP  4 ปีที่แล้ว +1

      Please check the videos #36 and #37 from our playlist. Here we explained how use google and fb api's. Still if you have any doubts let me know

  • @jayantsingh2823
    @jayantsingh2823 4 ปีที่แล้ว

    Monday is here sir, where is our video ?

  • @buggaman2009
    @buggaman2009 4 ปีที่แล้ว

    Suggest a good rbac

  • @jayantsingh2823
    @jayantsingh2823 4 ปีที่แล้ว

    Where are you gone Sir ?

    • @GoPHP
      @GoPHP  4 ปีที่แล้ว +1

      Hey Jayanth, How are you doing?
      Sorry Man, Little busy with office work. From this Monday we will be back

    • @jayantsingh2823
      @jayantsingh2823 4 ปีที่แล้ว

      @@GoPHP just because of you i got job in CI 4 and completed one whole project in these 2 month. Every time i followed your tutorial.
      I am very thankful for you and wish for your comeback.

  • @anilsharma4779
    @anilsharma4779 3 ปีที่แล้ว

    S3 bucket use into ci 4 project. Please help anyone.

  • @aaniqchagani5844
    @aaniqchagani5844 4 ปีที่แล้ว

    sir in which tutorial you make automodel

    • @GoPHP
      @GoPHP  4 ปีที่แล้ว

      Check Last two videos of ci4 playlsit

  • @aniksen2977
    @aniksen2977 4 ปีที่แล้ว

    Nah, you didn't create the auto model in the previous video. Btw it will be helpful if you please make a video on how to pass parameters between instance and class. Thanks

    • @GoPHP
      @GoPHP  4 ปีที่แล้ว

      Sorry Man
      Auto Models are created.
      Please check videos #51 and #52 from our playlist

  • @truthteachers
    @truthteachers 3 ปีที่แล้ว

    Hi, you are doing a great job on the lecture but a hopeless job on the examples. I am in lesson 23-1 which came out of sequence the playlist. Next, when you creating the controller class, we see you have more controllers than we have. The worst part is you keep referring to a previous lecture such google api which we never heard of. Last and again, the table "employees" does not exist in the previous download you gave me. Can you explain how are are we going to follow?? Yes, we can use our own table but when errors occur, what happens?? This video is a total mess and stop catching the train! PLEASE DO NOT DO THIS FOR JUST MAKING MONEY, DO THIS ALSO TO BUILD YOUR CREDIBILITY! I am sorry this is a harsh comment, unfortunately many courses done by the guys from India have the same problem. That is why UDEMY is better.

  • @ajadvalli5181
    @ajadvalli5181 4 ปีที่แล้ว

    explain multilanguage module sir

    • @GoPHP
      @GoPHP  4 ปีที่แล้ว

      Sure