#23-1 Custom Libraries in CodeIgniter 4

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

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

  • @sachinkb7335
    @sachinkb7335 6 месяцев назад +1

    Class "App\Models\AutoModel" not found

  • @ruma9338012757
    @ruma9338012757 3 года назад

    all of your videos are best of the best

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

    You are simply awesome man......

    • @GoPHP
      @GoPHP  3 года назад

      Thank You

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

  • @psychodepth4636
    @psychodepth4636 9 месяцев назад

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

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

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

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

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

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

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

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

  • @jayantsingh2823
    @jayantsingh2823 3 года назад

    Monday is here sir, where is our video ?

  • @satishksharma
    @satishksharma 3 года назад

    Why did you stop creating video.

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

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

    Where are you gone Sir ?

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

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

    • @jayantsingh2823
      @jayantsingh2823 3 года назад

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

  • @kulasiriniit
    @kulasiriniit 4 года назад

    Thank you so much sir

  • @aniksen2977
    @aniksen2977 3 года назад

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

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

  • @aaniqchagani5844
    @aaniqchagani5844 3 года назад

    sir in which tutorial you make automodel

    • @GoPHP
      @GoPHP  3 года назад

      Check Last two videos of ci4 playlsit

  • @anilsharma4779
    @anilsharma4779 3 года назад

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

  • @buggaman2009
    @buggaman2009 3 года назад

    Suggest a good rbac

  • @triwaskito831
    @triwaskito831 3 года назад

    thanks

  • @ajadvalli5181
    @ajadvalli5181 4 года назад

    explain multilanguage module sir

    • @GoPHP
      @GoPHP  4 года назад

      Sure

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