Auto CRUD Generator - #5 - Custom Table Columns - Callbacks | CodeIgniter 4

Поділитися
Вставка
  • Опубліковано 3 січ 2025

КОМЕНТАРІ • 86

  • @albertoiong6895
    @albertoiong6895 4 роки тому +2

    Hi Alex,
    I follow your tutorials series by series, part by part, till I am here.
    Thank you for your sharing of knowledge, wisdom and code...
    Look forward to see your new series of CodeIgniter4 videos.

    • @AlexLancer
      @AlexLancer  4 роки тому

      Great to hear, Alberto. Thank you!

  • @someutubchannel69
    @someutubchannel69 3 роки тому

    Alex,
    I hope you are doing great and keeping you safe in this times.
    I also hope you can continue uploading your great tutorials.
    Stay Safe!

  • @suno-net446
    @suno-net446 3 роки тому

    Thanks so much, Alex. I`ve learned a lot about how to work into CodeIgniter. And I appreciate it. UPDATE: just a couple of hours playing with this, and i can tell you how great it is. You have a simple big table working really fine in about 15 minutes, not more. Joining several tables takes a little bit more, but this is a fantastic tool for time save. THANK YOU!!!!

  • @albertgeorge1619
    @albertgeorge1619 4 роки тому +2

    Man You are great! Please don't stop creating these type of tutorials. We all are waiting for your next video/tutorial series. Can you please create a vue and codeigniter series with multiple admin panels/user roles and jwt token?? I have searched the internet and didn't find one. That would be great if you could do that!!

  • @gangaeswaran1349
    @gangaeswaran1349 3 роки тому

    Great Tutorial! I followed your videos series by series and by far the best explanation I have ever seen. I am a newbie to CodeIgniter and your detailed tutorials have helped me learn with ease. Thank you so much!

  • @someutubchannel69
    @someutubchannel69 4 роки тому

    I love this channel
    So I help by watching all the ads
    I know it is the least you can do to support a great content creator!

  • @enzosisi1087
    @enzosisi1087 3 роки тому

    Hello Alex, you literally save my bachelor degrees, i'll put your name on my diploma xD, thank you so much

  • @lucaslyimo1411
    @lucaslyimo1411 4 роки тому +1

    Thanks for the great presentation and tutorial. You are a life saver., the commitment and depth of your presentation is beyond measure. Much respect and appreciation for all the good presentation. I learned a lot. Salute bro

  • @dimitrisganotis
    @dimitrisganotis 4 роки тому

    Μπράβο Άλεξ! Πολυ καλή δουλειά! Περιμενώ καινουργιο βίντεο 👌👌

  • @ZaferBAHADIR
    @ZaferBAHADIR 4 роки тому

    I liked the training video very much. It was very useful for me. Thank you so much.

  • @someutubchannel69
    @someutubchannel69 4 роки тому +3

    Alex,
    I hope you are doing OK!
    Wondering when will you piblish your next video!
    Stay Safe!!

  • @javericablanca4084
    @javericablanca4084 4 роки тому

    I always love your tutorial bro

  • @RabiKant
    @RabiKant 4 роки тому

    Hi Alex, first of all thanks for presenting a lovely topic in such a detailed and elaborate way. I would appreciate if you can add an example of dependent dropdown in your crud example. The values of the secondary dropdown should change when the first dropdown value is changes, for example, if we select a country then the regions should change.

  • @DreyTheVlogger
    @DreyTheVlogger 4 роки тому +1

    First comment here. ^_^ I just want you to know that i m following all of your tutorials, Its Great!! i really like it bro. i learned a lot. Thank you so much bro.

    • @AlexLancer
      @AlexLancer  4 роки тому +3

      Glad to hear that, Rey. Trying my best to share with you useful stuff that saves my time and hopefully yours.

    • @DreyTheVlogger
      @DreyTheVlogger 4 роки тому +1

      Yes bro this tutorial will save lots of developing time. :) Thank you so much Alex!,
      Always Stay safe!.

  • @25helm08
    @25helm08 4 роки тому

    Thank you so much Alex

  • @imaeaja
    @imaeaja 4 роки тому +2

    great tutorial.. what is next?

  • @jarodjaidi4435
    @jarodjaidi4435 4 роки тому +1

    Great job !! thank you so much

  • @someutubchannel69
    @someutubchannel69 4 роки тому +2

    Alex,
    When are you going to continue this series?
    😎👍🏽

  • @acrobmusic
    @acrobmusic Рік тому

    thank you for your tutorials, They are helping me so much, how can make an input field read-only in the edit form. Thank you

  • @walternomas
    @walternomas 4 роки тому +1

    Thank you very much Alex for your dedication and quality in what you do. keep it up!
    I want to place an order to continue this project: can modals be used for add and edit tasks? And secondly, what is the most professional way to create pdf reports in CI4?

  • @MaxWiriyachaikit
    @MaxWiriyachaikit 3 роки тому

    Hello Alex, thank you for your video. could I ask you something about the delete method (crud) you just teach only (cru) if you have time, please create more video for the delete method? thank you so much.

  • @gideonodekina6532
    @gideonodekina6532 4 роки тому

    Hello Alex, great tutorial!! Please can you do a view action, next to the edit?

  • @CrazyGuyOfficial
    @CrazyGuyOfficial 4 роки тому

    @Alex Lancer ThankYou so much, i have learned alot from your tutorials and created a new project , everything works but i get two kinds of errors
    1. when adding new information by pressing add:
    Undefined variable affected (line 429 crud core)(the if else statements right before the return redirect edit/id )but because of the error page we are never redirected to the edit page
    but the new information is added to the database. after manually navigating to the index method and confirming via phpmyadmin too.
    2. when updating info 'without changing any data' by pressing update :
    undefined variable todelete (line 429 crud core)
    navigating back manually and via phpmyadmin ,data stays the same in data base
    btw edit/update works successfully if information is changed before update is pressed and correct success alert is shown

    • @CrazyGuyOfficial
      @CrazyGuyOfficial 4 роки тому

      i declared all three variables (affected , todelete, toinsert )and i set them to false in the parent function (if this validator with request this request run || novalidation) then it started to work but i faced a strange issue where adding data shows both alerts at the same time ( successfully added and no records changed )....
      then
      i copied the (return redirect to edit this id ) and pasted it right after the( set flash successfully added message) in the (if statement action add ) now everything seems to work as expected

    • @CrazyGuyOfficial
      @CrazyGuyOfficial 4 роки тому

      i'm an absolute beginner in php , ci framework etc so I'm not sure what issue this will cause in the future if somebody can guide me in the right direction that would be awesome

  • @garrywatson9726
    @garrywatson9726 Рік тому

    Hi Alex
    I am very new to coding and have been following following your tutorial and find your approach very informative .
    although at the end i have found that the image column breaks the layout in the projects form it appears to attach its self to the edit button witch ever column i place it the edit button and days left column travel with it and nothing is displayed to the right off the edit button I have trawled the code to try and find the error but so far been unable to spot a mistake can you point me to the area i should look where the code may need changing many thanks Garry
    ps: I am using the latest version CI4 with wamp64 virtual host

  • @LlegoManuel
    @LlegoManuel 4 роки тому

    Alex, nice video as always. I was wondering if there is a way to migrate a CI 3 app to CI4. I know in the docs says it's better to rewrite the app, but its a pretty long software. Thanks for answering.

  • @richhalsey1607
    @richhalsey1607 4 роки тому +2

    Good morning! Thanks again for all of you tutorials, I have learned so much! I am thinking the foreach ($toHash as $hashIt) {
    $post[$hashIt] = password_hash($hashIt, PASSWORD_DEFAULT);
    } is not correct? It seems the it is hashing the column name and not the password coming in. I have changed it to password_hash($post[$hashIt] , PASSWORD_DEFAULT);
    to get it to work. Understand that I am not a professional programmer and if I have incorrectly flagged this, I apologize.

    • @AlexLancer
      @AlexLancer  4 роки тому

      Hey, Rich, I will check that. Thanks for digging in.

  • @richhalsey1607
    @richhalsey1607 4 роки тому +1

    Thank you for a great tutorial!! I do have a problem when adding a new project. Undefined variable: affected APPPATH\Libraries\Crud_core.php at line 398. Can you help? Thank you so much!

    • @AlexLancer
      @AlexLancer  4 роки тому +2

      Rich. I think it is a bug. I ve noticed it while preparing the next video. For now you can define all the variables from an if statement that causes the issue at the begging of the method.
      Affected = false
      todelete = false
      toinsert = false
      Etc...

    • @richhalsey1607
      @richhalsey1607 4 роки тому

      @@AlexLancer Thank you for the quick response!!!

    • @hansratzingerselbstandiger9786
      @hansratzingerselbstandiger9786 4 роки тому +4

      @@AlexLancer Thank you Alex for your time and effort to create this wonderful AutoCRUD Library! I was following all your tutorials about CI4 and learned a lot! Thank you so much!!!
      To fix the above mentioned bug I found this solution:
      Crud_core.php Line 398
      Replace 398 - 401
      if ($insertedFilesAffectedRows || $affected || $toDelete || $toInsert)
      $this->flash('success', 'Successfully Updated');
      else
      $this->flash('warning', 'The record was not updated or no changes were made');
      with this code
      if (($insertedFilesAffectedRows)
      || (isset($affected) && $affected)
      || (isset($toDelete) && $toDelete)
      || (isset($toInsert) && $toInsert)) {
      $this->flash('success', 'Successfully Updated');
      }else{
      $this->flash('warning', 'The record was not updated or no changes were made');
      }

    • @gideonodekina6532
      @gideonodekina6532 4 роки тому

      @@hansratzingerselbstandiger9786 thanks for this, please can you share a function to view and delete user please?

  • @alexbros3705
    @alexbros3705 4 роки тому

    Very cool

  • @Sushilkawad
    @Sushilkawad 4 роки тому +1

    Sir, is it possible to create a custom view and controllers add/edit forms with minimal effort?

  • @fuchandraxing4512
    @fuchandraxing4512 4 роки тому +1

    hi @alex , please add "delete" feature in your crud ...

  • @EarlClare
    @EarlClare Місяць тому

    Hello Alex, Just came across your tutorial. Unfortunately I am 4 years later :)CI has changes significantly since then. I downloaded 4.5.5 however I simply get a Whoops! when trying to run.

  • @unboxkarunadu372
    @unboxkarunadu372 4 роки тому +1

    @Alex r u their bro? Y I m asking is no updates from ur end from last month...

  • @alpeshrathodcreatives
    @alpeshrathodcreatives 3 роки тому

    Hi sir need help on Ion Auth library, how to implement it on CI4

  • @brkseries
    @brkseries 4 роки тому +3

    Bro can you show us how to make an invoice (pdf) from database row??
    Please 🙃

  • @Mrscandeia
    @Mrscandeia 4 роки тому

    Show... parabéns. professor vamos fazer um tutor de um projeto prático, pra os estudantes novatos como eu... obrigado...

    • @AlexLancer
      @AlexLancer  4 роки тому

      Manoel, is that a request or a statement ? as always lost in translation :)

  • @brkseries
    @brkseries 4 роки тому +1

    Bro where are you.
    Are you OK.
    Why you are not posting any new content ??
    Is everything going well??

  • @lightmare1919
    @lightmare1919 4 роки тому

    how we can separate the user control and the admin control so the admin check or edit some of functions? and there a way to confirm in pdf for invoice for the projects and have a capability of printing. thank you in advance #alexlancer love your work i learned a lot.

  • @sbnsaravana2882
    @sbnsaravana2882 4 роки тому

    Could you post a video for how to integrate google captcha in codeignitor 4? Because it is complicated

  • @Mrscandeia
    @Mrscandeia 4 роки тому

    Amigo vc parou com os posts de vídeos novos sobre codeigniter, estava gostando de seus vídoes...

    • @AlexLancer
      @AlexLancer  4 роки тому +3

      Manoel, I will comeback soon. With new videos. Working on some projects now. Very busy.

  • @brkseries
    @brkseries 4 роки тому +2

    Bro are going to post any video or not??
    You are gone for week?

    • @AlexLancer
      @AlexLancer  4 роки тому +3

      Yes I will, BRK, but the main part is done. You have been following since the start, I am sure, you can build this lib yourself. But thanks for the follow up.

    • @brkseries
      @brkseries 4 роки тому +2

      @@AlexLancer thanks for remembering me.
      I am hopeing project from you 😊

  • @rajabhishek2936
    @rajabhishek2936 4 роки тому

    Can you make tickit booking system in codeignter????

  • @garrywatson9726
    @garrywatson9726 Рік тому

    Hi No worries found the issue was missing a " in the return

  • @bright746
    @bright746 4 роки тому

    Can you suggest me some useful extensions for vs code for helping the development of php html

  • @FelipeAlves-fz5ju
    @FelipeAlves-fz5ju 3 роки тому

    Hi Alex,
    Thank you for your sharing of knowledge, wisdom and code with us. I have a question :DD
    I need to store this project in an 'admin' folder. How can I do this to access via 'localhost:8080/admin' for example ?? I filled in the $base='admin' variable in the 'crud_core.php' file and the controllers too, but it didn't work. Can u help me?

  • @loneeefal7958
    @loneeefal7958 4 роки тому +1

    thanks alot for your efforts
    cud you plz make us some tutorial on how to make a dynamic codeigniter website bilingual
    thanks alot

    • @hansratzingerselbstandiger9786
      @hansratzingerselbstandiger9786 4 роки тому

      codeigniter4.github.io/userguide/outgoing/localization.html
      in your project root:
      cd app/Language
      git clone github.com/codeigniter4/translations.git
      move your wanted language directory to app/Language
      eg. for german
      mv translations/Language/de ../../de
      delete all the unwanted language directories
      rm -r translations

  • @imaeaja
    @imaeaja 4 роки тому

    already until the fifth part, I got an error when adding data but if I update the data there is no problem..

    • @imaeaja
      @imaeaja 4 роки тому +1

      ErrorException
      Undefined variable: affected
      APPPATH\Libraries\Crud_core.php at line 392
      if ($insertedFilesAffectedRows || $affected || $toDelete || $toInsert) {}
      when i add for tags and users, i got this errors but there is no problem with updating the tables..

    • @hansratzingerselbstandiger9786
      @hansratzingerselbstandiger9786 4 роки тому +2

      @@imaeaja fixed, see: github.com/alexlancer/Auto-CRUD-Generator-CodeIgniter-4-/issues/4#issue-733937458

  • @kirtimane3817
    @kirtimane3817 3 роки тому

    how to create the table in database

  • @bagas_x
    @bagas_x 4 роки тому

    Please Make Videos Again 👍

  • @alexbros3705
    @alexbros3705 4 роки тому

    O kaliteros filos tou kismou

  • @alexbros3705
    @alexbros3705 4 роки тому

    Ето крутое видео

  • @yekrinasoftware
    @yekrinasoftware 4 роки тому

    Hi Alex good tutorial I have this issue how to make this for two folder to fetch all pages
    I mean I want to fetch all pages in folder 1 and folder 2 but differently how?
    and different routes
    is not working
    folder1
    $routes->get('(:any)', 'AllPages::view/$1');
    folder2
    $routes->get('(folder2/:any)', 'AllPages::view/$1');
    ------------------------------------------------------------------------
    public function view($page = 'home')
    {
    if ( ! is_file(APPPATH.'/Views/folder1/'.$page.'.php'))
    {
    // Whoops, we don't have a page for that!
    throw new \CodeIgniter\Exceptions\PageNotFoundException($page);
    }
    $data['title'] = ucfirst($page); // Capitalize the first letter
    echo view('templates/header', $data);
    echo view('folder1/'.$page, $data);
    echo view('templates/footer', $data);
    }
    public function view($page = 'home')
    {
    if ( ! is_file(APPPATH.'/Views/folder2/'.$page.'.php'))
    {
    // Whoops, we don't have a page for that!
    throw new \CodeIgniter\Exceptions\PageNotFoundException($page);
    }
    $data['title'] = ucfirst($page); // Capitalize the first letter
    echo view('templates/header', $data);
    echo view('folder2/'.$page, $data);
    echo view('templates/footer', $data);
    }

  • @mohamedab6440
    @mohamedab6440 3 роки тому

    شكرا لك على مجهودك لدي مشكل حاولة حله لكن ولم أجد له حل هل يمكن مساعدتي
    Error Number: 1054
    Unknown column 'category_table.*' in 'field list'
    SELECT `id`,`autor_name`,`title`, SUBSTRING(`content`, 1, 300) AS content,`image_url`,`show_first`, `date_creation`,`views`, `featured_for_menu`, `category_table`.`*` FROM `aricle_table`, `category_table` WHERE `aricle_table`. `id_category`= `category_table`.`id_category` ORDER BY `date_creation` DESC LIMIT 7 OFFSET 0
    Filename: C:/xampp/htdocs/ArabicBlog/system/database/DB_driver.php
    Line Number: 691

  • @toddzmijewski6002
    @toddzmijewski6002 4 роки тому

    You need to learn some modern skills. You are obviously an intelligent human being. Yet you still sit here teaching people about legacy software.

    • @kennethkipchumba2532
      @kennethkipchumba2532 4 роки тому

      The legacy software is still highly valued out here.

    • @toddzmijewski6002
      @toddzmijewski6002 4 роки тому +1

      @@kennethkipchumba2532 I see over 50 PRs spread out across at least year which have not been dealt with. I also see the recent commits of a single individual. It really appears like one, single individual is working on this project. No one else really cares. Its a legacy MVC framework that hasn't changed very much in the last decade.

    • @kennethkipchumba2532
      @kennethkipchumba2532 4 роки тому

      I hear you@@toddzmijewski6002.

    • @toddzmijewski6002
      @toddzmijewski6002 4 роки тому +1

      @@kennethkipchumba2532 One very important dimension for me is community surrounding a product. I consider community support and documentation the most important aspects of open source projects. Those dimensions provide insight into the longevity of the project. Longevity is important because you always want to be able to find people who are not only skilled but also motivated to improve that code base. So many projects are abandoned and companies are left with software ecosystems that no one wants to work on. I really think PHP has reached that point.What made PHP a great solution was the ecosystem of MONOLITHIC CMSs. However, in the last decade as companies have moved to the cloud and desire custom solutions to their problems.There are so many more MODERN technologies that lend themselves to distributed cloud architecture other than php. AWS doesn't even really support PHP. One of the only languages NOT supported on server-less architecture on AWS. I just don't understand why people such as yourself want to perpetuate the usage of such outdated technology. The business implications of building software on such an outdated stack unless managing an existing legacy application are astronomical.

    • @kennethkipchumba2532
      @kennethkipchumba2532 4 роки тому +1

      @@toddzmijewski6002 I am serving a client using CI. It's not easy for clients to consider overhauling their systems which are serving them good for another "Modern" technology.
      In as much as I agree that the latest tech is good, sometimes one can't help but keep familiarizing with new features of "Old Technology" so as to continue putting food on the table.