I can see many questions regarding configuring the path using Windows OS. I could hardly get the right information about it. The cook book has defined for Linux. So I would like to share my idea on it. To configure the Yii path using Windows OS,
I can see many questions regarding configuring the path using Windows OS. I could hardly get the right information about it. The cook book has defined for Linux. So I would like to share my idea on it. To configure the Yii path using Windows OS,
Simple Yii Script for performing CRUD operations:
In this wiki I will show how could use a TbActiveForm for changing the old password with help of old, new and repeat password features.
In this wiki I will show how to Disallowing login from multi places. User can login or access their account at time, only single place.
In this wiki I will show how to display data from two tables in Bootstrap TbGridView using dataProvider.
这篇文章将介绍使用Linux cronjobs去自动化执行Yii Console Application(控制台)任务,像每天晚上执行缓存清理,临时文件清理,发送邮件,网站备份等等,重复的工作都交给服务器后台去完成,Yii本身已经提供了强大的支持,我们所做的工作就很少,当使用yiic webapp 自动生成工程结构时,强大的Yii已经全部帮我们生成好,仅仅只需三步。
Hi Friends,
In this wiki I will show how could forcing login for all pages and users must be logged in to access almost all of the site’s content.
Translation from .txt file Note:
I wanted to customize the CJuiAutoComplete, so that it displays a thumb image before the label like the one shown in the following image:
This tutorial need extension mdmsoft/yii2-upload-file. Follow the intruction to install.
After installation done, create controller
and action
Create param.php file in protected/config
Yii::app()->params['TEXT_ACTIVE'] = 'Active'; //1 for active
In this wiki I will show how to create own custom global function. It may be save the space and reduce the time.
In Yii, we can define an action class and ask the controller to instantiate it. And we always create ourselves actions class in rootPath/protected/extensions, and the view file we called in the actions class always are located in rootPath/protected/views/ControllerNAME or rootPath/themes/ThemeNAME/ControllerNAME, then when we use the same actions class in different controllers, we have to copy it...
Hi Friends, In this tutorial I write a code display dependent drop-down value using ajax call.
For those who feel, the Controller->accessRules() or RBAC (Role-Based Access Control) is too complicated or doesn't want the username(s) to be hard-coded in accessRules(), here is a very simple, easy-to-implement solution.
Note the tag {{homeUrl}}
will be dynamically replaced at runtime.
If you are coming over to Yii 2 from Yii 1.x, you may have already read this useful wiki for creating dependent dropdowns. You can use a similar approach in Yii 2 to do the same. But if you are looking at a prebuilt solution that helps you manage it easier, read along.
This behavior will automatically set timestamp fields to the row creation and modification times.
login links will be