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.
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!!!!
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!!
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!
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
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.
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.
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?
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.
@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
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
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
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
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.
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.
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!
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...
@@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'); }
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.
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.
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.
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?
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
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..
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); }
شكرا لك على مجهودك لدي مشكل حاولة حله لكن ولم أجد له حل هل يمكن مساعدتي 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
@@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 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.
@@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.
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.
Great to hear, Alberto. Thank you!
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!
Thanks, you too!
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!!!!
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!!
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!
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!
Hello Alex, you literally save my bachelor degrees, i'll put your name on my diploma xD, thank you so much
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
Μπράβο Άλεξ! Πολυ καλή δουλειά! Περιμενώ καινουργιο βίντεο 👌👌
I liked the training video very much. It was very useful for me. Thank you so much.
Alex,
I hope you are doing OK!
Wondering when will you piblish your next video!
Stay Safe!!
I always love your tutorial bro
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.
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.
Glad to hear that, Rey. Trying my best to share with you useful stuff that saves my time and hopefully yours.
Yes bro this tutorial will save lots of developing time. :) Thank you so much Alex!,
Always Stay safe!.
Thank you so much Alex
great tutorial.. what is next?
Great job !! thank you so much
You're welcome, Jarod!
Alex,
When are you going to continue this series?
😎👍🏽
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
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?
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.
Hello Alex, great tutorial!! Please can you do a view action, next to the edit?
@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
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
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
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
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.
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.
Hey, Rich, I will check that. Thanks for digging in.
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!
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...
@@AlexLancer Thank you for the quick response!!!
@@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');
}
@@hansratzingerselbstandiger9786 thanks for this, please can you share a function to view and delete user please?
Very cool
Sir, is it possible to create a custom view and controllers add/edit forms with minimal effort?
Please Sir have u found a solution?
@@gideonodekina6532 not exactly, you have to go with traditional way.
@@Sushilkawad okay
hi @alex , please add "delete" feature in your crud ...
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.
@Alex r u their bro? Y I m asking is no updates from ur end from last month...
Hi sir need help on Ion Auth library, how to implement it on CI4
Bro can you show us how to make an invoice (pdf) from database row??
Please 🙃
Show... parabéns. professor vamos fazer um tutor de um projeto prático, pra os estudantes novatos como eu... obrigado...
Manoel, is that a request or a statement ? as always lost in translation :)
Bro where are you.
Are you OK.
Why you are not posting any new content ??
Is everything going well??
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.
Could you post a video for how to integrate google captcha in codeignitor 4? Because it is complicated
Amigo vc parou com os posts de vídeos novos sobre codeigniter, estava gostando de seus vídoes...
Manoel, I will comeback soon. With new videos. Working on some projects now. Very busy.
Bro are going to post any video or not??
You are gone for week?
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.
@@AlexLancer thanks for remembering me.
I am hopeing project from you 😊
Can you make tickit booking system in codeignter????
Hi No worries found the issue was missing a " in the return
Can you suggest me some useful extensions for vs code for helping the development of php html
PHP IntelliSense, PHPIntelephense, PHP Debug, PHP Extension Pack, format Html in PHP
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?
thanks alot for your efforts
cud you plz make us some tutorial on how to make a dynamic codeigniter website bilingual
thanks alot
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
already until the fifth part, I got an error when adding data but if I update the data there is no problem..
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..
@@imaeaja fixed, see: github.com/alexlancer/Auto-CRUD-Generator-CodeIgniter-4-/issues/4#issue-733937458
how to create the table in database
Please Make Videos Again 👍
O kaliteros filos tou kismou
Ето крутое видео
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);
}
شكرا لك على مجهودك لدي مشكل حاولة حله لكن ولم أجد له حل هل يمكن مساعدتي
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
You need to learn some modern skills. You are obviously an intelligent human being. Yet you still sit here teaching people about legacy software.
The legacy software is still highly valued out here.
@@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.
I hear you@@toddzmijewski6002.
@@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.
@@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.