Wiki

Sorted by viewsX
Displaying 91-100 of 765 result(s).

Displaying image in a CGridView column.

Created 3 years ago by sirin kHow-tos5 comments – viewed 56,407 times – ( +13 / -1 ) – version 1.1
This is a simple example of how we can display images in CGridviews.Imagine that you have an image field in your table ie either a location field or a blob type field used to store the images.
tags: CGridView, image

Create Excel File with PHPExcel Plugin (Insert Image in Excel Sheet ,Use Template to Create Excel File, Create New Sheet)

Created 2 years ago by codesutraTutorials5 comments – viewed 56,191 times – ( +8 ) – version 1.1
This is an example for how to create Excel File with PHPExcel library.This article is inspired by Wikki Article return by Antonio Ramirez and extension created by marcovtwout for PHPExcel library.

Special $variables in CGridView and CListView

Created 4 years ago by Steve FriedlTips11 comments – viewed 56,164 times – ( +27 / -2 ) – version 1.1
The popular CListView and CGridView widgets each take a data provider and iterate over each data object produced, calling the user's code to render each row one at a time, and most are familiar with the use of the $data variable to represent the current model object or array.

How to display static pages in Yii?

Created 6 years ago by qiangTutorials2 comments – viewed 56,091 times – ( +19 ) – version 1.1
In a Web application, we often need to display pages like "about this site", "legal information", whose content are mostly static. There are several approaches to deal with this kind of pages.
tags: static pages

Send mail using YiiMail extension

Created 2 years ago by RKATutorials9 comments – viewed 55,997 times – ( +8 ) – version 1.1
Let me show a simpe example to send mail using YiiMail extension in 5 steps. It also includes any template view if required along with the content.
tags: YiiMail

Using setFlash for displaying various kind of messages

Created 5 years ago by TrejderHow-tos6 comments – viewed 55,735 times – ( +4 / -5 ) – version 1.1
In this short how-to I will show how to customize setFlash() to display messages (flashes) styled to be success confirmation, error report or notice information. And how to achieve displaying errors in other way.
tags: flash, error, message

Displaying, Sorting and Filtering Model Relations on a GridView

Created about a year ago by Antonio RamirezHow-tos5 comments – viewed 55,569 times – ( +30 / -1 ) – version 2.0
One of the things you will find tricky to implement is the the sorting and filtering of a GridView's column that displays related model data.

Tutorial about How to Integrate Yii2 with fantastic theme AdminLTE

Created about a year ago by ThePr0f3550rHow-tos7 comments – viewed 55,406 times – ( +16 / -1 ) – version 2.0
Yii2 comes with a charming twitter bootstrap version 3. But if it is less, then you can integrate with web templates that you like. One example is wonderfull template "adminLTE"
tags: yii2, theme, adminLTE

"Why do I get a 403 error when trying to use Gii?"

Created 5 years ago by Steve FriedlFAQs3 comments – viewed 54,944 times – ( +7 ) – version 1.1
After enabling the Gii module in your protected/config/main.php file and then try to use it with http://example.com/index.php?r=gii, you get an error:
tags: Gii, config

Yii and XAMPP server on Windows

Created 5 years ago by TrejderTutorials0 comments – viewed 54,870 times – ( +3 ) – version 1.1
This article explains issues about installing XAMPP server package (Lite version) on Windows OS and configuring it for serving webapps written in Yii. Please note, that XAMPP is available for many more platforms and systems. I write about Windows edition as it was the only one tested by me.
tags: windows, xampp, server