Wiki

Articles in category "tutorials", sorted by viewsX
Displaying 61-70 of 203 result(s).

How to hide index.php on nginx

Created 5 years ago by milesTutorials3 comments – viewed 33,217 times – ( +4 ) – version 1.1
For a complete sample Nginx+PHP-FPM config, view this how-to: Nginx & PHP-FPM
tags: URL

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

Created 3 years ago by YetiTutorials1 comment – viewed 32,722 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.

Introducción al control de acceso basado en roles (RBAC)

Created 3 years ago by Juan CalvoTutorials4 comments – viewed 32,423 times – ( +17 / -1 ) – version 1.1
Todos los que hemos empezado a utilizar Yii para crear aplicaciones Web, nos hemos dado de bruces cuando hemos intentado poner a funcionar el RBAC (acceso de control basado en roles).

CGridView: Use special variable $data in the htmlOptions of a column (i.e. evaluate htmlOptions attribute)

Created 2 years ago by c@cbaTutorials3 comments – viewed 32,064 times – ( +25 / -1 ) – version 1.1
    For each column of the CGridView, we can specify name, value, htmlOptions, cssClassExpression etc. In the declarations of the attributes value and cssClassExpression we can use the "special" variable $data, for example like this: 'value'=>'$data->author->username',.     Now we might want to use $data in the declaration of the htmlOptions attribute, which is normally not possible, to generate for example the tag <td id="3" class="name_3">, where 3 is the id of the data model for the current row, i.e. $data->id. That is, we want to be able to use: 'htmlOptions'=>array('id'=>'$data->id', 'class'=>'"name_{$data->id}"')     Here's a way to accomplish this...

How to use ldap in UserIdentity for authentication

Created 4 years ago by BeerSercTutorials14 comments – viewed 31,866 times – ( +11 ) – version 1.1
Yii does not have an LDAP class itself, but its very easy to implement LDAP in the stock UserIdentity class.

Creating Yii applications with composer

Created about a year ago by schmunkTutorials0 comments – viewed 31,133 times – ( +28 ) – version 1.1
Creating Yii applications with composer

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

Created 5 years ago by qiangTutorials3 comments – viewed 31,128 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.

Adding login form to each page

Created 4 years ago by pestaaTutorials5 comments – viewed 29,810 times – ( +3 / -2 ) – version 1.1
After adding proper form to the main layout, like:

How to log changes of ActiveRecords?

Created 5 years ago by pfthTutorials6 comments – viewed 28,606 times – ( +32 / -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

Yii for beginners 2

Created about a year ago by rackyczTutorials2 comments – viewed 28,590 times – ( +27 ) – version 1.1
Hi :-) Is that you again? Welcome !! :-)