codeigniter

Complicated URL Rewrite. Rewriting index.php, yet wanting to rewrite other.php to load without extension

I have an installation of CodeIgniter. Basically, my directory structure looks like this: | webroot |- ci_apps |-- application1 |-- application2 | ci_system | index.php | testing.php Right now, I can only load one application, which is defined in index.php. What I would like to do is be able to rename index.php to application1.php and...

registration form helps to efficiently register people

hi guys, i want to make a registration form, here i want to user to add some inputs to it, when (s)he register a person, i want to submit it, register the person but i want only to give a alert saying registration successful, in the original registration form some fields are cleared and user can use it to register people again, cycle g...

generating class diagrams for php projects ( codeigniter framework)

hi guys, I'm developing a system using Codeigniter, and it's nearly completion, i didn't went for class diagrams first because it was hard to decide, so i straight away did coding and now i want to draw class diagrams for my project. do you guys know about a tool that i can use for generating class diagrams for my project? ragards, Ra...

Codeigniter objects in views

Hi There, I have started a new project at work today and a fellow developer has asked me to look into changing the way I work and implementing objects into my views to I can do checks within my view using the object. To me this seems wrong, as surely this is the work of the Model and/or controller? Or am I wrong? I assume he is wanting...

Post not working from text input, with CI.

Hi, I'm trying to post some information from a from do so some calculations, however for some reason that data isn't posting. I do a var_dump after I get the info, and it still is blank. Any help would be great. My Controller: <?php class Timevalueshow extends Controller{ function index(){ $this->load->view('Timevaluesho...

Using CodeIgniter built-in form validator class without an actual form submission

Is it possible to validate a set of data (an array) with the form validation class in CodeIdniter? i.e. when there his no form submitted. If it's not possible, what other way could I validate this data using the set of validation rules written in form_validation config file? Thanks in advance! ...

Easy, automated, efficient testing methods/enviroments for Codeigniter and/or CakePHP?

I've been playing with Symfony's testing methods. They give you the results in the command line (for instance, green text is for OK and red text is for NOT OK). It also tells you the cause of the error. Is there something similar to this in CodeIgniter and CakePHP? ...

Accepted Common Pattern for Throttling Login (or other) Requests in a PHP MVC Application

Is there a commonly accepted pattern (or class library, or etc.) for throttling certain form submissions for PHP MVC applications? I'm specifically thinking of the scenario where someone is running a dictionary attack against one of your login forms, and you want to block them after X requests in Y seconds, or if a certain pattern of re...

Programming a Codeigniter Networking Site From Scratch

I have made a social networking site from scratch, but I am looking to develop a site much faster. Needs: 1. eCommerce 2. Profiles 3. Information "nodes" 4. Control over Ajax functions for all of this, maybe a simple API 5. Google Maps 6. Third party posting formats and content processing and display. User must be able to post nodes ...

PHP - open a link, in a new window?

Hi all, Sorry if this is blatantly obvious, but I've Googled this and I seriously cannot find any PHP-only way to do it. Without using an HTML or Javascript - pure PHP only (from a Controller file in a CodeIgniter site) - how can I open a browser window with a link I specify? Is it possible? Thanks! Jack Edit: it seems some people ...

Codeigniter - Application development advice

I am building an application for a client which is a step by step tool that allows the user to enter data for different "sections" that is later output into a html document they can download Im aiming for this application to be very flexible so that any changes from the client dont require a lot of rebuilding. I am using the Codeignite...

CodeIgniter passing a URI as a parameter

I have a script that takes input that looks like this... http://tracking.mysite.com/9/1091/2115/u/http%3A%2F%2Fwww.foobar.com%2Ftestdir%2F But when I do this... die(print_r($this->uri->uri_to_assoc(4),TRUE)); I get this... (probably because CodeIgniter or Apache is decoding the URI embedded within the URI) Array ( [1091] => 2115 [u...

Please help me with file upload with text fields in codeigniter.

Please help me with file upload with text fields details going to database in codeigniter. ( for example i want image name and some another form field going to database and file uploads to server) Also how do i stop the form submission in database upon page resfresh ? ...

How can I SELECT from multiple tables in CodeIgniter

This is really boggling my mind on how to do this in ActiveRecord Queries in CodeIgniter. Maybe I'm over complicating it. I have three tables: (to keep it simple I'll only show the relevant fields) Articles (id, title, text, author) Comments (id, article_id, text, author) Users (user_id, user_type, first_name, last_name, email, passwo...

Codeigniter IonAuth Library - redirect after a group member logins

Hi, I have just used and installed IonAuth on my Codeigniter app. I have setup 3 user groups.. Admin Members Media Partners Would it be possible to redirect each user group to their unique dashboard area rather than the home page? e.g. admins log in and are redirected to => /admin/dashboard/ members log in and are redirected to =>...

Open codeigniter projects with TextWrangler...

Hello there! I have seen some people opening codeigniter as project while I am still opening separate files which is really slow...does anybody know how can I do that with TextWrangler? ...

php show data in textarea after link has been pressed

Hi, How can i display data in a textarea after a link has been pressed? This data is saved in a database. I'm trying to dynamically create a link for the field 'date'. If a user presses the link, the rest of the data for that date should be shown in a textarea. i'm looping through my data like this: foreach($data as $key) { echo ...

Canada Post 'lookup postal code' screen scrape code

I don't want to reinvent the wheel. Is anyone aware of php/curl code to populate address data in Canada Post's 'Find a Postal Code' page http://www.canadapost.ca/cpotools/apps/fpc/personal/findByAdvanced?execution=e1s1 and return the valid postal code. I thought it would make a great address verification routine. ...

PHP mail function + ajax = frustrated me

Hi, I'm using ajax to submit a contact from without reloading the page, it works well for the most part except when I try to send the body of the message nothing gets sent. The to and subject parts work fine, it is just when the body tries to get sent I see nothing. I've tested it running strickly a php function and the body works, ju...

Can't get simplepie to work with Codeigniter on XAMPP / Mac OS X

I'm trying to use SimplePie with Codeigniter but I can't get even the view to display if I try to load the simplepie library. I've downloaded the Haughin CodeIgniter library (http://www.haughin.com/code/simplepie/) and put it in the applications/libraries folder, but nothing works. I have the code below, but it doesn't really matter wh...