Wiki

Articles in category "how-tos", sorted by viewsX
Displaying 151-160 of 355 result(s).

Integrating Wordpress and Yii,Working Out The Details.

Created 5 years ago by drumaddictHow-tos4 comments – viewed 24,058 times – ( +8 / -1 ) – 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

Activate captcha after unsuccessful login attempts

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

Simple Share Widget for Facebook, twitter and google+

Created 5 years ago by softarkHow-tos4 comments – viewed 23,475 times – ( +10 / -1 ) – 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 render a view in Fancybox using ajax

Created 5 years ago by rix.rix.How-tos1 comment – viewed 23,415 times – ( +7 / -1 ) – version 1.1
Sometimes you want to render a view in Fancybox.
tags: fancybox, ajax, views

Cron Jobs in Yii

Created 4 years ago by aarondfrancisHow-tos1 comment – viewed 23,202 times – ( +4 / -1 ) – version 1.1
I've gotten Yii running cron jobs, and wanted to explain briefly how I did it.

defaultScope

Created 4 years ago by Gerhard LiebenbergHow-tos4 comments – viewed 23,071 times – ( +5 / -2 ) – version 1.1
This example includes a composite condition as well as an empty condition - as if you bypass or disable defaultScope without using resetScope().

multiple CActiveDataProviders in one CGridView

Created 4 years ago by Kostas Apazidis (KonApaz)How-tos7 comments – viewed 22,760 times – ( +8 / -2 ) – version 1.1
There is a few cases that you want more of one CActiveDataProvider displayed in one CGrideView How to do that?

Image resize on the fly

Created 4 years ago by TpoxaHow-tos4 comments – viewed 22,576 times – ( +4 / -1 ) – version 1.1
For example have folder with image resources which are public accessible
tags: yii, image-resize

"safe" and "unsafe" Model validators (massive assignments)

Created 4 years ago by Kostas Apazidis (KonApaz)How-tos4 comments – viewed 22,426 times – ( +4 / -7 ) – version 1.1
Ok, it is a little bit difficult to full understanding the unsafe validator.

Show captcha after <N> unsuccessfull attempts

Created 5 years ago by zitterHow-tos7 comments – viewed 22,337 times – ( +15 / -6 ) – version 1.1
In this mini howto I would like to show how to add a required captcha field in the login form, after a defined number of unsuccessfull attempts. To do this, I will use the blog demo that you have in default Yii download package (path/to/yii/demos/blog).