Wiki

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

Styling Radio Buttons

Created 6 years ago by Steve FriedlTips5 comments – viewed 50,989 times – ( +15 ) – version 1.1
The default behavior with radio button lists is ugly, and I figured out mostly how to style them a coupla different ways. I'll used the blog tutorial example (but with my own posting modes):

Using CAutoComplete to display one value and submit another

Created 7 years ago by luoshibenTutorials5 comments – viewed 50,958 times – ( +8 / -3 ) – version 1.1
Note: CAutoComplete is deprecated since Yii 1.1.3. Consider using CJuiAutoComplete.

Sort and filter a custom or composite CGridView column - that may even contain data from different tables.

Created 3 years ago by Gerhard LiebenbergHow-tos2 comments – viewed 50,490 times – ( +6 / -1 ) – version 1.1
I have a table (account) which contains "General Ledger" accounts. Each account has its own account_description - such as 'inventory', 'sales', etc.

Yii Related Sites

Created 6 years ago by jacmoeOthers4 comments – viewed 50,339 times – ( +34 ) – version 1.1
This is a list of blogs, off-site tutorials and other resources about Yii.

Using CJuiDatePicker for CGridView filter

Created 4 years ago by softarkHow-tos21 comments – viewed 49,970 times – ( +27 ) – version 1.1
We can use a CJuiDatePicker for a CGridView inline filter.

How to use ldap in UserIdentity for authentication

Created 6 years ago by BeerSercTutorials15 comments – viewed 49,784 times – ( +14 ) – version 1.1
Yii does not have an LDAP class itself, but its very easy to implement LDAP in the stock UserIdentity class.

Use shortcut functions to reduce typing

Created 7 years ago by qiangTutorials8 comments – viewed 49,252 times – ( +58 ) – version 1.1
Because Yii intends to be integrated nicely with third-party libraries, it does not define any global functions. Everything in Yii needs to be addressed with full class name or object scopes. For example, to access the current user, we need to use Yii::app()->user; to access application parameters, we need Yii::app()->params['name']; and so on. While editors like textmate can help alleviate the problem of these lengthy typings, it is worthwhile to define global shortcut functions to some commonly used method calls. They will make the application code look cleaner.

Upload image and content using AJAX and Store it in different table

Created 2 years ago by SelvakumarHow-tos1 comment – viewed 49,058 times – ( +3 ) – version 1.1
We all know how to upload the content and images at the same time with refreshing the page. And uploading the images using Ajax we have faced some issues, here i have fixed the issues and both content and photos are uploaded using Ajax. And both content and images are stored in the different tables

Moving project code outside of webroot (plus multiple project support)

Created 6 years ago by Steve FriedlHow-tos8 comments – viewed 49,011 times – ( +22 / -1 ) – version 1.1
Yii's by-default directory organization works well enough, but there are several steps one can take that improve the security and serviceability of the system, especially in the context of multiple Yii projects on the same machine (including multiple versions of the same project).
tags: config, security

How to send emails using SMTP

Created 2 years ago by robregonmHow-tos2 comments – viewed 49,006 times – ( +8 ) – version 2.0
Follow @robregonm
tags: yii2, email, mail, mailer, smtp