Wiki

Sorted by viewsX
Displaying 471-480 of 785 result(s).

Create image thumbnails with php_img_preview

Created 4 years ago by Anas AbuDayahTutorials6 comments – viewed 14,571 times – ( +3 ) – version 1.1
This is another way to view images in your application and I like this way because it's simple and I think it's better performance than other.
tags: images, views

adding class and links to Ctreeview node

Created 5 years ago by bingjie2680Tips2 comments – viewed 14,529 times – ( +4 ) – version 1.1
This article will show you how to add links and class to each node in ctreeview. so you can attach events in js by obtaining handler on anchor or class.
tags: ctreeview, link, class

Key web server settings after installing a fresh Yii 2 basic or advanced app

Created 2 years ago by Kartik VTips2 comments – viewed 14,513 times – ( +48 ) – version 2.0
So, you have installed a brand new Yii 2 app (basic) or (advanced). Here are a few tips for Apache web server users to get things running more secure and better with your yii2 app.

How to use bizRules in standard accessControl filter

Created 3 years ago by Maciej LiżewskiHow-tos8 comments – viewed 14,475 times – ( +3 ) – version 1.1
I assume you are familiar with accessControl standard filter. It allows you to separate privileges to run some action from action code itself. There is however one problem with most common usage - you cannot use bizRules, at least based on some parameters passed to 'checkAccess' just because it is hard to pass them in accessRules() result.

checkBox in CGridview

Created 2 years ago by n-rOthers0 comments – viewed 14,471 times – ( +1 ) – version 1.1
some when you need to add checkbox in cgridview and change state of selected rows by additianal parameters. in view :

How to create a wrapper for a js library

Created 5 years ago by zaccariaHow-tos2 comments – viewed 14,471 times – ( +16 / -1 ) – version 1.1
This wiki will explain how to include a javascript library in a widget.
tags: wrapper, js, uploadify

How to pass the third parameter to UserIdentity on login authentication

Created 2 years ago by Rohit SutharHow-tos6 comments – viewed 14,348 times – ( +2 ) – version 1.1
In this wiki I will show how could wo pass the third parameter to UserIdentity on login authenticate. So we can do separate login authentcation from two or more different models from single login form.

How to "masquerade" a non-required form element as 'required' one (in the view only)

Created 4 years ago by BoazHow-tos2 comments – viewed 14,136 times – ( +7 / -1 ) – version 1.1
In a nutshell, the task at hand is to mark (or render) a model attribute in the typical "_form.php" view file with the 'required' red asterisk while this attribute is not marked as required in the model's rule() method. If you're interested only in the solution, jump ahead to the 'solution' section below.

Alternative folder structure for a standard Yii app

Created 3 years ago by TrejderHow-tos4 comments – viewed 14,024 times – ( +5 ) – version 1.1
I found a standard Yii app's protected folder structure nearly perfect. With a few simple moves and a little bit change to the code, I managed to bring it to the level, which I found as fully perfect. I want to share my point of view, in case someone would like to use this structure as well.

Using MBMenu and Rights to automatically create menu item for your modules

Created 5 years ago by dinhtrungTips2 comments – viewed 13,932 times – ( +1 / -1 ) – version 1.1
Using Rights generator component, we can easily create a dynamic menu, in which we scan every modules' controllers, to access the index page of them.