Wiki

Articles in category "how-tos", sorted by viewsX
Displaying 141-150 of 353 result(s).

Enforcing "You must agree" requirements in forms

Created 5 years ago by Steve FriedlHow-tos3 comments – viewed 22,196 times – ( +29 ) – version 1.1
Checkboxes have two possible values, true and false, but some applications require that the user select one particular value before proceeding. Examples might be:
tags: validation

Configuring different sessions for backend and frontend in Yii advanced app

Created 2 years ago by Kartik VHow-tos2 comments – viewed 22,059 times – ( +46 ) – version 2.0
After you have setup your Yii2 advanced application, you now have setup your user authentication for both frontend and backend. However, if you have first logged into frontend, and try to access backend from the same client machine, you see no login screen, but find yourself automatically logged in.

Simple Share Widget for Facebook, twitter and google+

Created 4 years ago by softarkHow-tos4 comments – viewed 21,976 times – ( +10 ) – version 1.1
This widget will show a Facebook "like" button and "comments" box together with "tweet" button and "google plusone" button on your page.

How-To: Create Token Authenticated Web Services

Created 2 years ago by hemcHow-tos1 comment – viewed 21,888 times – ( +8 ) – version 1.1
This article is about implementing authentication to Yii based web services.

A simple go back button widget

Created 3 years ago by CTalaHow-tos7 comments – viewed 21,860 times – ( +8 / -3 ) – version 1.1
We all know that widgets are really useful. We can use the almost everywhere we want, and we can use the same code a lot of times ( Almost OOP ).

How to create a Widget - Recent Comments widget

Created 2 years ago by Nisanth thulasiHow-tos3 comments – viewed 21,840 times – ( +8 ) – version all
Here's a simple way to create a Recent comments showing widget to be used in your templates. The idea is just to highlighting your blog's new comments.

Integrating Wordpress and Yii,Working Out The Details.

Created 4 years ago by drumaddictHow-tos4 comments – viewed 21,703 times – ( +8 ) – version 1.1
This article is based on fr0d0z's article Integrating Wordpress and Yii: still another approach, using Yii as the router/controller and provides more details on how to set up this integration.To be more specific,the idea is not to use any main.php layout in Yii's controllers.This gives the advantage that we do not need to modify any Yii code when we switch a theme in WordPress admin panel,provided we have done a very basic setup which I explain below.
tags: wordpress

Checking for "expired" sessions/logins on the client side

Created 3 years ago by le_topHow-tos0 comments – viewed 21,649 times – ( +6 ) – version 1.1
Getting "Expired token" errors ? Here is a solution to avoid invalid CSRF on POST or ajax requests, or user identity changes.

Activate captcha after unsuccessful login attempts

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

A Multi-Tenant Strategy using Yii and MySQL

Created 2 years ago by JFReyesHow-tos9 comments – viewed 20,788 times – ( +10 ) – version 1.1
This article describes an implementation of multi-tenancy using Yii and MySQL.