Wiki

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

Multiple Databases and Multiple Domains

Created 2 years ago by got 2 doodleTutorials2 comments – viewed 20,674 times – ( +12 / -2 )
Add these lines in /config/main.php
tags: database

How to hide index.php on nginx

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

How to use ldap in UserIdentity for authentication

Created 3 years ago by BeerSercTutorials10 comments – viewed 20,065 times – ( +11 )
Yii does not have an LDAP class itself, but its very easy to implement LDAP in the stock UserIdentity class.

XUpload Workflow

Created 10 months ago by AsgarothTutorials18 comments – viewed 20,038 times – ( +27 )
This wiki describes a more complex workflow using the XUpload widget

SEO-conform Multilingual URLs + Language Selector Widget (i18n)

Created about a year ago by c@cbaTutorials35 comments – viewed 19,646 times – ( +26 )
You have a multilingual application, and you want the URL of a page to be different for different languages, to account for SEO. The URL for the contact page for example should look like http://something.com/en/contact in english, and http://something.com/de/contact in german. This tutorial describes how to make it happen. Note that currently selected language is always a part of the URL, and thus available to the application through $_GET. You don't have to use sessions variables to keep track of the language if you don't want to.

Simplified meta tags

Created 3 years ago by Y!!Tutorials1 comment – viewed 18,623 times – ( +13 )
If we want to set meta tags on a per page (controller-action) basis, we may use the clientScript application component.

How to log changes of ActiveRecords?

Created 4 years ago by pfthTutorials5 comments – viewed 18,571 times – ( +27 / -2 )
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

Adding login form to each page

Created 3 years ago by pestaaTutorials5 comments – viewed 17,913 times – ( +3 / -1 )
After adding proper form to the main layout, like:

How to filter data using a dropdown list?

Created 4 years ago by qiangTutorials0 comments – viewed 17,336 times – ( +6 )
A dropdown list can be used to select a value, based on which we can filter the data to be displayed. For example, the extension page has a dropdown list to filter the displayed extensions according to the selected category.

Secure password hash storage and a Yii helper extension

Created about a year ago by fsbTutorials5 comments – viewed 16,793 times – ( +14 )
This article was rewritten as the README of the Randomness GitHub repo