Wiki

Sorted by date (updated)X
Displaying 51-60 of 470 result(s).

Send mail using YiiMail extension

Updated 2 months ago by RKATutorials0 comments – viewed 4,311 times – ( +2 )
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

CGridView: Render customized/complex datacolumns

Updated 2 months ago by JobloTips8 comments – viewed 57,890 times – ( +56 )
If you have to display a overview of related data in a table, you can use the CListView, create your view with table/tr/td tags and implement db-queries in the view to display detaildata of the current (master-)record.
tags: CGridView

Using Grunt for deploying client scripts

Updated 2 months ago by Chris83How-tos8 comments – viewed 3,291 times – ( +5 )
For a long time I have struggled to find a suitable tool for doing server tasks such as compiling LESS files, concatenating and minifying of JavaScript files and copying the minified JavaScript files. While most of these tasks can be done with Yii extensions I would still not recommend using them because it requires you to include these extensions in your project, and therefore also deploying them in your production environment.

A simple way to get Yii client-side form validation run when submitting by ajax

Updated 2 months ago by nlacTutorials1 comment – viewed 3,801 times – ( +4 )
A time ago i've met the issue that Yii doesn't run any client-side form validation when submitting the form by CHtml::ajaxSubmitButton. The small javascript below helps to fix it.

CJuiTabs Content

Updated 2 months ago by mbalaTips2 comments – viewed 5,198 times – ( +5 )
When I used CJuiTabs I did something. They are
tags: CJuiTabs

Creating Yii applications with composer

Updated 2 months ago by SleepWalkerTutorials0 comments – viewed 12,472 times – ( +19 )
Creating Yii applications with composer

Yii for beginners

Updated 2 months ago by rackyczTutorials11 comments – viewed 107,115 times – ( +74 )
Hi. This is first article with my Yii tutorial. I had to split it into more articles as there's limited length of texts on Wiki. So once you understand basics, you can read next article here: Yii for beginners 2.

Open Dialog from ajax content

Updated 2 months ago by TouzasHow-tos1 comment – viewed 4,144 times – ( +3 / -1 )
This tutorial will show you how to create Ajax dialog. It's very simple code.

Fixing extensions without modifying their code

Updated 2 months ago by schmunkTips3 comments – viewed 2,203 times – ( +5 )
If you're working a lot with extensions you often stumble upon problems, when you want to include them into your custom web application, like hardcoded or absolute path aliases or classes extended from core application components, which implement addiditonal features.

Adding a date range search for CGridView the easy way

Updated 2 months ago by mikewalenTips2 comments – viewed 3,806 times – ( +6 )
After a lot of research, everything I found on adding date range searching to a CGridView advanced search form seemed to involve adding two new public variables (e.g. $date_from, $date_to), 'safe' rules for the new variables, and a rather chunky if/elseif/else check in the search() method. This probably isn't a hassle for most, but because many of the tables in my database contain two or three and sometimes four date columns (e.g. date_created, date_modified, date_deleted etc.), it meant I was having to add up to eight public variables, the corresponding safe rules, and modifying the search() criteria for each date attribute. So, I set about creating a better way and I thought I'd share my work with the community.