Sorted by commentsX
Displaying 91-100 of 761 result(s).

Creating and updating model and its related models in one form, inc. image

Created 3 years ago by BoazHow-tos10 comments – viewed 70,158 times – ( +6 / -3 ) – version 1.1
We start slowly and simple...

How to implement cron in Yii 2

Created about a year ago by hemcHow-tos10 comments – viewed 23,497 times – ( +9 ) – 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

Single sign on across multiple subdomains

Created 4 years ago by ianarĂ©How-tos10 comments – viewed 37,552 times – ( +32 ) – version 1.1
This had me stumped for a while so I figured it would be nice to share here to avoid others the grief.

Using Yii with Nginx and PHP-FPM

Created 4 years ago by LericHow-tos10 comments – viewed 51,186 times – ( +18 ) – version 1.1
This config is built on an Ubuntu 11.04 server. Software is nginx, php-fpm (php5-fpm). For performance, it's recommended to run php-fpm in SOCKET mode, instead of accessing via IP:PORT. That is the method shown below.

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

Created about a year ago by Kartik VHow-tos10 comments – viewed 43,520 times – ( +37 ) – 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.

An Easy Solution for Dependent dropDownList Using AJAX

Created 2 years ago by mrsTips10 comments – viewed 68,444 times – ( +14 / -1 ) – version 1.1
Sometimes new Yii guys face problem to manage dependent dropDownList using AJAX. I am going to discuss an easy solution about this issue.

Creating a CSS Driven Drop Down Menu using CMenu

Created 4 years ago by blindMoeHow-tos10 comments – viewed 77,667 times – ( +22 / -1 ) – version 1.1
CMenu offers great functionality and the ability to customize just about every aspect of the output. There are many times when I need to create a drop down menu or simply modify the look to make the designers happy. Because this seems to be a common task for me, I figured I would share my code to create a very simple drop down menu that other people could use.

RBAC Super Simple with Admin and User

Created about a year ago by evercodeTutorials9 comments – viewed 30,568 times – ( +12 / -3 ) – version 2.0
One of the common requests I see in the forum is how to implement RBAC. While you can implement Yii 2's built-in RBAC, that might be too much for developers who are just starting with Yii 2 or have simpler needs. Sometimes you are looking for a fast solution and just want two flavors, user and admin. And even if you will eventually need more, you can use these methods as a starting point for developing your own features or move on to Yii 2's RBAC.

How to automate timestamps in ActiveRecord models

Created 6 years ago by dalipTutorials9 comments – viewed 129,492 times – ( +31 ) – version 1.1
There are many ways to automate the setting of timestamps in yii ActiveRecord models. Three are presented here:

Using counters with ActiveRecord

Created 3 years ago by davi_alexandreTips9 comments – viewed 24,785 times – ( +14 / -1 ) – version 1.1
Let's say, for example, that you are developing a blog or some kind of CMS and you want to track the number of times each post was viewed (maybe to show a list of the most viewed ones).