Skip to main content

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.

Filter by
Sorted by
Tagged with
-1 votes
1 answer
108 views

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 ...
Vincent's user avatar
3 votes
2 answers
2k views

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 ...
Dimitrios Desyllas's user avatar
1 vote
1 answer
1k views

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. ...
Soundhar Raj's user avatar
3 votes
0 answers
80 views

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 ...
Billie M's user avatar
  • 131
-2 votes
1 answer
8k views

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 ...
Teddy Baha's user avatar
1 vote
0 answers
4k views

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 ...
Jethro Hazelhurst's user avatar
1 vote
3 answers
315 views

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 ...
Priyanka Agarwal's user avatar
0 votes
1 answer
404 views

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 ...
stormrage's user avatar
  • 109
0 votes
1 answer
5k views

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 ...
Cute Tom's user avatar
0 votes
0 answers
73 views

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 (...
Kaymaz's user avatar
  • 109
-1 votes
1 answer
398 views

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'...
Andres Zapata's user avatar
0 votes
1 answer
111 views

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 ...
Erik's user avatar
  • 3
0 votes
1 answer
5k views

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 ...
dot's user avatar
  • 581
0 votes
1 answer
6k views

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 ...
Mohammed Ashiq's user avatar
0 votes
1 answer
7k views

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 ...
Sobiaholic's user avatar
1 vote
1 answer
193 views

Problem In Codeigniter (PHP framework), I am trying to create a helper function that will inject an ActiveRecord (for MySQL) command into a chain of existing ActiveRecord calls. The reasoning for this ...
xiankai's user avatar
  • 383
1 vote
2 answers
290 views

I'm making a facebook app and I'm trying to follow MVC properly. But I was wondering if I had a class that was a bunch of fql queries (getting data from facebook) should I have keep these in a ...
debuggingFool's user avatar
3 votes
1 answer
2k views

At our work place after hours of coding, testing and QA we have successfully added a couple of software tools in our product line. We specialize in web based software solutions so in order to tap on ...
svg's user avatar
  • 202
4 votes
4 answers
13k views

I am currently develop a website application in codeigniter, and I'd like to do something in PHP / CodeIgniter where I can make a common template for separate sections of the website. I was thinking ...
JaPerk14's user avatar
  • 141
1 vote
3 answers
5k views

I'm doing a PHP application with CodeIgniter and most of my controllers accept record ids as parameters for retrieving purposes. I also pass record ids in my forms action. Like this: www.sample.com/...
whastupduck's user avatar
0 votes
2 answers
383 views

I have an event(s) controller: class Event extends CI_Controller{ public function index(){ } public function foo(){ } //Shouldn't be able to use this method unless logged in ...
Sheldon's user avatar
  • 213
0 votes
1 answer
1k views

What is wrong with using database tables with phpmyadmin or mysql? What are the benefits, if I'll use 'migration'?
Su As's user avatar
  • 11
9 votes
2 answers
9k views

I am using PHP Codeigniter MVC design pattern and I had this project with some sort of specific business processes In my application I will be dealing with 2 existing REST APIs: Google Trello I ...
Ahmed Samy's user avatar
4 votes
1 answer
2k views

I know that N-Tier intended to separate layers on different network but I would like to have the same code separation in codeigniter I got this idea to have Model : for database CRUD - > Data layer ...
Ahmed Samy's user avatar
4 votes
2 answers
4k views

Bit of a workflow question. I'm just staring with MVC and wondered how other people usually work in MVC? The 2 options I see is to code the model and controller completely first and then work on the ...
David's user avatar
  • 735
1 vote
0 answers
634 views

I am thinking of managing a product source I am doing using Codeigniter + HMVC. Right now my folder structure is something like this: application |-modules |-module1 | |--controllers ...
Broncha's user avatar
  • 238
6 votes
1 answer
13k views

I have been going round in circles with this question for days - which is the best PHP framework to use to create a RESTful Web service? I've trawled the web for info and have come across three main ...
GWed's user avatar
  • 3,263
3 votes
1 answer
4k views

CodeIgniter has a very nice feature called a Profiler, which displays information at the foot of a page, information such as GET, Memory, POST data. It also shows database queries and how long they ...
Gortron's user avatar
  • 710
1 vote
1 answer
144 views

I manage a rather large, feature full nightmare of a site which has no end of feature creep settings/options/etc. Up to now its been coded in a procedural/functional way and would like to move to an ...
David's user avatar
  • 735
1 vote
1 answer
2k views

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 ...
msanford's user avatar
  • 750
8 votes
1 answer
11k views

I have been having problems wrapping my brain around how to properly utilize the modular extension for Codeigniter. From what I understand, modules should be entirely independent of one another so I ...
Branden S. Smith's user avatar
7 votes
2 answers
6k views

I am looking into making a correctly laid out MVC Auth/ACL system. I think I want the authentication of a user (and the session handling) to be separate from the ACL system. (I don't know why but this ...
WiseStrawberry's user avatar
-3 votes
2 answers
16k views

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';
Kumar's user avatar
  • 9
14 votes
3 answers
14k views

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 ...
Howard Steff's user avatar
-1 votes
1 answer
856 views

Possible Duplicate: When do I need to use a framework? When should I start learning a PHP Framework I started to learn PHP about four months ago, and I have been writing some applications for ...
John's user avatar
  • 99
4 votes
3 answers
3k views

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. ...
Red's user avatar
  • 169
1 vote
4 answers
3k views

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 - ...
wolf3d's user avatar
  • 21
2 votes
1 answer
3k views

I've been looking for a efficient and secure way of enabling multi-site capabilities to codeigniter for a while. These two(one & two) articles I found pretty interesting, but they don't seem to ...
Brennan McEachran's user avatar
1 vote
1 answer
1k views

So, I've got a mandate to make our aged trillion lined Delphi app web based and it needs to make heavy use of the <canvas> element (HTML5 compatibility doesn't seem to be a big issue since we ...
Peter Turner's user avatar
  • 6,985
2 votes
2 answers
2k views

I am trying to fork an application that is based on CodeIgniter. According to the GoogleCode page, the license is GPLv3. However, examining the license.txt file inside the root directory of the ...
user759147's user avatar
1 vote
1 answer
675 views

I just started using CodeIgniter I'm wondering if anyone knows where I can download pre-made views. For example right now I'm looking for an admin interface. I could write the code myself but I'm ...
Brooke.'s user avatar
  • 157
3 votes
8 answers
3k views

Title is the question. And why I am asking is because from what I read about most PHP frameworks (e.g. Code Igniter, Kohana, Cake, Zend) is that they're ether too complex, or are designed mostly for ...
mvbl fst's user avatar
  • 133