How to use Internationalization in Codeigniter

How to use Internationalization in Codeigniter In Language File Create your Label language\english\message_lang.php $lang[‘greet’] = ‘Hi’; language\spanish\message_lang.php $lang[‘greet’] = ‘Holla’; In Controller Action $data[‘lang_greet’] =...

Vlink Interview Questions

1. what is the difference between ng-if and ng-show/ng-hide 2. How to create a custom directive 3. What’s the correct way to communicate between controllers...

Yii Login Script

[php] class UserIdentity extends CUserIdentity { private $_id; public function authenticate() { $record=Student::model()->findByAttributes(array(‘username’=>$this->username)); if($record===null){ $this->errorCode=self::ERROR_USERNAME_INVALID; }else if(!CPasswordHelper::verifyPassword($this->password,$record->password)){ $this->errorCode=self::ERROR_PASSWORD_INVALID; }else{ $this->_id=$record->id_student; $this->errorCode=self::ERROR_NONE; } return !$this->errorCode; }...

Create Yii theme from scratch

Create Yii theme from scratch Configure Yii Themes in your Application   If you are using Theme then you can the below Syntax Yii::app()->theme->baseUrl include...