Wiki

Sorted by viewsX
Displaying 681-690 of 786 result(s).

How to add an analogue clock widget on your skeleton application

Created 7 years ago by mocapapaTutorials0 comments – viewed 8,340 times – ( +1 / -1 ) – version 1.1
Followings are the simple steps to put an analogue clock widget on your skeleton application that is just generated by yiic.

using editors of yiibooster - fix issues - configuration

Created 4 years ago by Kostas Apazidis (KonApaz)How-tos0 comments – viewed 8,309 times – ( +5 / -1 ) – version 1.1
if you have use the yiibooster extension, you have definitely used the amazing redactor, html5 and ckEditor editors.

Alternative wildcard characters CDbCriteria

Created 5 years ago by maigretHow-tos0 comments – viewed 8,304 times – ( +3 / -1 ) – version 1.1
In SQL, wildcard characters can be used in "LIKE" expressions; the percent sign (%) matches zero or more characters, and underscore (_) a single character. Sometimes users are not familiar with these or they are using different ones like (*) and (+) similar to regular expressions. My colleages do so and then i decided to add this feature by extending CbCriteria. Especially adding a new parameter $wildcard_chars to the method addSearchCondition to replace them if needed with standard SQL characters:

CjuiDatepicker

Created 4 years ago by hiral darjiTips1 comment – viewed 8,275 times – ( +3 / -1 ) – version 1.1
If you have two datepicker in one form and you want that a date of from date shold be minimum date of todate then put following code in Cjuidatepicker widget options array:

Active Record snapshotting (Model data base history)

Created 2 years ago by BizleyTutorials3 comments – viewed 8,272 times – ( +2 / -1 ) – version 1.1
One of the common tasks the web application might be required to perform, especially the app using some kind of a CMS, is to save the history of data changes. Your client for sure will want the answer to this simple question - If I mess this up or delete by accident can we bring it back? Well, DB backup is one thing and quick recovery is another - let's talk about latter one.

Interactive mode command-line command for Yii1

Created about a year ago by TrejderHow-tos0 comments – viewed 8,260 times – ( -1 ) – version 1.1
For one of my projects I needed an interactive console command in Yii 1, i.e. the one that is gathering all information from user in an interactive mode (a serie of questions and answers displayed directly in the console), ignoring command-line arguments at all.

Get notified about the status of a Facebook user in your web app using periodic Ajax calls.

Created 5 years ago by sirin kTips0 comments – viewed 8,234 times – ( +4 / -1 ) – version 1.1
hello, This article is helpful only if you have the following situation: A web app which uses facebook login to login its users and if a user is logged out from his/her facebook account through another browser tab, then your app dont know that he is logged out out or not from his facebook account and he/she will remain as logged in your web application.Its ok if you have no problem with this situation.But if you want to forcefully logout the user from your application if he is logged out from his facebook account means you can try this example.This example uses periodic ajax calls to facebook's graph api to check whether the user is logged in or not.
tags: facebook, user

Widget Personalizado

Created 5 years ago by CálcioTutorials0 comments – viewed 8,232 times – ( +6 / -1 ) – version 1.1
Here I will explain with the clear way and objective an use the widget with CDataProvider.

Making friends' configs, DB credentials and paths with version control

Created 5 years ago by Alexander PalamarchukTips1 comment – viewed 8,197 times – ( +2 / -2 ) – version 1.1
In many cases developers of one project use their own local environments for coding. There may be a common test platform and, of course, production. All these environments usually have different DB credentials and directory structures (first of all, path to YII framework directory). Another feature is debugging. It's convenient to turn it on for local environments, eventually - on the test server and never (generally speaking) - on the production.
tags: config

Multiple CGridView virtual attributes, retrieved from a single model function. Also communication between CGridView columns and rows; and between CGridView and its own parent view.

Created 2 years ago by Gerhard LiebenbergHow-tos3 comments – viewed 8,153 times – ( +1 / -1 ) – version 1.1
We probably have all used a virtual attribute (model function) to retrieve complex or related data for a CGridView column: