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.

learn more… | top users | synonyms (1)

3
votes
1answer
522 views

Codeigniter active record - prepared statement assistance

I understand that I should use prepared statements to prevent sql injection. Unfortunately, having read the php docs on the matter I am none the wiser. Here is one of my simple active record sql ...
0
votes
1answer
46 views

CodeIgniter Model - Correct/Secure Usage?

I'm working on my first large CodeIgniter project (and one of my first MVC projects), and I want to get some feedback on the techniques I've used so far in one of my models. Here's the code: <?php ...
1
vote
1answer
61 views

A good example of codeigniter MVC?

What is the difference between this two way and Which one is best? What do you suggest? 1. Use of query (db) directly in CI_Controller. as: $id = $this->input->post('id'); $query = ...
0
votes
2answers
183 views

Submit function For Login

Trying to see if anyone sees any potential flaws with this submit function. One concern is this line: /* Not sure if this is needed if ($this->session->userdata('failed_logins')) { // User ...
2
votes
1answer
185 views

How to make this PHP code more object oriented and less scripted

I am utilizing CodeIgniter's Pagination Class to implement pagination in the project. In this project, there are 3 modules: Event,Business & Parts. Each Module has same "view" for pagination. I ...
1
vote
0answers
45 views

More than 4000 chars gives string literal too long error on oracle [closed]

I am currently using oci8 driver on Codeigniter. While updating a field that will have more than 4000 chars, I was given a error : ORA-01704: string literal too long So, going through few blogs, I ...
0
votes
1answer
80 views

is magento architecture useful for more smaller applications?

Hi I realy like how magento creates it's view. It's not standart MVC like Codeigneter or Ruby on Rails. Magento has Block and Template. So I have created an architecture like this. I have layouts ...
3
votes
2answers
141 views

Am I using MVC Codeigniter correctly?

I'm currently writing Report's system. I have about 20 different users with different access. Am I doing it correctly? Can I improve my style of writing this code? All my reports based on the same ...
1
vote
1answer
71 views

Getting personal messages function

I'm trying to develop a better function and curious what others would suggest I do to it so that its not so robust and still accomplish what I need. A couple of things I need to account for is when I ...
2
votes
1answer
289 views

CodeIgniter nav/menu insecurities

I more or less asked the same questions on stackoverflow.com, but maybe this is more for this forum. I have a hard time getting to grips with how to implement a top navigation (common for the whole ...
2
votes
1answer
126 views

Controller method optimization

I have the following function for validating users facebook information against the rules setup in the database for users. Its working fine but i need to know if it can be more optimized. Few things ...
2
votes
1answer
53 views

Is having preset queries prone for disaster?

Edit Just did some further reading around the website and have come to the conclusion that this method leads to Leaky Abstraction, sorry for wasting peoples time. Time to head back to the drawing ...
0
votes
0answers
114 views

Replace string with Module callback, {{widget.social.facebook}} Codeigniter HMVC

I'm looking to insert some similar tags like {{widget.social.facebook}} into an instance of ckeditor. The plan is to run them through either Modules::run() or widgets::run() method. My initial ...
1
vote
0answers
48 views

Is this a sensible form iteration pattern for a web form with an unknown number of fields?

I'm designing a small intranet-based time-tracking web app that accepts an unknown number of data "rows" which each consist of 7 form fields. Rows can by dynamically added by the browser. Can I do ...
12
votes
3answers
5k views

CodeIgniter Active Record Subqueries

I use CodeIgniter at work, and one of our model files had a lot of subqueries in it. I originally had to manually write each subquery, and wondered if I could use active records instead. So, to make ...

1 2 3
15 30 50 per page