Wiki

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

Using search engine and user friendly URLs

Created 6 years ago by qiangTutorials7 comments – viewed 72,949 times – ( +23 / -1 ) – version 1.1
The Definitive Guide introduces the fundamentals of managing URLs in a Yii application. In this tutorial, we introduce a practical technique that can quickly turn your application into using search-engine-friendly URLs.
tags: SEO, URL

Relational Query - Lazy Loading and Eager Loading in Yii 1.1 / with and together

Created 3 years ago by softarkTutorials11 comments – viewed 33,907 times – ( +15 ) – 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.

Secure password hash storage and a Yii helper extension

Created 4 years ago by fsbTutorials5 comments – viewed 30,326 times – ( +15 ) – version 1.1
Obsolete

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

Created 4 years ago by c@cbaTutorials10 comments – viewed 34,154 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 6 years ago by thyseusTutorials9 comments – viewed 47,294 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 5 years ago by ifdatticTutorials6 comments – viewed 64,681 times – ( +15 ) – version 1.1
This is based on this article.

Filter & Sort by Summary Data in GridView Yii 2.0

Created 2 years ago by Kartik VTutorials7 comments – viewed 32,264 times – ( +40 / -4 ) – version 2.0
This wiki explains how to add summary data from related models into your Yii Framework 2.0 gridview with filtering and sorting by the summary columns.

Eclipse PDT - code-hints, references and other goodies

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

How to use ldap in UserIdentity for authentication

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

Module based login

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