Wiki

Sorted by viewsX
Displaying 141-150 of 727 result(s).

How to log changes of ActiveRecords?

Created 5 years ago by pfthTutorials7 comments – viewed 35,471 times – ( +37 / -2 ) – version 1.1
A simple and effective way to keep track what your users are doing within your application is to log their activities related to database modifications. You can log whenever a record was inserted, changed or deleted, and also when and by which user this was done. For a CActiveRecord Model you could use a behavior for this purpose. This way you will be able to add log functionality to ActiveRecords very easily.
tags: Logging

Custom Number Formatting or Decimal Separators and i18n

Created 2 years ago by c@cbaTutorials8 comments – viewed 35,406 times – ( +7 ) – version 1.1
By default, the decimal separator in php (also in mysql) is a dot (.). So when we work with floats in Yii (in calculations, validation, sql statements etc.), the decimal separator has to be a dot. If we want to use for example a comma (,) as the decimal separator, that is if we want to display numbers and enable users to enter numbers with a comma before the decimals, we have to...

Installing WAMP - Apache, MySQL, & PHP on Windows 7

Created 4 years ago by YetiTutorials1 comment – viewed 35,389 times – ( +2 / -1 ) – version 1.1
Installing WAMP on XP was pretty easy; W7 is not so trivial. It's not difficult once you know, but it took me best part of a day to figure out and required gleaning various bits of information from around the web; this tutorial brings it all together in one place to (hopefully) make other peoples lives that bit easier. It does assume that you are reasonably happy configuring Apache, PHP, and MySQL and mainly deals with the W7 quirks.

File uploads in CForm (Form builder)

Created 3 years ago by Luke JurgsHow-tos2 comments – viewed 35,213 times – ( +12 ) – version 1.1
While there is a reasonable amount of documentation regarding CForm (form builder) and file uploads seperately, there really is not any coverage of both in combination.

Custom Autocomplete Display and Value Submission

Created 3 years ago by Antonio RamirezHow-tos5 comments – viewed 35,144 times – ( +13 / -1 ) – version 1.1
How many of us has wondered how to create an autocomplete that will display the names of a related models but do require the id of that selected name to be submitted for model creation/update?

Using Yii with Oracle through PDO

Created 4 years ago by TrejderTips6 comments – viewed 35,087 times – ( +1 ) – version 1.1
When you are developing an webapp with Yii that will be using Oracle RDBMS you should take a look at these issues in which you may run into it.

Common Yii questions

Created 3 years ago by dckurushinFAQs2 comments – viewed 34,971 times – ( +21 ) – version 1.1
Here I suggest to list the most common questions you meet in the forum or freenode irc. Feel free to edit this wiki article, and add another question with answer

How to create/save more Model inputs and make them repeatable with jQuery

Created 5 years ago by qiangTutorials3 comments – viewed 34,849 times – ( +12 ) – version 1.1
This is the first real problem that I encountered using Yii, trying to make a Model input repeatable in the form, validate and save them.

Avoiding rendering entire page when using CGridView and CListView via AJAX

Created 3 years ago by xrxHow-tos17 comments – viewed 34,125 times – ( +23 ) – version 1.1
Since I used CGridView for a first time, I didn't like how it handled operations like sorting, filtering, changing page and etc using AJAX.

Real-time display of server push data using Server-Sent Events (SSE)

Created 2 years ago by bennounaHow-tos16 comments – viewed 34,087 times – ( +12 ) – version 1.1
There are several methods and techniques that come handy in the case you need to call an external resource periodically or if you are waiting for a server push, but I present here an easy and straightforward one using HTML5's Server-Sent Events (SSE).