Posts Tagged ‘codeigniter’

CodeIgniter and SEO

Posted in Snippets Ideas on August 12th, 2009 by admin – Be the first to comment

One of the powerful features of CodeIgniter is its great support for SEO purposes.

Titles, friendly URL are just an example of what you can do with CodeIgniter.

I’d recommend this excellent article from SEO Coding, explaining some CodeIgniter tips for SEO.

In addition, if you are optimizing your application for search engines, then you may be interested in removing index.php from the default installation of CodeIgniter application. You can do that by reading this article.

You also may be interested in reading this forum thread, explaining that controllers do not support dashes, so take that in mind when writing your own controllers in CodeIgniter. However, you can use custom Routes for routing URL friendly controller names to your existing controllers.

At URL Helper, you may find a great helper function for preparing titles for URLs, that’s good to optimize your titles for Search Engine Optimization.


$title = "My SEO title";
$url_title = url_title($title);

will produce this: My-SEO-title


$title = "My SEO title";
$url_title = url_title($title, 'underscore', TRUE);

will produce a different title using underscore and lowercase, like this: my_seo_title

Related searches:

  • codeigniter seo
  • seo codeigniter
  • codeigniter seo friendly url
  • codeigniter d
  • code igniter SEO
  • codeigniter seo title
  • optimize codeigniter
  • seo url extension for codeigniter
  • seo codeigniter title
  • seo with codeigniter

Simple Form Generation in CodeIgniter

Posted in Tutorials on August 2nd, 2009 by admin – 12 Comments

If you are using CodeIgniter, as well as any other PHP framework, you may notice that building CRUD forms is one of the most bother and routine tasks. Probably 80% of general web applications uses CRUD (create/read/update/delete).

In CodeIgniter, you can use any of the form generation libraries.

One of my preferred libraries is Form Generation Library by Frank Michel (see @macigniter’s thread here). It allows you to create clean XHTML forms with CodeIgniter. See demo here.

Using Form Generation Library

So, in order to use this library, you need to download it from here (library files only is enough if you don’t want the entire site structure).

read more »

Related searches:

  • codeigniter crud generator
  • codeigniter form library
  • crud codeigniter 2 0
  • codeigniter form
  • codeigniter 2 crud
  • CRUD codeigniter 2
  • codeigniter form generation
  • CODEIGNITER CRUD
  • codeigniter form generation library
  • crud codeigniter download

Remove index.php from URL in CodeIgniter application

Posted in Tutorials on July 25th, 2009 by admin – 9 Comments

CodeIgniter is designed to be search-engine and human friendly. By default, index.php will be included in the URLs, but it can be easily removed using .htaccess file with some rules.

read more »

Related searches:

  • codeigniter no index php
  • codeigniter htaccess index php iis
  • codeigniter rename index php htaccess
  • how hide index php in url codeigniter
  • inurl=index php?url=

Fix Session problem when upgrading to CI 1.7.1

Posted in Troubleshooting on July 25th, 2009 by admin – Be the first to comment

If you encountered the following problem when upgrading from CodeIgniter 1.6.x to 1.7.x, then here is a workaround.

A PHP Error was encountered

Severity: 4096

Message: Object of class stdClass could not be converted to string

Filename: libraries/Session.php

Line Number: 715

A quick fix can be made by overriding Session class. As exposed at this forum thread, you can create MY_Session.php and place it under your libraries folder (When you place MY_ prefix, the class is automatically loaded).

Related searches:

  • codeigniter 4096 error 1 7 1
  • fixing CI sessions

The importance of a well-documented framework

Posted in Articles on July 25th, 2009 by admin – Be the first to comment

At the time to choose for a framework, evaluating the documentation is a crucial step in that decision.

I remember the time I chose CodeIgniter as framework I researched many of the features compared with other frameworks like Kohana and CakePHP, before taking the final opinion.

Later, I found that the documentation as well as online community were one of the most important decisions when choosing for a framework.

read more »

Related searches:

  • importance documentation framework