Wiki

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

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

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

Simple Ajax popup

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

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

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

Custom Login Error Messages

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

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

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

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

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

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

Created 2 years ago by Kartik VTutorials1 comment – viewed 34,343 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.

Ajax Login form with validation errors inside jQuery modal dialog

Created 2 years ago by praviTutorials4 comments – viewed 33,877 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,800 times – ( +5 / -1 ) – version 1.1
The Yii documentation states:
tags: module

Drills : Search by a HAS_MANY relation in Yii 2.0

Created about a year ago by softarkTutorials4 comments – viewed 33,500 times – ( +19 ) – version 2.0
This article tries to describe the practical techniques of searching by a HAS_MANY relation using ActiveRecord of Yii 2.0.