Wiki

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

Serial Numbers (item counts) in GridView

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

XSS safe model content

Created 6 years ago by phirasTutorials2 comments – viewed 8,827 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.

Using phpseclib with Yii

Created 3 years ago by nkdHow-tos8 comments – viewed 8,806 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

How to get & store Last Login DateTime in database?

Created about a year ago by Rohit SutharHow-tos2 comments – viewed 8,768 times – ( +7 ) – version 1.1
In this wiki I will show how could be store last login date & time in database. First we need a field LastLoginTime (Type must be datetime). this field store a user login detalis (like - Date & Time).

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

Created about a year ago by Antonio RamirezHow-tos1 comment – viewed 8,732 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.

model rules depended by user roles-permissions

Created 2 years ago by Kostas Apazidis (KonApaz)How-tos0 comments – viewed 8,730 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

View a related field in CGridView

Created about a year ago by rafaelt88Tips1 comment – viewed 8,730 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".

Use phing to make Yii application "installable"

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

Functional tests independing from your urlManager settings

Created 5 years ago by RusAlexTips1 comment – viewed 8,704 times – version 1.1
If you are testing your app and use urlManager in your config, sometimes you will find a problem: you want to test your site independing from urlManager settings. in that way you need to extend your WebTestCase class by this method:

Autocomplete in console command

Created 4 years ago by StammTutorials1 comment – viewed 8,684 times – ( +3 ) – version 1.1
Missed of autocomplete in bash console commands yii make me sad.