Hello again, readers. I am working on a new project created in CodeIgniter. It will be some sort of “Customer Relationship Management” (CRM). Why “some sort”? Because it won’t cover everything from the start. In order to continue developing it I will need users to… use it… and tell me their opinions regarding what more is needed, report me any errors and… have patience. You don’t really have to be a programmer in order to help me. If you have a cPanel on your server, and are confident that I won’t destroy anything in there, you can give me access to it, and I will install it and make changes in there. If you are a programmer, you can at any time help me with ideas of improving the code. The CRM is copyrighted: that means that, even though you have access to the code, you are not allowed to distribute it. At the end of the story, the code of the CRM will be yours (and yours only) to use if you help me, but you are not allowed to distribute it or sell it.
Well… Even though I get a lot of thanks for what I’ve wrote so far (and even some correction on some faulty code… I’m only human…), there are still people who don’t know how to handle an edit method. So I thought “why not get back to the basics?”. Continue reading
Hmm… I don’t know about you but the two tutorials before this one in the series about migration really scared me with the naming, the controllers, the format of the migration, etc. So why not speed things up? We can do this by using Matches, a CodeIgniter CLI script that helps me speed things up when talking about development in CodeIgniter. I sure hope you didn’t just realize that this is also about promoting my script (which, by the way, it’s open source…). Continue reading
(created at: July 23, 2015; last update: July 23, 2015)
Well… you got here. So I will be assuming that you’ve already followed the first episode of this tutorial (http://avenir.ro/the-migrations-in-codeigniter-or-how-to-have-a-git-for-your-database/) and all went well up until the end. If something went wrong now is the time to tell me (in a comment to to previous tutorial, please).
Now we will go a bit deeper… So… By referring to what we did in the previous tutorial (a table named “users” that has “id”, “username”, “email”, and “password” as fields), we will try to see how we can alter the table the way we want to. Continue reading
(created at: July 22, 2015; last update: July 29, 2015)
Well… this title is a bit misleading, isn’t it? Let’s just start by talking about what is a Git.
Git is some sort of history tracker for your code. That is, whenever you modify something in your code, Git keeps a track of how the code looked before your update, and how it looks after the update. By using it, you and those that work with you can find out how the coding evolved and return to previous versions if something went wrong or want to create a new branch.
The same happens with the migrations, these being related to the database operations. Migrations help you and your team mates keep track of the changes you make to the database tables.
So let’s get to work and see how we can use them. Continue reading
When I work on an existing CodeIgniter project, I usually just copy/paste from previous work: if I need to create a new controller, I simply copy an existing controller that looks similar to what I want to do in the new controller and paste it as the new controller. After that I delete what I don’t need (sometimes that means about 75% of the copied code). Continue reading
Well… it’s been a while since I’ve written on my blog, but at least I came with a new library. This time is about reporting user actions to the developer. So, I named it “Rat” (slang for “A snitch. A person who has tattled on another person”). Continue reading
Well… it’s a huge subject, and I don’t know if I’m the person to ask to regarding this subject, but a reader asked me to approach it. Let’s start with mentioning the features that CodeIgniter offer in this regard. Looking at the manual, we can clearly see that it covers a lot of subjects, including session handling, encryption, security, input, and form validation. Continue reading
Well… it’s a mess, but it works good for now. And I think it’s evolving, one sign of this being the fact that 20 people stared it on the Github repository (https://github.com/avenirer/CodeIgniter-MY_Model).
And now I’ve added a new method to it, namely from_form(), which, by using the form_validation library is taking the data to be inserted from the form. Continue reading