Skip to main content

Questions tagged [codeigniter]

CodeIgniter is an open-source PHP web development framework created by EllisLab Inc. The framework implements the Model-View-Controller design pattern. It is praised for its performance and the quality of its documentation.

Filter by
Sorted by
Tagged with
2 votes
0 answers
65 views

I want to unit test my PHP website, which uses the outdated framework CodeIgniter 3. CodeIgniter 3 uses the MVC pattern, and each page on the website corresponds to a public method in a controller. I ...
RedDragonWebDesign's user avatar
3 votes
2 answers
351 views

I have been working on an online newspaper/blogging application with CodeIgniter 3.1.8 and Twitter Bootstrap 4. The latest feature added is lazy loading of posts. From the Static_model (...
Razvan Zamfir's user avatar
2 votes
2 answers
322 views

I am working on a online newspaper/blogging application with CodeIgniter 3.1.8 and Twig. The application is meant to offer developers and designers the possibility to very easily turn their HTML ...
Razvan Zamfir's user avatar
2 votes
1 answer
742 views

I am working on a online newspaper/blogging application with CodeIgniter 3.1.8 and Twig. The application is meant to offer developers and designers the possibility to very easily turn their HTML ...
Razvan Zamfir's user avatar
2 votes
1 answer
3k views

I am working on an online newspaper/blogging application with CodeIgniter 3.1.8 and Twig. (I use the Twig template engine only for the front-end views). The application, of course, has a registration ...
Razvan Zamfir's user avatar
3 votes
2 answers
361 views

I am working on an online newspaper/blogging application with CodeIgniter 3.1.8 and Twig. I use the Twig template engine for the front-end views. I have put together this simple contact form which ...
Razvan Zamfir's user avatar
1 vote
2 answers
443 views

I am working on a online newspaper/blogging application with CodeIgniter 3.1.8 and Bootstrap 4. I have decided to add themes to it. The application is not HMVC, only MVC. I thought it was a good idea ...
Razvan Zamfir's user avatar
2 votes
1 answer
970 views

I'm using this class as Modal in my CodeIgniter project, as I'm newbie in CI, I wanna know if this has some issues, I'm using this modal for all queries, like I call this with parameters and it ...
Rohit Sahu's user avatar
2 votes
1 answer
596 views

I am working on a basic blog application with Codeigniter 3.1.8 and Bootstrap 4. The application has users (authors) and posts (articles). Every article: has an author, belongs to a category, has a ...
Razvan Zamfir's user avatar
3 votes
2 answers
156 views

I have a PHP CodeIgniter website that collects volunteer registrations. One thing I have noticed is that the controllers are getting really big. The controllers have many methods, and each method is ...
RedDragonWebDesign's user avatar
4 votes
2 answers
439 views

I am working on a blog application with Codeigniter 3.1.8 and AngularJS v1.7.8. The Dashboard of the application is "pure" Codeigniter, with Models, Controllers, and views, while the fronted is made ...
Razvan Zamfir's user avatar
3 votes
2 answers
4k views

I am working on a basic blog application in Codeigniter 3.1.8 and Bootstrap 4. The application allows Registration and Login. I have concerns about the security level of the Registration system I ...
Razvan Zamfir's user avatar
4 votes
1 answer
119 views

I have two tables: tableA aid name age sex ...
Mark's user avatar
  • 41
4 votes
1 answer
367 views

I am working on a basic blog application in Codeigniter 3.1.8 and Bootstrap 4. The application allows Registration (as an author), Login, adding Categories and Posts. I have created an installation ...
Razvan Zamfir's user avatar
3 votes
0 answers
538 views

I'm currently building an application that uses the same models in different controllers. Instead of using the normal way, being loading the model in the controller I've build a "core controller" (<...
Bart's user avatar
  • 31
0 votes
3 answers
1k views

I am working on a basic blog application in Codeigniter 3.1.8 and Bootstrap 4. Several entities are present in all controllers (except Login.php and Register.php): static data, categories and pages. ...
Razvan Zamfir's user avatar
0 votes
1 answer
1k views

Giving the following table: ...
Arun Sharma's user avatar
3 votes
1 answer
140 views

I'm trying to learn Ajax better, and I'm developing an application in CodeIgniter. The following code is working, there are no errors. But for every function and call I think I'm repeating callbacks ...
Gianfabio Pezzolla's user avatar
2 votes
1 answer
1k views

I'm currently working on an approval system right now using PHP (Codeigniter) and I have this method of getting all the requests according to your department group and position depth. The checking of ...
Azis's user avatar
  • 39
2 votes
0 answers
714 views

I've developed a crud "helper" of sorts. Fields/columns are derived from the database and contain everything from the name of the field to the type and size of the field. Part of the system integrates ...
Alex's user avatar
  • 223
2 votes
1 answer
196 views

I'm working on a project and one of my controllers is getting quite large and hard to maintain or add to. I'm having trouble deciding what belongs in the controller and what I can move to the model. ...
rtzcoder's user avatar
1 vote
2 answers
3k views

I need help about CodeIgniter $this->session->set_flashdata array. I think my code is so long, is there any way to simplify my code? Script at my views <...
Zinc's user avatar
  • 113
0 votes
2 answers
4k views

I am trying to use AJAX with CodeIgniter. I have some code, but I am not sure that the code is in proper way / officially correct according to the programming way. All I want is that if someone in the ...
msz's user avatar
  • 109
2 votes
3 answers
183 views

I am creating a website that collects volunteer registrations for events (also called races in the code). I am using PHP CodeIgniter (which follows the MVC model). I created a control panel that has ...
RedDragonWebDesign's user avatar
1 vote
2 answers
2k views

I have a web application which is being used by users from different parts of the world. In order for users of the site, to be able to view the timestamps in their local time, I've a settings page set ...
asprin's user avatar
  • 187
1 vote
1 answer
164 views

I'm super new to CodeIgniter 3 and I'm using it to build a task manager (Claritask.com). Also, I'm just starting to learn how to program, so forgive me beforehand if I'm not making sense and I'll try ...
October Eleven's user avatar
2 votes
2 answers
532 views

In many of my personal projects, I have a login system very similar to the one I am about to describe. I understand how difficult correctly implementing authorization systems can be. I do this as a ...
Goose's user avatar
  • 173
1 vote
1 answer
332 views

I've written a method to round a MySQL Time to two decimal places. Here's some examples: ...
Roshan Bhumbra's user avatar
1 vote
2 answers
314 views

I have a CodeIgniter 3 application. There is some data every page across the application needs to have. This is the system I currently have. Create a model function that will get the data I need <...
Goose's user avatar
  • 173
1 vote
1 answer
388 views

I created a project to better understand CI3, while developing it I tried to introduce localization elements. When I tried to localize the view everything messed up. I made a helper to identify if the ...
germanosk's user avatar
2 votes
1 answer
390 views

In a previous code review, it was strongly suggested that I start using PHP Frameworks to improve security for my websites. I tried Laravel and got stuck due to the steep learning curve. Then I tried ...
RedDragonWebDesign's user avatar
1 vote
1 answer
121 views

I am using codeigniter framework in PHP. In signup form I have: Controller: ...
Ronak Patel's user avatar
3 votes
3 answers
1k views

A couple of weeks ago a company sent me this coding challenge: Please write a PHP web application and send it back to me as zip file: Which waits for a user action, like clicking buttons. According ...
Waqleh's user avatar
  • 139
1 vote
1 answer
118 views

I am doing a php project with the codeigniter framework. In my controller, I have a function that does the following. Uploads an image to the server Add a row to the database. The data would be ...
lightning_missile's user avatar
3 votes
2 answers
1k views

I have created REST API in codeigniter. REST sever created in codeigniter 3.0 and REST client created codeigniter 2.x.x. I have wrote simple code for login. After login client created dashboard page....
Hkachhia's user avatar
  • 131
3 votes
2 answers
487 views

Just wondering if this is okay to do? I have to store some PHP variable values into LocalStorage. ...
Faisal Ashfaq's user avatar
6 votes
2 answers
42k views

I implemented a login system, with session, using CodeIgniter. If the session doesn't exist, redirect to login page. Please review, and let me know what can be done to make it better. view (login.php)...
noushid p's user avatar
  • 161
1 vote
1 answer
2k views

I am wondering if there's a better way to structure my code. I want to keep my controllers thin but at the same time want to keep the model methods flexible. As you can see below, it's almost as if I ...
JC Lee's user avatar
  • 141
8 votes
4 answers
1k views

I am checking over 160,000 records in my database every 24 hours to see if there were changes in the incoming data coming from API and my existing data in the database. If there were I am updating ...
John Senctor's user avatar
3 votes
2 answers
147 views

I've built an appointment manager and would like to notify clients 2 hours ahead of time by via email of their scheduled appointment time. I am storing their scheduled time in a MySQL Datetime field. ...
Kisaragi's user avatar
  • 133
1 vote
1 answer
8k views

I am building an app that currently allows the users to have 3 different roles: Consumer Merchant Admin I have three tables: user (Name, email, password etc with a status=0/1) user_role (The list of ...
JC Lee's user avatar
  • 141
2 votes
2 answers
244 views

I am using below code to recognize which set up I need to use in Codeigniter: ...
Ronak Patel's user avatar
3 votes
0 answers
216 views

I created a library class in CodeIgniter that handles building the HTML body view. This class builds the body, adds content and adds javascript element tags at the end. The body is built by using a ...
Albert Fajarito's user avatar
5 votes
1 answer
1k views

I made an admin login script for my own CMS website that I'm making in Code Igniter 2.2.1 and I'd like to know what are the potential threats or some holes that I might have left open. This is how it ...
Kris's user avatar
  • 61
2 votes
0 answers
2k views

I have a html form with some text input fields and three file upload fields. two of them should be images and one should be a file (pdf). My code is working well but I feel this is not the proper OO ...
Yasitha's user avatar
  • 121
2 votes
1 answer
132 views

I'm working on a light, custom CMS for my site and I am trying to use Ajax calls for most of the server-side interaction. I am still pretty new to web development, so if I am breaking any conventions ...
Wold's user avatar
  • 121
1 vote
1 answer
785 views

Can someone help me refactor this to be more optimized? Performance seems to be very optimal, but I think more can be squeezed from it. ...
Kevin's user avatar
  • 240
6 votes
2 answers
1k views

Can I get some pointers, critiques and/or comments on the following model? (p.s. performance seems great... tested all methods up to 10,000 records) ...
Kevin's user avatar
  • 240
1 vote
1 answer
156 views

I have multiple models which all have the same functions in my framework. I decided to create one "parent" model and all of my other models would extend and inherit its functions like this. My other ...
Madnx's user avatar
  • 207
2 votes
1 answer
4k views

I have a main menu in my application. It loads depending on the role of the user that I validate from a table in my data base, but I have to recreate this menu every time I call a new controller. ...
AndreFontaine's user avatar