Wiki

Sorted by viewsX
Displaying 461-470 of 777 result(s).

Managing different Bootstrap form layouts with yii2-field-range extension.

Created 2 years ago by Kartik VHow-tos0 comments – viewed 13,690 times – ( +36 ) – version 2.0
This wiki will explain how you can use the Field range extension with multiple Bootstrap form layouts (vertical or horizontal). You maybe aware, that the yii2-field-range extension enables you to easily setup ActiveField range fields with Bootstrap styling. You basically can setup two attributes joined together like a single field with combined validation error block.

How to create a simple logout link in the view?

Created 2 years ago by mi.sarahHow-tos0 comments – viewed 13,664 times – ( +1 / -3 ) – version 1.1
Here you learn to create and set a simple ahref-link to logout the current user.
tags: Logout, Link, user, URL, views

Using MBMenu and Rights to automatically create menu item for your modules

Created 5 years ago by dinhtrungTips2 comments – viewed 13,528 times – ( +1 / -1 ) – version 1.1
Using Rights generator component, we can easily create a dynamic menu, in which we scan every modules' controllers, to access the index page of them.

Update CGridview row separately using ajax request

Created 2 years ago by Kostas Apazidis (KonApaz)How-tos9 comments – viewed 13,508 times – ( +7 ) – version 1.1
There are cases you want to update a record on CGridview directly

More security in your applications with Yii and PHPIDS

Created 5 years ago by Rafael GarciaHow-tos1 comment – viewed 13,491 times – ( +8 ) – version 1.1
PHPIDS is a well known project that can be found in php-ids.org.
tags: phpids, security

Running applications with Docker

Created about a year ago by schmunkTutorials1 comment – viewed 13,440 times – ( +7 ) – version 2.0
When building PHP web applications you usually have to take care about defining and providing a consistent development and production environment for your team. This includes your application packages, PHP-extensions, database servers and often further components such as a mail server or workers.

三步使用cronjobs自动化去执行Yii 控制台任务

Created 5 years ago by Darwin WenTutorials0 comments – viewed 13,357 times – ( +1 / -4 ) – version 1.1
这篇文章将介绍使用Linux cronjobs去自动化执行Yii Console Application(控制台)任务,像每天晚上执行缓存清理,临时文件清理,发送邮件,网站备份等等,重复的工作都交给服务器后台去完成,Yii本身已经提供了强大的支持,我们所做的工作就很少,当使用yiic webapp 自动生成工程结构时,强大的Yii已经全部帮我们生成好,仅仅只需三步。

Add model validator in Controller

Created about a year ago by Kostas Apazidis (KonApaz)Tips4 comments – viewed 13,160 times – ( +1 / -1 ) – version 1.1
There are cases that model validators should be depended by controller/action and you couldn't manipulate on the model class or using scenarios in easy way

i18n for your model in just 1 line

Created 6 years ago by mintaoTutorials0 comments – viewed 13,136 times – ( +12 ) – version 1.1
A simple trick to get the localized version of a model field is to add this little method to your models.
tags: i18n

Login Form With email or Whatever

Created 2 years ago by nabil abdoualiHow-tos1 comment – viewed 13,107 times – ( -2 ) – version 1.1
Here is my solution to login with email or anything else This update works with database mysql You must generate the user model with GII