Sorted by ratingX
Displaying 261-270 of 779 result(s).

Building a REST API in Yii2.0

Created 2 years ago by sirin kTutorials6 comments – viewed 87,770 times – ( +9 ) – version 2.0
This is wiki page is useful if you are trying to build a customized REST API in Yii2.0
tags: yii2.0, REST API

Events explained

Created 4 years ago by pligorTutorials9 comments – viewed 36,174 times – ( +22 / -3 ) – version 1.1
Let's see what exactly are the events in Yii!

Activate captcha after unsuccessful login attempts

Created 3 years ago by Kostas Apazidis (KonApaz)How-tos22 comments – viewed 21,524 times – ( +13 / -1 ) – version 1.1
Like gmail, if you have tree or more unsuccessful login attemps a captcha appears

Database driven Cmenu

Created 4 years ago by twisted1919How-tos0 comments – viewed 25,112 times – ( +13 / -1 ) – version 1.1
This is a simple example that will give you a base for designing a database driven menu system that will use CMenu to be rendered.

Setting application parameters dynamically in the back-end

Created 4 years ago by PablovpTutorials6 comments – viewed 37,263 times – ( +13 / -1 ) – version 1.1
I was wondering how to set-up the application parameters in the back-end to use them all around the application without the need of using the database and I came up with this solution, I hope it helps somebody else.

Displaying image in a CGridView column.

Created 4 years ago by sirin kHow-tos5 comments – viewed 60,353 times – ( +13 / -1 ) – version 1.1
This is a simple example of how we can display images in CGridviews.Imagine that you have an image field in your table ie either a location field or a blob type field used to store the images.
tags: CGridView, image

Avoiding duplicate script download when using Ajax calls to render different Views

Created 5 years ago by Antonio RamirezTips6 comments – viewed 22,824 times – ( +13 / -1 ) – version 1.1
I had to partially render two types of views, depending on user selection. Wanted to display a GRID or a LIST style with an event that AJAX'ed new contents and update a layer with them.
tags: tutorial, AJAX, views

Log Activity in DataBase

Created 3 years ago by mahdi1986Tutorials6 comments – viewed 17,300 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

How to filter data using a dropdown list?

Created 7 years ago by qiangTutorials0 comments – viewed 28,569 times – ( +8 ) – version 1.1
A dropdown list can be used to select a value, based on which we can filter the data to be displayed. For example, the extension page has a dropdown list to filter the displayed extensions according to the selected category.

Application-driven database with CDbMigration and an extended CActiveRecord

Created 4 years ago by Tudor IlisoiOthers0 comments – viewed 10,360 times – ( +8 ) – version 1.1
This is an incipient implementation of application-driven database with Yii.
tags: database, model