Wiki

Sorted by commentsX
Displaying 131-140 of 707 result(s).

How to log changes of ActiveRecords?

Created 5 years ago by pfthTutorials7 comments – viewed 33,582 times – ( +37 / -2 ) – version 1.1
A simple and effective way to keep track what your users are doing within your application is to log their activities related to database modifications. You can log whenever a record was inserted, changed or deleted, and also when and by which user this was done. For a CActiveRecord Model you could use a behavior for this purpose. This way you will be able to add log functionality to ActiveRecords very easily.
tags: Logging

How to customize Yii core messages?

Created 5 years ago by qiangTutorials7 comments – viewed 42,564 times – ( +18 ) – version 1.1
Yii core messages refer to static text strings in the core Yii framework code which are meant to be displayed to end-users (e.g. core exception messages, default validation error messages). Customization of these core messages is needed in two circumstances:

Using search engine and user friendly URLs

Created 5 years ago by qiangTutorials7 comments – viewed 60,428 times – ( +23 / -1 ) – version 1.1
The Definitive Guide introduces the fundamentals of managing URLs in a Yii application. In this tutorial, we introduce a practical technique that can quickly turn your application into using search-engine-friendly URLs.
tags: SEO, URL

Reference: Model rules validation

Created 4 years ago by krillzipHow-tos7 comments – viewed 515,575 times – ( +121 ) – version 1.1
This is a reference to be used for Model rule validation and is compiled from the Yii documentation and code. The purpose is to have all the information gathered in one place instead of scattered. This reference is not an intro. See The Definitive Guide to Yii, Declaring Validation Rules for a tutorial.

Show captcha after <N> unsuccessfull attempts

Created 2 years ago by zitterHow-tos7 comments – viewed 14,448 times – ( +14 / -4 ) – version 1.1
In this mini howto I would like to show how to add a required captcha field in the login form, after a defined number of unsuccessfull attempts. To do this, I will use the blog demo that you have in default Yii download package (path/to/yii/demos/blog).

A Multi-Tenant Strategy using Yii and MySQL

Created 10 months ago by JFReyesHow-tos7 comments – viewed 9,872 times – ( +8 ) – version 1.1
This article describes an implementation of multi-tenancy using Yii and MySQL.

How to create front and admin side login form

Created 2 years ago by vibhaJadwaniHow-tos7 comments – viewed 50,755 times – ( +6 ) – version 1.1
In this WIKI you can learn how to create front and admin login form, using database.

How To Customize CMenu Output

Created 3 years ago by AngeloTutorials7 comments – viewed 51,589 times – ( +10 ) – version 1.1
CMenu comes with a lot of great customization options built in but sometimes you need it to do more.
tags: menu

How to log and debug variables using CWebLogRoute

Created 3 years ago by Antonio RamirezHow-tos7 comments – viewed 48,775 times – ( +18 ) – version 1.1
I have seen a couple of articles about how to integrate external libraries to debug our PHP code (i.e. firePHP) but after you read this article you will realize that there is no need for such libraries when using Yii.
tags: Logging

How to implement cron in Yii 2

Created 6 months ago by hemcHow-tos7 comments – viewed 5,374 times – ( +8 ) – 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