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
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 ...
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. ...
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 ...
-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 ...
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 ...
4
votes
3
answers
3k
views
Controllers in CodeIgniter
I little bit new to the CodeIgniter framework and this is my first project with this framework. During a chat on StackOverflow somebody said that we need to make controllers tiny as possible.
...
-3
votes
2
answers
16k
views
CodeIgniter routing helping
Can you explain these two lines of code in
applications/config/routes.php file in the CodeIgniter framework?
$route['default_controller'] = 'pages/view';
$route['(:any)'] = 'pages/view/$1';
1
vote
4
answers
3k
views
create site with Codeigniter without database support
What approach could You suggest, If I don't have mysql or other database support on webhost, but I need to store data ( textual information ) for website somewhere. It's informative site for school - ...
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 ...
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 ...
14
votes
3
answers
14k
views
Models per database table?
I am using codeigniter, and have found myself in a similar situation where I have repeated Model methods.
I am creating a Model per Controller. But I would creating a Model per database table be ...
1
vote
1
answer
2k
views
Performing user authentication in a CodeIgniter controller constructor?
In "The Clean Code Talks -- Unit Testing", Miško Hevery mentions that "as little work as possible should be done in constructors [to make classes more easily testable]'. It got me thinking about the ...
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 ...