Wiki

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

Displaying, sorting and filtering HasMany & ManyMany relations in CGridView

Created 4 years ago by yJeroenTutorials8 comments – viewed 59,340 times – ( +21 / -1 ) – version 1.1
This tutorial gives you multiple options of how to fully implement showing, sorting and filtering related data in gridviews.

Ajax form submiting in Yii

Created 4 years ago by sirin kTutorials8 comments – viewed 131,288 times – ( +13 / -6 ) – version 1.1
hi guys, Here I'm going to give you a working example of ajax form submiting in Yii.

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

Created 2 years ago by Rohit SutharTutorials8 comments – viewed 16,954 times – ( +5 / -3 ) – 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 8 years ago by pfthTutorials7 comments – viewed 47,911 times – ( +41 / -3 ) – 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

Log Activity in DataBase

Created 3 years ago by mahdi1986Tutorials7 comments – viewed 19,091 times – ( +8 / -1 ) – 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

How to customize Yii core messages?

Created 8 years ago by qiangTutorials7 comments – viewed 53,026 times – ( +18 / -1 ) – 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 7 years ago by qiangTutorials7 comments – viewed 77,069 times – ( +23 / -2 ) – 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 6 years ago by AngeloTutorials7 comments – viewed 62,397 times – ( +10 / -1 ) – version 1.1
CMenu comes with a lot of great customization options built in but sometimes you need it to do more.
tags: menu

Handling tabular data loading and validation in Yii 2

Created 3 years ago by Kartik VTutorials7 comments – viewed 37,714 times – ( +44 / -7 ) – version 2.0
How do you read and handle tabular data submission via form in Yii framework 2.0? Sometimes we want to collect user input in a batch mode. That is, the user can enter the information for multiple model instances and submit them all at once. We call this tabular input because the input fields are often presented in an HTML table.

Filter & Sort by Summary Data in GridView Yii 2.0

Created 3 years ago by Kartik VTutorials7 comments – viewed 41,812 times – ( +40 / -5 ) – version 2.0
This wiki explains how to add summary data from related models into your Yii Framework 2.0 gridview with filtering and sorting by the summary columns.