Member Registration
Hi, I want to build model for user registration. User registration shoul go in following order: 1. User enters his data in registration form (form has about 15-20 fields because its for like...
View ArticleWe are looking for Moderators on a Stackoverflow-like Community
We are looking for Moderators to help us bulid a Stackoverflow-like Community for Codeigniter Framework. Participation of earnings (Ads) is posible. PM me. http://codeigniter.ch
View ArticleSession Fallback Hook
Hi all, A lot of my clients who use my CI software regular get session errors because they use webhosts where the default session_save_path() is not writable, doesn't exist or some other BS. It ends up...
View Articledb2 and apostrophe
I´m using Query builder to insert data on DB2 datatable. The problem is that sometimes data cames with an apostrophe, and the escape character used by insert function is "\", but db2 needs another...
View ArticleHow can I get the filenames as well as functions
I have some data on my controller for my permissions controller PHP Code: $data['permissions'] = array();$files = glob(APPPATH . 'controllers/*/*.php');$ignore = array( 'common/login'...
View ArticleRegex in delete_cache
Is there any way of including a regex in delete_cache? I'm guessing not because of the way the filenames are hashed but thought I'd ask anyway. So I'd want to do something like: PHP Code:...
View ArticleSettiing error delimiters in config/form_validation.php
Hi, How to set error delimiters in config/form_validation.php file. I tried this way but it doesnot work PHP Code: $config = array( 'membership_form' => array( 'error_prefix' =>...
View ArticleUsing db->like() breaks when using single quotes?
Hi, I am creating a simple search for a book name. When I use: $book_name = "John's Apples"; $this->db->like("books.name", $book_name)->get("books"); The query fails to find any results. I...
View ArticleUnable to locate the specified class: Session.php
I am upgrading from CI 2.2.0 to the latest version of CI. With the structure current CI systems files structure, I get the above error, which is unable to locate Session.php. How can I solve this...
View ArticleAjax session consistency
Hi everyone! I am trying to make a login using ajax, but i cannot keep the sessions value. I mean, after login i set the session variable using ajax, it shows me that everything is set up, but on the...
View ArticleSession doesn't work after update from 2.2.1 to 3
Hello, I am updating from CI2.2 to CI 3.0 using the tutorial. I have done the following modifications in the config.php $config['sess_cookie_name'] = 'ci_sessions'; $config['sess_expiration'] = 86400;...
View ArticleHow to load response from controller inside a div instead of a separate webpage
So I am validating a form using code igniter which simplifies my code a lot however I am facing a new problem. My form at first gets loaded as a pop up inside a div of view. But when the controller...
View ArticleUsing Hooks
Hi, I'm trying to use my own classes with hooks, so on a fresh install of last CI, I've enabled hooks in config file. Modified hooks.php by adding : PHP Code: $hook['pre_system'][] = array( 'class'...
View ArticleHow can one use multi threading in PHP applications ?
Is there a realistic way of implementing a multi-threaded model in PHP whether truly, or just simulating it. Some time back it was suggested that you could force the operating system to load another...
View ArticleHow to store array values in a foreach loop
Hello everyone, am new to codeignitor, am getting trouble in storing values in array. below is my code PHP Code: $query = $this->db->query('SELECT name FROM grade');$data = array();foreach...
View ArticleVersioning
Hello guys, i have created my project with Codeigniter and i would like to create versioning. The first page of my project is a login form. The users have a version field in my database so depending on...
View ArticleStrange behavior of CSRF tokens with a low csrf_expire (3.1.2)
If you enable CSRF and a user sits on your login page for greater than the value of csrf_expire they will see a 403 forbidden page when they submit the form. Ideally CSRF should be transparent to a...
View ArticleAm I in the right track with CI with this library I made?
Just picked up CI and am part of a team that is doing a custom CMS. I wanna use a menu management plugin i did a while ago but o sure if it is production ready or worth it all? Can someone take a look...
View ArticleCodeIgniter game developing
Hello, I'm trying to make a game and I'm using slim at the moment but after millions of problems I'm thinking of switching to something else like CodeIgniter or Symfony. I have already made almost all...
View ArticleGetting error in Codeigniter 3.1.4
"Unable to locate the specified class: Session.php" Hello, I am getting above error while adding "session" in auto load. I am using hooks. so when I turn off hooks it is working fine. +---- Hook...
View Article