Wiki

Sorted by viewsX
Displaying 261-270 of 774 result(s).

Quick Tip about Pagination Params

Created 5 years ago by Antonio RamirezTips2 comments – viewed 28,293 times – ( +6 ) – version 1.1
Developing custom Grids and ListViews for my new CMS I was facing a small challenge: If I was to update/delete/batch delete items of my Grid, how would I return to the current page view?
tags: Pagination

How to filter data using a dropdown list?

Created 7 years ago by qiangTutorials0 comments – viewed 28,140 times – ( +8 ) – version 1.1
A dropdown list can be used to select a value, based on which we can filter the data to be displayed. For example, the extension page has a dropdown list to filter the displayed extensions according to the selected category.

How to use imagine ( crop, thumb, effects for images ) on Yii2

Created about a year ago by Anas AbuDayahTutorials1 comment – viewed 28,095 times – ( +7 ) – version 2.0
Imagine adds most common image functions and also acts as a wrapper to Imagine image manipulation library.

Extending common classes to allow better customization

Created 5 years ago by Steve FriedlTips0 comments – viewed 27,988 times – ( +44 ) – version 1.1
The two most commonly-used base classes in most Yii applications are CController and CActiveRecord, each extended to your own particular models and controllers.

Serve jQuery and jQuery-UI from Google's CDN

Created 4 years ago by YetiTutorials15 comments – viewed 27,975 times – ( +14 / -1 ) – version 1.1
There are good reasons to use Google's Content Delivery Network (CDN) to serve jQuery and jQuery UI on your site:

Change buttons on our CGridView extending yii

Created 4 years ago by sensorarioTips6 comments – viewed 27,747 times – ( +12 ) – version 1.1
In this tip, I'll help you to change in few second buttons of your CGridView. I hope you like it =).

Adding a date range search for CGridView the easy way

Created 3 years ago by mikewalenTips6 comments – viewed 27,650 times – ( +12 ) – version 1.1
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.

Email template functionality with manage content from database

Created 2 years ago by kiran sharmaTutorials5 comments – viewed 27,540 times – ( +5 / -3 ) – version 1.1
I hadn't specify whole flow as I assume you know yii crud flow well, and Quick understand of my specified admin flow.. :)
tags: email, template

Yii实战中8个必备常用的扩展,模块和

Created 5 years ago by Darwin WenTips2 comments – viewed 27,385 times – ( +2 / -3 ) – version 1.1
在经过畅K网的实战后,总结一下在Yii的项目中会经常用到的组件和一些基本的使用方法,分享给大家,同时也给自己留个备忘录,下面我以代码加图片说明.
tags: module, Widgets

An easy way to use escopes and CActiveDataProvider

Created 5 years ago by Rafael GarciaTips8 comments – viewed 27,229 times – ( +1 / -1 ) – version 1.1
Often used scopes to define criteria in our models. This is a very useful feature as it ensures that in any part of application applying the criteria defined by the scope when called it.