Wiki

Sorted by viewsX
Displaying 151-160 of 786 result(s).

How to create nice modal login widget with a CJuiDialog

Created 6 years ago by Igor IvanovicTutorials3 comments – viewed 52,721 times – ( +9 / -2 ) – version 1.1
...folder /protected/components/UserLoginWidget.php... ...extending the CWidget class...
tags: user, login, modal, widget

How to use ldap in UserIdentity for authentication

Created 7 years ago by BeerSercTutorials15 comments – viewed 52,683 times – ( +14 / -1 ) – version 1.1
Yii does not have an LDAP class itself, but its very easy to implement LDAP in the stock UserIdentity class.

Use application on production/development environment without making changes

Created 5 years ago by ifdatticTips3 comments – viewed 52,659 times – ( +8 / -2 ) – version 1.1
I like programing on my localhost, however it really bugged me to make changes to index.php & config files on my production server. After combining all available wiki articles on this topic and some trial and error this is what I use for my applications so I could just upload it to production server and it will work without any changes.

How to use imagine ( crop, thumb, effects for images ) on Yii2

Created 3 years ago by Anas AbuDayahTutorials3 comments – viewed 52,570 times – ( +8 / -1 ) – version 2.0
Imagine adds most common image functions and also acts as a wrapper to Imagine image manipulation library.

Using CJuiDatePicker for CGridView filter

Created 5 years ago by softarkHow-tos21 comments – viewed 52,268 times – ( +27 / -1 ) – version 1.1
We can use a CJuiDatePicker for a CGridView inline filter.

Customizing the CMenu Widget

Created 4 years ago by mistrybTips1 comment – viewed 51,661 times – ( +5 / -2 ) – version 1.1
The CMenu class provides some useful features for generating menus in your web application.

Using Yii with Oracle through PDO

Created 6 years ago by TrejderTips6 comments – viewed 51,521 times – ( +1 / -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.

using multiple radio button

Created 5 years ago by francis jaTips4 comments – viewed 51,196 times – ( +9 / -2 ) – version 1.1
When we use multiple radio buttons with same name in Yii many people have the problem on getting the value of the selected radiobutton. The radioButtonList can be used for that, but if we need to use radioButton itself to place the button any where in a view, we need to include one more parameter in htmloption array().

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

Created 6 years ago by Steve FriedlHow-tos8 comments – viewed 50,930 times – ( +22 / -2 ) – 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

Use shortcut functions to reduce typing

Created 8 years ago by qiangTutorials8 comments – viewed 50,795 times – ( +58 / -1 ) – 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.