Wiki

Articles in category "how-tos", sorted by date (updated)X
Displaying 71-80 of 353 result(s).

Multiple files uploader with CMultiFileUpload

Updated about a year ago by Kostas Apazidis (KonApaz)How-tos2 comments – viewed 261,387 times – ( +8 ) – version all
Today I will show you how to handle multiple file upload step by step.

Pjax on ActiveForm and GridView - Yii2

Updated about a year ago by SreenadhHow-tos6 comments – viewed 56,101 times – ( +10 ) – 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.

Building Page Specific Menus using CMenu

Updated about a year ago by mistrybHow-tos1 comment – viewed 11,109 times – version 1.1
The Yii Framework provides a sweet functionality that allows you to easily create page specific menus. What does this mean? This allows you to create one layout or CSS styling for your menu, and when each page is loaded, a new set of menu items is loaded in. This is useful for context specific sidebars within your application.
tags: CMenu

How to Create Pdf Report / Excel Report By Using Parameters (From - Until)

Updated about a year ago by ruderbytesHow-tos2 comments – viewed 23,917 times – ( +2 / -2 ) – version 1.1
Asslamualaikum Wr.Wb Hello I'm Fahmi Azain i will share wiki tutorial about Creating Pdf Report / Excel Report by using Parms / Parameters.

Simple Share Widget for Facebook, twitter and google+

Updated about a year ago by Rohit SutharHow-tos4 comments – viewed 21,787 times – ( +10 ) – version 1.1
This widget will show a Facebook "like" button and "comments" box together with "tweet" button and "google plusone" button on your page.

Yii2: Configuring different sessions for backend and frontend in Yii Advanced Application Template

Updated about a year ago by hrnairHow-tos2 comments – viewed 18,445 times – ( +6 ) – version 2.0
This is as an extension of this wiki by Kartik V which shows to make different enableAutoLogin cookies for frontend and backend.

Upload files in Yii2 with MongoDb and GridFs

Updated about a year ago by skwordenHow-tos3 comments – viewed 16,186 times – ( +8 ) – version 2.0
Uploading files in a webapp can be extremely tricky and sometimes the quickest way to do it is to store the file directly in the webserver or into a DNS (like Amazon S3) and then to save the link and the metadata inside a table in the DB. The thing is that you'll have to deal with file permissions, server storage, file management and so on (which is perfectly fine, by the way).

Use CGridview to sort and filter CSqlDataProvider - when used with UNRELATED tables (or complex queries)

Updated about a year ago by Gerhard LiebenbergHow-tos6 comments – viewed 14,064 times – version 1.1
I have two tables called hospitals and departments. I have a junction table between them which holds the departments in each hospital. But sometimes I need a list of "All hospitals with All possible departments" - regardless of whether they are linked in the junction table or not.

Yii configuration: Dynamic & User dependent

Updated about a year ago by le_topHow-tos0 comments – viewed 4,558 times – ( +1 ) – version 1.1
It is difficult to perform user dependent theming through a general configuration in 'main.php'. This article proposes a method to do so through a Factory that dynamically generates classes to allow delayed resolution of actual user values. This means that you can refer to values that are stored in the database through the CActiveRecord before Yii is actually loaded. The values will be fetched from the database when actually used for the first time, which is after Yii is loaded. Actually, you can use pretty much any method that relies on Yii with this method.

Save and Display Date/Time Fields in different formats in Yii2

Updated about a year ago by Kartik VHow-tos12 comments – viewed 76,968 times – ( +39 ) – version 2.0
You would find having such a need in most Yii Projects. Your database needs a specific format to store date fields, while you may want to display it in different formats to the users on forms and other views.