Login   Register  
PHP Classes
elePHPant
Icontem

File: usage_example.txt

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of solomongaby  >  GSD_Controller_Plugin_Language  >  usage_example.txt  >  Download  
File: usage_example.txt
Role: Auxiliary data
Content type: text/plain
Description: show how you can use translation in your controllers and views
Class: GSD_Controller_Plugin_Language
Handle multi-language URLs with Zend Framework
Author: By
Last change:
Date: 2008-12-30 00:59
Size: 211 bytes
 

Contents

Class file image Download
Using translate in you controllers

$this->view->title = $this->view->translate('default-register-index-title');

Using translate in you views
<?php echo $this->translate('default-register-index-title'); ?>