Tag: yii2


26

Aug 2016

Display image in grid view YII2

In Yii 2 there are many function including built-in helper for building urls. So we can easily bulld the url to image by path too . To display the image in grid view : To display the image in DetailView :


02

Aug 2016

Install yii2 advanced template using composer in windows

The minimum requirement for YII2 is that your Web server supports PHP 5.4.0. The installation require following steps: 1: If you don’t have composer, download it from https://getcomposer.org/Composer-Setup.exe and execulete in yout root folder like c:\xampp\php\ 2: Go to your project folder like c:\xampp\htdocs\yourprojectfolder 3. After this run php init command it is just copy files from directory /environments to your project


27

Jul 2016

Excel reader in YII2

PHPExcel extension is used to experting and importing Excel to PHP. In this example we are reading Excel data by using this extension and inserting the data in given tables accordingly. PHPExcel extension is used to experting and importing Excel to PHP. In this example we are reading Excel data by using this extension and inserting the data in given tables accordingly. Step 1: Installation...

Read More