Wiki

Sorted by viewsX
Displaying 351-360 of 786 result(s).

CPhpAuthManager - how it works, and when to use it

Created 6 years ago by dckurushinHow-tos5 comments – viewed 24,365 times – ( +1 / -5 ) – version 1.1
Before reading this article, you should first learn this How to setup RBAC with a php file

Troubleshooting Rights Extension

Created 5 years ago by junxiongTips6 comments – viewed 24,297 times – ( +8 / -1 ) – version 1.1
Rights is one of user interface for Yii's Role Base Access Control extension. It is one of most downloaded extensions in Yii's Web.

Activate captcha after unsuccessful login attempts

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

Send asset folder path to a javascript of a widget

Created 6 years ago by sensorarioTips4 comments – viewed 24,090 times – ( +4 / -1 ) – version 1.1
When you develop a widget, you could need one image that is in the assets folder, you can use it simply within a css. You can load a css or javascript script doing this:

Debugging CActiveRecord failed save() attempts

Created 4 years ago by BoazTips0 comments – viewed 23,835 times – ( +5 / -1 ) – version 1.1
When you're filling up a form of a CActiveRecord (using CActiveForm for example), usually you'll construct your code so that in case of validation error you'll get back the form with the error displayed back to you, typically when CActiveForm.errorSummary() is used. This is how its done by Gii.

Simple Share Widget for Facebook, twitter and google+

Created 5 years ago by softarkHow-tos4 comments – viewed 23,670 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,649 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,597 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,526 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().

Running applications with Docker

Created 2 years ago by schmunkTutorials1 comment – viewed 23,455 times – ( +8 / -1 ) – version 2.0
When building PHP web applications you usually have to take care about defining and providing a consistent development and production environment for your team. This includes your application packages, PHP-extensions, database servers and often further components such as a mail server or workers.