Tagged Questions

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. These are generally regarded as pros of the framework: Small footprint ...

learn more… | top users | synonyms (1)

2
votes
1answer
67 views

Where to put menu items in MVC with PHP ? Model or controller?

This is my first attempt with MVC and I almost get it but a small thing bothers me. I have this controller in CodeIgniter: <?php class Page extends CI_Controller { public function ...
1
vote
1answer
43 views

Codeigniter vote routine review

I have a model that I've created in Codeigniter to represent a vote. The purpose of the site that it's a part of is to allow users to vote on their preferred pronunciation for a given word. The ...
1
vote
1answer
79 views

Handling session resources in MY_Controller with Codeigniter

I've added a function that checks if the user is trying to use/access something which requires a session. I'd love to hear some criticisms of my choice of design. class MY_Controller extends ...
1
vote
1answer
78 views

Updating Old Code Into Code Igniter Use

I used this code on my own site and now trying to transfer it to my new site which uses codeigniter. I'm not sure how I can eliminate some of this code and still maintain its purpose and functionality ...
3
votes
1answer
72 views

Personal Messsage Model

I'm just wondering how my model looks. And by this I mean did I perform the correct tests with the results on each function and use the return at the right points. If you can check all functions. I'm ...
0
votes
3answers
86 views

How to write a cleaner code for this piece of php snippet?

I would like to know if there is a better/shorter/cleaner/resource saving method for this snippet of php code with codeigniter? Thanks. $code = $this->uri->segment(3); if (!$code) { // ...
2
votes
1answer
168 views

Is this good login process in CodeIgniter?

I'm creating my first login process in CodeIgniter. I'm using the simpleloginsecure library for actual session management but I wrote the controller and model myself and I was hoping if you could see ...
1
vote
1answer
78 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
2answers
177 views

Codeigniter Model Optimization

Hey guyz i have created this model for codeigniter. Its working fine but i need to know if it can be more optimized. Sorry about my grammar english is not my native language. class ...
1
vote
2answers
99 views

Mutlilevel page list in CodeIgniter

I'm newly working with CodeIgniter and PHP. I wrote a category structured 'pages' code with listing pages as multilevel list or indented select box. page ...
5
votes
2answers
201 views

Way to optimise this PHP code?

I would like to optimise this code. It seems a bit verbose, particularly with the 'elseif' that doesn't do anything. This code either: takes a plain text password, generates a salt, and returns ...
3
votes
3answers
202 views

Forgotten password logic

I'm just trying to see if anyone disagrees with the way I'm handling my logic for this. Something doesn't feel right with it but I don't quite know what it is. Just wanted to add that the ...
3
votes
3answers
482 views

Login Validation

I'm hoping someone is willing and can take a minute to look over this function and tell me what they think of it, if it can be improved or what not. I tried commenting out what the purpose of ...
0
votes
0answers
105 views

Time Remaining/Since

I'm hoping some is willing and can take a minute to look over this function and tell me what they think of it, if it can be improved or what not. I tried commenting out what the purpose of everything ...
3
votes
3answers
288 views

How to make this code more readable

This is a page that allow user to do register: <?php echo form_open('user/valid_register_page', 'autocomplete="off"');?> <?php ...

1 2
15 30 50 per page