Wiki

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

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

Created 6 years ago by nancoderTutorials6 comments – viewed 34,660 times – ( +7 ) – version 1.1
Info: An extension was created based on this wiki page. See: http://www.yiiframework.com/extension/yii-environment/

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

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

Simple Ajax popup

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

Custom Login Error Messages

Created 3 years ago by whoopassTutorials1 comment – viewed 34,325 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.

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

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

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

Created 3 years ago by softarkTutorials11 comments – viewed 33,818 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.

Ajax Login form with validation errors inside jQuery modal dialog

Created 2 years ago by praviTutorials4 comments – viewed 33,545 times – ( +6 ) – version 1.1
I would like to share my little experience with Yii to the community in the form of the below small wiki:
tags: ajax login

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

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

Editing, Deleting, and Viewing model data with the yii2-detail-view extension

Created 2 years ago by Kartik VTutorials1 comment – viewed 32,903 times – ( +37 / -1 ) – version 2.0
The yii2-detail-view extension offers you an easy way to EDIT and VIEW your model data, toggle these modes, and adds other features. You can read the extension documentation and/or view a demo of this extension, to understand usage.

Filter & Sort by Summary Data in GridView Yii 2.0

Created 2 years ago by Kartik VTutorials6 comments – viewed 32,071 times – ( +39 / -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.