News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHPMaster.com:
Multi-Language Support in CodeIgniter
April 04, 2013 @ 12:52:02

New on PHPMaster.com there's a tutorial by Rakhitha Nimesh about using the multi-language support to CodeIgniter applications. This functionality is included as a default part of the framework using internal language files.

Multi-language support, also known as internationalization, is a key feature of modern web applications. Most of the full-stack PHP frameworks come with multi-language support which enables us to dynamically present our application's interface in different languages without duplicating the existing source code for each language. Today we're going to discuss how we can enable multiple languages using CodeIgniter as well as a few tricks to customize the core functionality.

He shows where in the configuration to set the default language and where you'll need to put the language files so CodeIgniter can find them. Sample code shows how to load in the language files and how to pass certain values out to the view for display. He also includes an example of using CodeIgniter's own hooks system to call the language file load via a "LanguageLoader" class after the controller instance is created.

0 comments voice your opinion now!
codeigniter tutorial multilanguage language file

Link: http://phpmaster.com/multi-language-support-in-codeigniter/

blog comments powered by Disqus

Similar Posts

Fabien Potencier's Blog: Symfony Service Container: Using XML or YAML to describe Services

SitePoint PHP Blog: Markup Separation with Template IT

Venture Skills Blog: Want to create a site like Digg with no programming?

The Bakery: 13 New Tutorials and Articles Posted

WorkingSoftware.com.au: Configuring PHP4 and PHP5 to run concurrently on FreeBSD


Community Events





Don't see your event here?
Let us know!


api framework opinion language podcast release series interview community threedevsandamaybe testing refactor code install introduction laravel developer unittest list wordpress

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework