Wiki

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

Filter / Search with CListView

Created 5 years ago by JohnPollardHow-tos9 comments – viewed 40,645 times – ( +29 ) – version 1.1
This is what I did. Its the EASIEST solution that I know of. I just reused the advanced search done in CGridView.

How to implement cron in Yii 2

Created 2 years ago by hemcHow-tos10 comments – viewed 40,019 times – ( +10 ) – version 2.0
In advance template there is already a file yii. And there is no need to run it as php, it is Linux script.
tags: cron, yii2, console

Actions code reuse with CAction

Created 5 years ago by Antonio RamirezHow-tos13 comments – viewed 39,811 times – ( +36 ) – version 1.1
We all know how good 'gii' automates the code for us and we normally tend to be happy with what that tool offers at the beginning of our Yii learning curve. But as soon as you start working in larger and larger projects, you realize that its code is too repetitive to maintain and having a small pitfall in general actions means to go over and over through them to fix the issues.
tags: CAction, Tutorial

Creating a jQueryUI Sortable CGridView

Created 5 years ago by blindMoeHow-tos23 comments – viewed 39,776 times – ( +48 / -1 ) – version 1.1
I have had to do this a couple of times now so I figured I would share it with the community. I am going to keep this short because I really hope that you are familiar with jQueryUI's Sortable class before starting this tutorial.

Open bootstrap modal and load content via Ajax

Created 2 years ago by JbalTeroHow-tos1 comment – viewed 39,760 times – ( +3 ) – version 1.1
My goal here is to Open bootstrap modal and load ANY content using ajax response.

yii2-app-advanced on single domain (Apache, Nginx)

Created about a year ago by MadAndHow-tos3 comments – viewed 39,559 times – ( +9 ) – version 2.0
If you develop rather complex applications with Yii2, you might already be familiar with yii2-app-advanced application template. Well, the template is awesome and provides high flexibility regarding code/configuration sharing among parts of an application.

Avoiding rendering entire page when using CGridView and CListView via AJAX

Created 5 years ago by xrxHow-tos17 comments – viewed 39,272 times – ( +25 ) – version 1.1
Since I used CGridView for a first time, I didn't like how it handled operations like sorting, filtering, changing page and etc using AJAX.

[Guide] How to actually separate Frontend (User) and Backend (Admin) on Yii2 Advanced

Created about a year ago by Wade ShulerHow-tos2 comments – viewed 38,637 times – ( +17 / -1 ) – version 2.0
I am writing this guide because I struggled to find a resource that included ALL of the necessary steps to completely separate the frontend from the backend. After reading guides like Configuring different sessions for backend and frontend in yii-advanced-app and yii2 configuring different sessions for backend and frontend in yii advanced application template, there are still steps missing. It is funny how the 2nd one says it is an extension of the first one's article. So I guess, my wiki guide here is yet a 3rd and more complete extension of both of them. I also found a few StackOverflow questions and blog posts regarding this topic. None of them fully worked, and must be missing some magic sauce!

How to use the official Yii installer for Composer (**DEPRECATED**)

Created 3 years ago by br0skHow-tos9 comments – viewed 37,333 times – ( +3 ) – version 1.1
This wiki shall be considered deprecated since the Yii installer for composer has been discontinued.

Integrating HybridAuth directly into Yii without an extension

Created 3 years ago by biz devHow-tos8 comments – viewed 37,300 times – ( +14 ) – version 1.1
This article tries to explain the steps required in integrating the HybridAuth into Yii directly, without using an extension.