Wiki

Sorted by viewsX
Displaying 561-570 of 771 result(s).

How to use yii2-authclient to communicate with Twitter using Single Access Token

Created about a year ago by Antonio RamirezHow-tos1 comment – viewed 9,019 times – ( +3 ) – version 2.0
This tutorial is not about allowing users to sign into your application by using any of the OAuth providers available with the official yii2-authclient extension, it is about how to interact with your Twitter account, the one you set for your Yii2 app to promote your site, using the Single Access Token technique.

Handling recursive deletion in Yii

Created 3 years ago by JamesBarnsleyHow-tos3 comments – viewed 8,984 times – ( +3 ) – version 1.1
I www.jamesbarnsley.com was tasked to find a way to do recursive deletion in Yii. As I asked other developers and looked around the internet the usual answers all came up, use a plugin or use cascade delete at the DB level, but I did not want to do either of these.

View a related field in CGridView

Created about a year ago by rafaelt88Tips1 comment – viewed 8,932 times – ( +6 ) – version 1.1
Generally we need to show one or more fields from a model that is related to another model used in CGridView. For our case we will use two related models, which explain how to use model "A" fields in a CGridView that used model "B".

Serial Numbers (item counts) in GridView

Created 3 years ago by PeRoChAkHow-tos3 comments – viewed 8,924 times – ( +1 ) – version 1.1
Sometime we need to display numbers of items per page with their counting as a serial number.

Using phpseclib with Yii

Created 3 years ago by nkdHow-tos8 comments – viewed 8,917 times – ( +2 ) – version 1.1
I installed phpseclib because I needed to do some AES encryption in my project. After all the hassle of installing php lib, I found out that Yii already has a security module (securityManager). I finally decided to keep using phpseclib because it has one big advantage over Yii securityManager module, it does not requite mcrypt to be installed in the phpserver!
tags: security

XSS safe model content

Created 6 years ago by phirasTutorials2 comments – viewed 8,895 times – ( +4 ) – version 1.1
In this post I am going to describe a solution to make your yii-based web application safe from illegal content injections.

Moving the vendor directory for multiple projects

Created about a year ago by mariosimaremareHow-tos2 comments – viewed 8,874 times – ( +5 / -1 ) – version 2.0
This How-To is useful if you are planning to move the Yii vendor directory outside the default location.

model rules depended by user roles-permissions

Created 2 years ago by Kostas Apazidis (KonApaz)How-tos0 comments – viewed 8,873 times – ( +3 )
This is a reference about model validators and user roles. In many cases we want model validators to applied only for some privileged users or not

Yii 1.1: Cgridview: Use Special Variable $Data In The Options Of A Button (I.e. Evaluate Options Attribute)

Created about a year ago by Louis GacTutorials1 comment – viewed 8,857 times – ( +6 ) – version 1.1
For each column of the CGridView, we can specify customized buttons : Customize Buttons in CGridWiew

Use phing to make Yii application "installable"

Created 4 years ago by sensorarioHow-tos3 comments – viewed 8,783 times – ( +7 ) – version 1.1
To use this "how-to", you need to install phing in your machine.
tags: phing