codeigniter

Code igniter (PHP framework)

I am thinking of using a PHP framework called Code Igniter. One of the things I am interested in about it is that it's fast, I have however no way to find out how fast and would rather not simply take the word of their website for it. Does anybody know how I can determine it's speed or tell me of a site that can? Thank you. ...

Smarty integration into the Code Igniter framework.

A little background: I've been looking at a few php framework recently and it came down to 2 framework. The zend framework or Code Igniter. I prefer CI because if it's simple design. It's very barebone and just kept it simple. But the thing I didn't like is the weak template system. The template system is important for me because I wil...

Can you access a model from inside another model in CodeIgniter?

I am writing a webapp using CodeIgniter that requires authentication. I created a model which handles all my authentication. However, I can't find a way to access this authentication model from inside another model. Is there a way to access a model from inside another model? or Is there a better way to handle authentication inside Cod...

PHP: Object oriented vs. MVC (CodeIgniter)

We are starting a new app and are debating the benefits of MVC (using CodeIgniter for PHP) vs. using object oriented PHP. I myself only really started using object oriented PHP, and do like it, but should I use that over codeigniter? I see benefits of both. ...

Role Based Access Control

Are there any open source PHP-based role-based access control system that can be used for a codeigniter framework? ...

Table Sorting using CodeIgniter

Hi I've been developing a site over the past few weeks using CodeIgniter as the framework. It's a great framework, however I've been puzzling over the best way to accomplish something which in a lot of other frameworks / languages is relatively simple: sortable tables. CodeIgniter switches off query strings by default, because your URL...

Which PHP framework is closest to Ruby on Rails? CakePHP? CodeIgniter?

I'm going to be switching back and forth between Ruby on Rails projects and some as-of-yet undecided PHP MVC framework projects. Which of the PHP MVC frameworks out there (CakePHP, CodeIgniter?, others?) is most similar to Ruby on Rails in that the most conventions, locations, workflows, etc are preserved? I'm looking for the similar...

Set up Apache for local development/testing?

I've been impressed by the screencasts for Rails that demonstrate the built-in web server and database to allow development and testing to occur on the local machine. How can I get an instance of Apache to execute a project directory as its DocumentRoot, and maybe serve up the files on port 8080 (or something similar)? The reason why I'...

Subfolders in CodeIgniter

Hi all, I'm new to CodeIgniter and I need some help. I'd like to implement the following: View a user's profile via: http://localhost/profile/johndoe ...but administrate a user's profile via: http://localhost/admin/profile/johndoe and then be able to accomplish even further processing via: http://localhost/admin/profile/create ...and...

Lightest possible PHP MVC

I currently use CodeIgniter for an MVC framework in PHP because it's a very bare framework, is there anything even more bare than CodeIgniter? ...

How can I just get the "Year" portion from the output of timespan() in CodeIgniter?

I have a Date of Birth field and trying to use the timespan function to get the age, but returns "28 Years, 2 Months, 2 Weeks, 3 Days, 15 Hours, 16 Minutes". Any idea how I can just get the "28 Years" part? Thanks! ...

Best practices: What's the best way for constructing headers and footers? Call it all from the controller, or include from the view file?

Best practices: What's the best way for constructing headers and footers? Call it all from the controller, or include from the view file? I'm using Codeigniter. What's best practice? Loading all the included view files from the controller, like this? class Page extends Controller { function index() { $data['page_title'...

PHP - CodeIgniter - Usage

I am trying to learn CI to use for a shopping site, but am not having luck with the official doc. Anyone know of stuff that will help? ...

Where should assets go in a code igniter project?

I'm just starting with CI, and am not sure where things such as css, js, images should go. Outside the whole system folder seems ok, but that means everything is seperate. Inside mean s the filepaths are longer and I'm worried that it might mess things up. What's the official line on this? ...

code igniter / cakephp and ms access

I'm trying to use Microsoft Access as the db for a demo project that I'm thinking of doing in either Code Igniter or CakePHP. Ignoring the possibly folly of using MS Access, I haven't been able to figure out precisely how the connection string corresponds to the frameworks' db settings. In straight php, I can use this code to connect to ...

Explain this mod_rewrite rule

Can anyone explain what this mod_rewrite rule is doing? I'm trying to comment the file, but the code seems to state the opposite of what I think it's doing # Enable rewriting of URLs RewriteEngine on # Allow specified file types to be accessed # Thing to test = URL # Condition = not starting with RewriteCond $1 !^(index\.php|images...

How to output data from tables with same column names in CodeIgniter?

This is my query: $query = $this->db->query(' SELECT archives.id, archives.signature, type_of_source.description, media_type.description, origin.description FROM archives, type_of_source, media_type, origin WHERE archives.type_of_source_id = type_of_source.id ...

Is there a way to pass arguments to a query in CodeIgniter *without* using ActiveRecord?

This is what I'd like to do, but it doesn't seem possible: (edit: changed single to double quotes) function get_archives($limit, $offset) { $query = $this->db->query(" SELECT archivalie.id, archivalie.signature, type_of_source.description AS type_of_source_description, med...

How to use CodeIgniter/MVC views inside jQuery ajax tabs?

Trying to make a form wizard with jquery tabs. Is it possible to have each step of the form in a separate view, then load each via jquery tabs' ajax option? When I ajax load just the partial (just the form), it has no way to access the js, css etc. (as there are is no 'header' for the partial file), and it doesn't seem to inherit from t...

Simple Search: passing form variable to URI?

Using Codeigniter. I have a search form on each of my pages. If I use form helper, it defaults to POST. I'd like the search term to show up in the URI: example -- mysite.com/search/KEYWORD I've been on Google for about an hour to no avail -- only articles on how "GET" is basically disabled because of the native URI convention. But se...