Wiki

Sorted by commentsX
Displaying 151-160 of 766 result(s).

Using jQuery UI 1.8.10 themes with Yii 1.1.6

Created 4 years ago by a110yTips7 comments – viewed 16,607 times – ( +2 ) – version 1.1
When using the latest stable jQuery UI themes (1.8.10) with Yii 1.1.6 (which uses 1.8.6) the widgets don't appear (they're invisible but they're there). In order to make them visible you need to change the following line:

Tutorial about How to Integrate Yii2 with fantastic theme AdminLTE

Created about a year ago by ThePr0f3550rHow-tos7 comments – viewed 55,851 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

Using cache in CActiveDataProvider

Created 4 years ago by StammTips7 comments – viewed 18,457 times – ( +21 ) – version 1.1
First param in CActiveDataProvider could be a string with model name or instance of class. So, you may use CActiveRecord::cache() for cache, but you need set third param to 2, because you should cache 2 queries: counting and get data.

Creating a Simple CRUD App With Yii2 (Revised 12/20/2013)

Created 2 years ago by Charles R. Portwood IITutorials7 comments – viewed 161,038 times – ( +10 / -10 ) – version 2.0
Creating a Simple CRUD App with Yii Framework 2 (Updated December 20th, 2013)
tags: yii2, tutorial, howto

How to upload a file using a model

Created 7 years ago by qiangTutorials6 comments – viewed 394,078 times – ( +86 / -6 ) – version 1.1
First declare an attribute to store the file name in the model class (either a form model or an active record model). Also declare a file validation rule for this attribute to ensure a file is uploaded with specific extension name.
tags: File upload

Pjax on ActiveForm and GridView - Yii2

Created about a year ago by SreenadhHow-tos6 comments – viewed 38,434 times – ( +8 ) – version 2.0
Here is a example on how to use Pjax with GridView (yii\grid\GridView) and ActiveForm (yii\widgets\ActiveForm) widgets in Yii2.

multiple CActiveDataProviders in one CGridView

Created 2 years ago by Kostas Apazidis (KonApaz)How-tos6 comments – viewed 17,553 times – ( +7 / -1 ) – version 1.1
There is a few cases that you want more of one CActiveDataProvider displayed in one CGrideView How to do that?

Popup AJAX DialogBox without any extension

Created 2 years ago by Kostas Apazidis (KonApaz)How-tos6 comments – viewed 17,190 times – ( +8 / -1 )
In this wiki I explain how to show a default popup dialogbox (like Gii does) using an existing module.

How to avoid rendering entire page on AJAX call for CGridView and CListView

Created 2 years ago by VINAY Kr. SHARMAHow-tos6 comments – viewed 20,890 times – ( +5 )
CGridView and CListView are great widget to populate records and also provides features like ajax update, column sort, search, drop-down filter, ajax content load and many more...

Log Activity in DataBase

Created 2 years ago by mahdi1986Tutorials6 comments – viewed 15,147 times – ( +8 ) – version 1.1
In this article i will explain how to customize log activity in database, Imaging you need to save IP user, Url request and user_name in database,But table created by default with Yii only have id,level,category,logtime and message