Sorted by ratingX
Displaying 21-30 of 757 result(s).

Understanding Virtual Attributes and get/set methods

Created 4 years ago by Steve FriedlTutorials19 comments – viewed 115,737 times – ( +78 / -1 ) – version 1.1
When you define or extend a class, you can create class variables and methods in Yii just like you can in any other PHP system:

Behaviors & events

Created 6 years ago by pestaaTutorials10 comments – viewed 110,884 times – ( +50 ) – version 1.1
These features provide endless possibilities and unbelievable flexibility, but as current documentation does not give more than a few examples, it might be difficult to fully understand their internals and requirements.

YiiBoilerplate - Setup a professional project structure in seconds

Created 3 years ago by Antonio RamirezOthers53 comments – viewed 52,800 times – ( +48 ) – version 1.1
tags: directory, config

Creating a dependent dropdown

Created 6 years ago by dalipTutorials53 comments – viewed 286,815 times – ( +111 / -3 ) – version 1.1
Often you'll need a form with two dropdowns, and one dropdown's values will be dependent on the value of the other dropdown. Using Yii's built-in AJAX functionality you can create such a dropdown.

Key web server settings after installing a fresh Yii 2 basic or advanced app

Created about a year ago by Kartik VTips2 comments – viewed 8,452 times – ( +47 ) – version 2.0
So, you have installed a brand new Yii 2 app (basic) or (advanced). Here are a few tips for Apache web server users to get things running more secure and better with your yii2 app.

How to use nested DB transactions (MySQL 5+, PostgreSQL)

Created 6 years ago by mindehHow-tos6 comments – viewed 34,011 times – ( +46 ) – version 1.1
Original source code and idea are from: PHP, PDO & Nested Transactions.

CGridView, CListView and CActiveDataProvider

Created 3 years ago by softarkTutorials21 comments – viewed 100,909 times – ( +46 ) – version 1.1
CGridView (or CListView) together with CActiveDataProvider is a very powerful combination of the built-in tools of Yii. But how do they work together to accomplish their fantastic functions? And what are you expected to do to use them and to customize their behaviors? This article explains the very basics of them.

Configuring different sessions for backend and frontend in Yii advanced app

Created about a year ago by Kartik VHow-tos2 comments – viewed 12,107 times – ( +46 ) – version 2.0
After you have setup your Yii2 advanced application, you now have setup your user authentication for both frontend and backend. However, if you have first logged into frontend, and try to access backend from the same client machine, you see no login screen, but find yourself automatically logged in.

How to generate Yii-like Documentation

Created 4 years ago by AsgarothHow-tos9 comments – viewed 29,095 times – ( +46 ) – version 1.1
Something a good application cant miss is documentation, and what would be better than some nice formatted HTML documentation that can be auto-generated from your code, we know several tools that already do this like phpDocumentor, but today we are introducing Yii Docs Generator which is a modification of the code that Yii itself uses to generate its documentation, thank phpnode for this wonderful work.
tags: doc

Configuring PhpStorm IDE for Yii

Created 4 years ago by samdarkTips20 comments – viewed 96,057 times – ( +66 / -1 ) – version 1.1
In order to be able to get from render or renderPartial to the view, from widget to widget class, from relations to model classes you need to install additional plugin called YiiStorm.
tags: IDE, PhpStorm