Articles in category "tutorials", sorted by viewsX
Displaying 91-100 of 251 result(s).

Use different environments (development, production, etc) in your app with EASY Environment Class

Created 6 years ago by nancoderTutorials6 comments – viewed 36,375 times – ( +7 ) – version 1.1
Info: An extension was created based on this wiki page. See:

Events explained

Created 4 years ago by pligorTutorials9 comments – viewed 36,169 times – ( +22 / -3 ) – version 1.1
Let's see what exactly are the events in Yii!

Adding login form to each page

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

Filter & Sort by Summary Data in GridView Yii 2.0

Created 2 years ago by Kartik VTutorials7 comments – viewed 35,641 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.

Simple Ajax popup

Created 3 years ago by Rajith RTutorials1 comment – viewed 35,471 times – ( +11 / -13 ) – version 1.1
Simple Ajax popup view with Ajax link

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

Created 3 years ago by softarkTutorials11 comments – viewed 35,397 times – ( +17 ) – 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.

Custom Login Error Messages

Created 3 years ago by whoopassTutorials1 comment – viewed 35,309 times – ( +11 ) – version 1.1
The Yii Framework is very powerful and it provides a lot of functionality right from the pre-built webapp. One of the nice things that is already established for you as a developer is the Login authentication. While the default configuration simply sets it up to run against an array of hard coded usernames and passwords, the Yii Blog Tutorial provides a how to in connecting that login authentication method to a database so you can run your logins against the registered users. Talk about sweet deal.

Add information to Yii::app()->user by extending CWebUser (better version)

Created 6 years ago by emixTutorials5 comments – viewed 35,194 times – ( +5 / -1 ) – version 1.1
I found a better solution.
tags: Yii, user, rbac

How to access a component of a module from within the module itself

Created 7 years ago by OriginalCopyTutorials3 comments – viewed 34,856 times – ( +5 / -1 ) – version 1.1
The Yii documentation states:
tags: module

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

Created 4 years ago by c@cbaTutorials10 comments – viewed 34,819 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.