Questions tagged [codeigniter]
CodeIgniter is an open-source PHP web development framework created by EllisLab Inc and it has been adopted by British Columbia Institute of Technology. The framework implements a modified version of the Model-View-Controller design pattern. Use this tag for questions about CodeIgniter classes, methods, functions, syntax and use.
42 questions
-1 votes
1 answer
100 views
Ideas For Sending Messages from Contact Us Page in Website as a Notification Email to an Administrator
What is the best way to send messages from a Contact Us page in a website as a notification email to an administrator ? So far, this is what I did but I feel like this is not really the proper way. I ...
3 votes
2 answers
2k views
Should on each test create and nuke a testing database?
In my case I inherited a poorly engineered code, on that piece of code I have been tasked to increase the code coverage in integration tests. But instead of the usual pattern: Create/Populate a test ...
1 vote
1 answer
1k views
How to setup REST API in Codeigniter 3.0
I am creating the REST API using codeigniter. I downloaded this library and installed in my application. It works great! https://github.com/chriskacerguis/codeigniter-restserver But I have an doubt. ...
3 votes
0 answers
75 views
How to best approach adding a new template to an existing CodeIgniter project?
I am trying to add a new template to an existing CodeIgniter 3.0 project where the original developer had not planned for additional templates/themes. The primary objectives are to: a) make a usable ...
-2 votes
1 answer
8k views
How can I do to use Angular 5/6 for frontend and Codeigniter 3 for backend in the same web app?
I have this project I want to do, using Angular 5/6 for frontend and Codeigniter 3 for backend. The problem is that I don't know how to combine the two, and all the tutorials I looked were using ...
1 vote
0 answers
4k views
Is this Codeigniter HMVC folder structure good practice?
The web App has four distinct user areas. The frontend for people off the street The user area for logged in users A teacher zone An Admin c-panel I am using CodeIgniter with the HMVC extension. Here ...
1 vote
3 answers
309 views
Secure REST APIs
I am building Rest APIs for an iPhone app using the PHP framework CodeIgniter. Please let me know how I can ensure that the API is accessible via the app only. This means that if anyone wants to ...
0 votes
1 answer
386 views
Script to protect code duplication [duplicate]
I want to sell my source code, it's written in PHP and CodeIgniter. And it's actually a CMS for personal website. My intention is to create only one license for one use only, if someone buy this code ...
0 votes
1 answer
5k views
Is it always better to use __construct() in CodeIgniter's Models and Views, even if it's not needed? [closed]
Sometimes we have Models and Controllers where the function __construct() just doesn't do anything, but is sitting on the top of all the methods in CodeIgniter's models and controllers. A lot of ...
0 votes
0 answers
65 views
What happens to super handler with instance variables
What will happen if I extend a class A to a controller B, when A has instance variables (private, protected)? I have a main controller MY_Controller(handler) which has several methods: can_modify (...
-1 votes
1 answer
388 views
What might be a good way to get hands on experience with Object Oriented PHP [closed]
I am a Computer Science student. I took a course on OOP, and I understand the concepts (classes, extending, encapsulation, etc). I'm also a web developer, have been doing it for about three years; I'...
0 votes
1 answer
105 views
Secure Form Submission
This is probably a no brainer, but I've not been able to find an answer that is definitive. I have a Codeigniter site running on Apache with mod_rewrite (to get rid of index.php) and mod_ssl for ...
0 votes
1 answer
5k views
Reporting Solution in PHP / CodeIgniter - Server side logic vs client side
I'm building a report for an end user. They would like to see a list of all widgets... but then also like to see widgets with missing attributes, like missing names, or missing size. So i was ...
0 votes
1 answer
6k views
Slower Ajax Response
Does putting the view logic inside the controller increase page load speed? Because I have a controller action calling a view which I am loading through ajax and I am getting a very slow response. Why ...
0 votes
1 answer
7k views
Making Class Diagram for MVC Pattern Project
I have a question about making a class diagram for an MVC based college senior project. If we have 2 actors of users in my system, lets say Undergrad and Graduate students are the children of ...