codeigniter

Upload two files at once

I am trying to upload two files at once (two file fields) with codeigniters upload class. Despite having provided the field name codeigniter produces errors on the second field. I this a limitation of codeigniter, php or html or am I simply using the class incorectly? $this->upload->do_upload('video_file') $this->upload->do_upload('im...

Paypal integration with php codeigniter...

How to get started with Paypal integration with php codeigniter? Where should i start? Any suggestion? ...

Codeigniter: Using Active Record to search for rows between two dates?

Hi There, Is there a way to use codeigniters active record system to construct a query that will search for rows that fall between two dates (rows has an added field and I want to supply the query a start and end date)? I have checked the documentation knowing that mysql includes a between keywork for such things but can't see anything...

Codeigniter: Submitting Forms

How do I submit a form that can do two different things based on the URI? For example, if the URI contains a string "new" the form will submit differently than it would if "new" were not in the URI. I'm having trouble implementing this, as when a form is submitted, it takes the URI of whatever "form_open" says. ...

CI log_threshold Problem

A PHP Error was encountered Severity: Notice Message: Undefined index: log_threshold Filename: codeigniter/Common.php Line Number: 246 in my CI Project when i work locally it works fine but when i upload it to server it gives this error serverlink http://outshinebd.com/sm/ Please some body help me Thanks ...

Beginner in CodeIgniter

Ok...so I've just started playing around with Codeigniter. I've followed the two tuts on their website and I'm looking for more resources to expand my knowledge. What do you guys recommend? ...

Redirect index.php in CodeIgniter

Hello. I created a CodeIgniter application and now I'm trying to redirect the urls with index.php to urls without it. My current .htaccess is: RewriteEngine On RewriteBase / # Removes trailing slashes (prevents SEO duplicate content issues) RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.+)/$ $1 [L,R=301] # Enforce www # If you h...

Codeigniter only loads the default controller

I am very new to CodeIgniter, but have been programming PHP for ages. I'm writing some software at the moment and using CI for the first time with it. The default controller is set to the first controller I want to action call 'login' (the controller is login.php, the view is login.php. When the form is submitted it calls the 'authent...

Storing multiple inputs with the same name in a CodeIgniter session

I've posted this in the CodeIgniter forum and exhausted the forum search engine as well, so apologies if cross-posting is frowned upon. Essentially, I've got a single input, set up as <input type="text" name="goal">. At a user's request, they may add another goal, which throws a duplicate to the DOM. What I need to do is grab these valu...

URI routing in codeigniter

I have my CI site working well except the URL's are a bit ugly. What approach should I take to enable me to route what is displaying at: http://domain.com/content/index/6/Planning to the url: http://domain.com/Planning I'm confused about whether this should be be done in the routes file or in my .htaccess Thanks ...

Combine friendly url and query string

How to make working such url: example.com/controller/method?id=1&cat=2 ...

User authentication using CodeIgniter

I have a problem creating authentication part for my application. Below is the simplified version of my controllers. The idea is that the MY_controller checks if session with user data exists. If it doesn’t, then redirects to the index page where you have to log in. MY_controller.php class MY_Controller extends Controller { function...

rewrite rule for codeigniter

this is my controller in CI class Welcome extends Controller { function Welcome() { parent::Controller(); } function index() { } function bil($model='') { } I want to do a rewrite so that http://example.com/index.php/welcome/bil/model becomes http://example.com/model in my htaccess I have RewriteBase / Rewrite...

NetBeans, XDebug and CodeIgniter - how?

Does anybody have any (actually working) solution for this? My config is: $config['uri_protocol'] = "PATH_INFO"; $config['permitted_uri_chars'] = ''; $config['enable_query_strings'] = TRUE; ...

How to correct PHP path for codeIgniter plugin?

Hi everyone, I have tried by myself to install Rediska (Redis PHP client) into my codeigniter application, but without any success. I'll get insane amounts of "No such file or directory"-errors when trying to put it into the plugins folder of Codeigniter: Severity: Warning Message: require_once(Rediska/Connection/Exception.ph...

Code Igniter Update Engine

Hey, I am planning to develop a pretty awesome new web app that has a one time fee including free updates of 1.X updates (X being the update). I don't want to get people to download a new version and install it manually as it can be a real pain for some people, also it's bad if there is an important bug that needs fixing and people don...

optimistic and pessimistic locks

Working on my first php/Codeigniter project and I’ve scoured the ‘net for information on locking access to editing data and haven’t found very much information. I expect it to be a fairly regular occurrence for 2 users to attempt to edit the same form simultaneously. My experience (in the stateful world of BBx, filePro, and other RAD...

Comparisons of DotNetNuke with other CMS's/Web Application Frameworks such as WordPress or CodeIgnitor

I have never used DotNetNuke before. I'm thinking about giving it a try to help me build websites, and i'd like to hear from other developers who are in a position to compare DotNetNuke with other CMS's/Web Application Frameworks. ...

purpose of 3rd party mvc ?

ive seen many third party mvcs or frameworks such as codeignitor , cakephp, and so on. what i want to know is what are their purposes? ive created my own framework call it an mvc or framework (in my opinion their all the same). in my framework i have all the classes in one folder called classes and all functions in another. its all organ...

PHP & CodeIgniter Error: open_basedir restriction in effect

open_basedir restriction in effect. File(/var/www/vhosts/domain.com) is not within the allowed path(s): (/var/www/vhosts/domain.com/httpdocs:/tmp) How do I securely fix this? This is preventing me from listing and creating directories outside of the current directory. What I mean by securely is that I don't want to remove a piece of co...