How to make CodeIgniter file upload class accept all extensions?
Currently if I supply no extensions to the class it allows no extensions. I would like to allow all extensions. Is there any way to do this without hacking the core? ...
Currently if I supply no extensions to the class it allows no extensions. I would like to allow all extensions. Is there any way to do this without hacking the core? ...
I'm trying to use codeigniter and xdebug. When I go to http://localhost/redux/index.php, it works. When I go to http://localhost/redux/index.php?XDEBUG_SESSION_START=ECLIPSE_DBGP&KEY=124466969367132, I get a 404 error. Eclipse lanches Firefox with the second URL, the wrong URL, then I have to change it. I'm using enable_query_strings...
I'm working in the Codeigniter framework, and want to send requests to my controller/model that have several variables involved. Is there a difference between passing those variables via a hidden form (i.e. using "post") as opposed to passing them through URIs (e.g. 'travel/$month/$day/')? What about security concerns? e.g. URIs: http:...
Hi, First off I am pretty new to this whole thing so feel free to tell me to bugger off. I am trying to load the views for a set of 'modules' for a user who has selected any number of available 'modules'. I can get the name of the module (or any column) from the database and load->view($name . '_view'); but can't seem to figure a way ...
On a PHP & CodeIgniter-based web site, users can earn reputation for various actions, not unlike Stack Overflow. Every time reputation is awarded, a new entry is created in a MySQL table with the user_id, action being rewarded, and value of that bunch of points (e.g. 10 reputation). At the same time, a field in a users table, reputation_...
What's the ideal way of deploying CodeIgniter projects (or any PHP projects for that matter) from your local machines to the live site? I've been using subversion for checking out and updating the code from live sites for quite some time now. But there are others who say that this practice is not good since you do not need the svn meta...
Using CodeIgniter's Active Record class and MySQL, I have a table of posts with user_id and various other fields, and I want to count how many posts each user has made. I could get rows where user_id = $whatever and count the number of results, but I'd have to loop through every user_id and use that count_all_results() query over and ove...
I need to pass an encoded string to a codeigniter controller. Ex: DOSOMETHING/Coldplay/Fix+You/273/X+%26+Y/ My problem is with the percent symbol, has disallowed characters. I tried to change the config file with: $config['permitted_uri_chars'] = 'a-z 0-9~%.:_-+\%'; The + is ok but the % is not valid. Can you help me to change this r...
Has anyone found a way to integrate OpenFlashChart v2 with CodeIgniter? The problem is that the author separated everything in classes and multiple files and you can't create a helper or plugin for CI. One way to do it using versions prior to 2 is here: link I haven't found a way to work with version 2 of the chart, has anyone of you...
I just started on CodeIgniter a few hours ago, I ran into some problems. I am trying to call a function which is currently in a controller named 'Admin'. I am trying to access this from a helper. How would I do this? I have tried almost everything but nothing seems to be working and outputs: Fatal error: Call to a member function login...
I'm trying to create a site with CodeIgniter. I will have multiple domains served from this server, and what I am trying to do is to separate the HTTP requests for www.example1.com from the ones for www.example2.com and then redirect them to the their correct application folders. Say this is my directory structure: system application...
I'm fairly new to MVC framework and found codeigniter recently. I'm still learning everyday but one problem is it's template engine. What is the best way to create it's template? CakePHP comes with it's own template library so how to the same with codeigniter? ...
I am using CodeIgniter to write a application. I need to create something like this: - I will have: - my_config.php config_production.php config_development.php Now, my_config.php will be autoloaded. From there, if it is production server config_production.php will be loaded. Else config_development.php will be loaded. how should...
Hello, I'm testing codeigniter, trying to create a simple blog. The video tutorial on codeigniter' site is nice, but very incomplete. I'm not too familiar with the MVC structure, and am wondering exactly what goes in a "model". For instance, I'm currently doing the "admin" part of the site : add a new entry, delete, modify, and so on....
Hello all, I have asked this question before (didn't get a definite answer) and have read a lot of similar questions to this and I apologize to those getting tired of these sort of questions. :) I have a fully working PHP web project using my half pint PHP skills in a procedural way. But its not up to scratch at all. It can break at an...
I have a problem trying to get CodeIgniter and jQuery to produce ajax functionality. I have been coding all day, learning jQuery, and generally getting my butt kicked. Let me break down the situation, and hopefully someone will have the courage to help me. I have a trouble ticket system that displays many tickets on a page... each ticke...
I have some very large processing being done in a php application. I'd like to use one of those scripts/programs which analyze the execution and show you which line of code, or which function, took how much time processing, etc. Any recommendations? I'm using the codeigniter php framework so anything that works with it out of the box...
I am trying to build a multi-app CodeIgniter site, where the assets for all apps will be stored in a single folder called “assets.” Inside this single folder, each app would have its own asset folder. So, if this is my root directory… user_guide apps_folder (this is where all my application folders live) system assets ...the ass...
I am developing an custom API for a web solution and I am using the MVC design pattern. I have a modules folder so that I can swap in and out modules and also work on sections without disrupting working tested code. My only issue now is that I want to load CSS anywhere and have my application properly import the css file in the head ta...
Hello, I am trying to use a third party script and extract the logged in users userid. I am aware the CodeIgniter uses some sort of encrypted sessions. Can you please suggest how to get the userid. A simple $_SESSION does not seem to work. I am basically running a separate script and i just want the session details i.e. the userid. But...