Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
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.
1
vote
Codeigniter Registration Controller
Direct access to a class file will just result in a blank page as there is no output being produced by it. However, there are better ways of doing what you are trying to do. For instance, you could us …
4
votes
Accepted
User registration / activation process for a website
I know you are specifically asking about just the code between the commented section, but I feel the rest deserves some attention as well. I will try to focus primarily upon what you requested though. …
4
votes
Accepted
Login Controller
if ($this->session->userdata('xtr'))
//instead of
if ($this->session->userdata('xtr') == "yes")
//OR
if ($remember)
//instead of
if ($remember == 1)
Redirects
I'm not familiar with CodeIgniter, but …
3
votes
Submit function For Login
The access parameter in your doccomments is unnecessary. Any application that is sophisticated enough to provide doccomment hints is also sophisticated enough to tell you the access method automatical …
1
vote
An account activation class
Disclaimer: I have never used CodeIgniter, so this will mainly focus on general PHP coding practice.
First of all no comments is better than misleading comments. …
1
vote
Codeigniter active record
I'm not really sure if this question is on topic, but I just started using SQL myself, so here's a chance for me to apply what I've learned. The following is using PDO.
//unspecified placeholder
$sql …
2
votes
CodeIgniter nav/menu insecurities
I'm not familiar with CI, but from what I can tell the concept seems alright. At least, what I am able to glean from your code seems to be. There are some improvements you could make however.
The onl …
2
votes
Implementing pagination with three modules
When you have long argument lists, you might consider compacting the arguments into an array. However, sometimes its not an issue of the size of the argument list, its an issue of the size of the meth …
2
votes
Accepted
Controller for an Administrator User, can this be improved? (codeigniter)
First Joseph's post. I agree with it mostly, but the first comment I'd like to clarify. A PHP opening tag should definitely be the first item on the page to avoid headers being sent prematurely, but t …