codeigniter

recaptcha validation not being thrown with codeigniter - however only when uploaded to webhost

Using the following guide online (and the 1.7x fix at the bottom) http://codeigniter.com/forums/viewthread/94299/ Recaptcha validation works well when working locally (tested on both my windows machine and a friends OSX machine) however when uploaded too both my server and his web host the validation routine for the recaptch appears not...

Dropdown select based on database entries

So, I would like a select to auto-populate the dropdown's "Yes" selection, or alternatively, the "No". The returned value from a database query will be used to evaluate which dropdown will be selected. I have thought since it's a true/false auto-population to just write 2 conditionals, but I thought there would be a better (read: less m...

Example code for a comment parser

Anyone know of any sample php (ideally codeigniter) code for parsing user submitted comments. TO remove profanity and HTML tags etc? ...

multidimensional array

Please explain what is the meaning of foreach ($toplist['children'] as $subkey => $subname) and where the children come from. I'm confused. ...

multidimensional array

What is the meaning of the following line: $data[0][$row->parentid]['children'][$row->id] = $row->name From the function: function getCategoriesNav(){ $data = array(); $this->db->select('id,name,parentid'); $this->db->where('status', 'active'); $this->db->orderby('parentid','asc'); $this->db->orderby('name','asc')...

Codeigniter model loading

I have 4 models in codeigniter. I want to load these models in my controller's constructor. Because these have been used many times. Will it effective or make the site slower? ...

multiple applications with codeigniter from same framework directory?

could i use one codeigniter framework directory to create multiple applications? cause it seems that i have to have separate codeigniter folder instances for different applications. i want to be able to adjust some code in one place (classes that are universal) and every application i created with codeigniter will be affected. with yii...

What'd be a good pattern on Doctrine to have multiple languages

Hi! I have this challenge which consist in having a system that offers it's content in multiple languages, however a part of the data contained in the system is not translatable such as dates, ints and such. I mean if I have a content on the following YAML Corporativos: columns: nombre: type: string(254) notnull: tr...

Problem with CodeIgniter. DX_Auth not working when deployed...

So we're currently using CodeIgniter + DataMapper OverZealous Edition + DX Auth. It is working on our local machines, as well as our staging server. As soon as we push to their server though, the login doesn't work at all. Upon further investigation, the data from the form is not coming in to the controller where we do our authenticat...

Facebook API's require_login to work with CodeIgniter

Currently if I use facebook's require_login, it appears to go into an infinite loop of appending to the url. All of my controllers inherit from a FB_Controller that upon construction does: $this->facebook = new Facebook($this->API_KEY, $secret); $this->uid = $this->facebook->require_login(); //Causes infinite loop! I had to explicitly...

how to remove index.php from url in codeigniter ?

how to remove index.php from my url in codeigniter . i remove index.php from my config file and i have run my rewrite_module in apache(2.2.11) and my .htaccess file is RewriteEngine on RewriteCond $1 !^(index\.php|images|captcha|css|js|robots\.txt) RewriteRule ^(.*)$ /index.php/$1 [L] now whenever i click any link it show tha...

CodeIgniter URL rewriting problem

Hey everyone, So basically I have the same problem described here and there. I tried everything described (and much more...), but anyway. Here is my .htaccess : RewriteEngine on RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?/$1 [L] I tried various things, like add...

CodeIgniter: Hooks (pre_controller) loading helpers

I am trying to load the cookie helper in my pre_controller hook for a 'remember me' function on our site. I thought that creating an instance of the CI object with $ci =& get_instance(); would allow me to access to loading helpers but this is not the case. Thoughts? $ci =& get_instance(); $ci->load->helper('cookie'); // does not loa...

Which version of CodeIgniter am I currently using?

Hi all, Quick question. Is there something similar to a phpinfo() that I could spit out for CodeIgniter? Thanks. ...

Installing a CodeIgniter application in a subfolder

I'm trying to install an application made with codeIgniter in a subfolder, so that I can access it using : http://www.domain.com/my_subfolder/ At the root, there's a Wordpress application. I edited the .htaccess of the Wordpress install to let the request go to the folder /my_subfolder/ It's working fine, the only problem I get is that ...

Ajax features broken across browsers (on one machine)

I have built a CMS system using jQuery and PHP, it has worked consistently for multiple users across different platforms over the past year or so. Today as I was presenting it to a potential customer over the phone he ran into a problem in Internet Explorer 8, for some reason he was not able to log in to the system so I created a dirt...

codeigniter category -> subcategory -> subsubcategory system

ok, so i'm very new to codeigniter and from what i have learned by now i can't figure out how can i create a dynamic category -> subcategory -> subsubcategory system. Can you give me some guidelines please...some references, anything to guide me on what should i learn to accomplish that? thanks i should get my URL like this www.site.co...

What's the best library for User Registration / Authentication / Management for CodeIgniter?

I know there's no "best" and it all depends on HOW you use it, but please let me know your experiences with the different ones. Thanks. ...

Looking for open source codeigniter application

I'm new to codeigniter framework. Trying to get over the framework's learning curve. I've followed the nice video tutorial by codeigniter and understood the basics. Currently, I am looking for open source projects written using codeigniter so I can read some real world production code. A good one I found so far is bambooinvoice. Any...

CodeIgniter - Model loaded but can't be used?

Ok. So I am working on a website using CI. Here is the structure of my controller: class MY_Controller extends Controller class User extends MY_Controller class User_Model So, I load the User_Model inside the constructor of the User controller. I know that it is loaded properly because I tried to print something from User_Model and it ...