Wiki

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

Manage (Target) Language in Multilingual Applications + A Language Selector Widget (i18n)

Created 3 years ago by c@cbaTutorials10 comments – viewed 28,206 times – ( +15 ) – version 1.1
In case of a multilingual application, one might consider it a reasonable approach to store the preferred language of the user in a session variable, and after that, every time a page is requested, to check this session variable and render the page in the indicated language. This tutorial shows a Yii-way of doing this. We implement an event handler for the onBeginRequest event; as the name of the event suggests, this event handler will be called at the beginning of each request, so its a good place to check whether a language is provided (via post, session or cookie) and set the application language accordingly. We also implement a simple Language-Selector Widget, which can render the language options as ajax-links or as a drop-down list.

Creating a database-driven hierarchical Structure combined with CMenu and superfish

Created 4 years ago by thyseusTutorials9 comments – viewed 41,596 times – ( +15 ) – version 1.1
Note: Please also take a look at the newer EMenu extension. This works even better that the deprecated CDropDownMenu!
tags: menu

Update/delete model with CJuiDialog (works in CGridView)

Created 3 years ago by ifdatticTutorials6 comments – viewed 56,495 times – ( +15 ) – version 1.1
This is based on this article.

Eclipse PDT - code-hints, references and other goodies

Created 5 years ago by mindehTutorials2 comments – viewed 26,353 times – ( +14 ) – version 1.1
Since PHP is dynamically typed language, the way IDE may help you is limited.
tags: IDE

Relational Query - Lazy Loading and Eager Loading / with and together

Created about a year ago by softarkTutorials10 comments – viewed 19,731 times – ( +14 ) – version 1.1
It's well known that there are Lazy Loading approach and Eager Loading approach in the relational query. But it's important to note that you should distinguish 2 different modes in the Eager Loading in Yii 1.1.x.

Module based login

Created 4 years ago by suriyansureshTutorials6 comments – viewed 48,275 times – ( +14 ) – version 1.1
If you want to add module based login to a site without using RBAC, please follow these guidelines.

Adding search to Yii blog example (using Zend Lucene)

Created 3 years ago by dckurushinTutorials21 comments – viewed 61,246 times – ( +33 / -3 ) – version 1.1
For this tutorial I will add a search to the blog demo. The search would be based on Zend Lucene.

Simplified meta tags

Created 5 years ago by Y!!Tutorials4 comments – viewed 31,598 times – ( +13 ) – version 1.1
If we want to set meta tags on a per page (controller-action) basis, we may use the clientScript application component.

How to use ldap in UserIdentity for authentication

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

Filter & Sort by calculated/related fields in GridView Yii 2.0

Created 10 months ago by Kartik VTutorials20 comments – viewed 22,118 times – ( +36 / -4 ) – version 2.0
This wiki explains how to add calculated fields into your Yii Framework 2.0 gridview with filtering and sorting.