Wiki

Articles in category "tutorials", sorted by commentsX
Displaying 51-60 of 238 result(s).

Send mail using YiiMail extension

Created about a year ago by RKATutorials8 comments – viewed 43,920 times – ( +8 ) – version 1.1
Let me show a simpe example to send mail using YiiMail extension in 5 steps. It also includes any template view if required along with the content.
tags: YiiMail

[Updated] How to create & call custom global function in whole application?

Created 8 months ago by Rohit SutharTutorials8 comments – viewed 4,696 times – ( +5 / -2 ) – version 1.1
In this wiki I will show how to create own custom global function. It may be save the space and reduce the time.

How to log changes of ActiveRecords?

Created 6 years ago by pfthTutorials7 comments – viewed 36,274 times – ( +38 / -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 6 years ago by qiangTutorials7 comments – viewed 44,883 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 63,712 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

How To Customize CMenu Output

Created 4 years ago by AngeloTutorials7 comments – viewed 54,179 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

Creating a Simple CRUD App With Yii2 (Revised 12/20/2013)

Created about a year ago by Charles R. Portwood IITutorials7 comments – viewed 114,948 times – ( +8 / -9 ) – version 2.0
Creating a Simple CRUD App with Yii Framework 2 (Updated December 20th, 2013)
tags: yii2, tutorial, howto

How to upload a file using a model

Created 6 years ago by qiangTutorials6 comments – viewed 347,366 times – ( +84 / -6 ) – version 1.1
First declare an attribute to store the file name in the model class (either a form model or an active record model). Also declare a file validation rule for this attribute to ensure a file is uploaded with specific extension name.
tags: File upload

RBAC Super Simple with Admin and User

Created 3 months ago by evercodeTutorials6 comments – viewed 11,176 times – ( +8 / -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.

Log Activity in DataBase

Created about a year ago by mahdi1986Tutorials6 comments – viewed 11,711 times – ( +8 ) – version 1.1
In this article i will explain how to customize log activity in database, Imaging you need to save IP user, Url request and user_name in database,But table created by default with Yii only have id,level,category,logtime and message