Wiki

Sorted by ratingX
Displaying 31-40 of 727 result(s).

Single table inheritance

Created 3 years ago by samdarkHow-tos7 comments – viewed 24,911 times – ( +40 ) – version 1.1
Relational databases do not support inheritance so if we need to represent it, we have to somehow store meta info while keeping performance by minimizing JOINs. One way to solve this problem is using single table inheritance. All fields for the whole class tree are stored in a single table. Class name is stored in the type field of the same table.

Understanding the view rendering flow

Created 3 years ago by dckurushinFAQs15 comments – viewed 146,598 times – ( +91 / -3 ) – version 1.1
There is a lot of confusion surrounding what is happening behind the scenes when you render a view.

Multi level dropdown menu in Bootstrap

Created about a year ago by sefburhanTutorials1 comment – viewed 11,684 times – ( +37 ) – version 1.1
To get multi level dropdown menu of using boostrap extension (http://www.yiiframework.com/extension/bootstrap/) widget TbNavbar just follow steps

Uploading multiple images with CMultiFileUpload

Created 3 years ago by rsinghHow-tos16 comments – viewed 80,276 times – ( +37 ) – version 1.1
"The documentation for CMultiFileUpload isn't clear!"

Actions code reuse with CAction

Created 3 years ago by Antonio RamirezHow-tos13 comments – viewed 31,896 times – ( +36 ) – version 1.1
We all know how good 'gii' automates the code for us and we normally tend to be happy with what that tool offers at the beginning of our Yii learning curve. But as soon as you start working in larger and larger projects, you realize that its code is too repetitive to maintain and having a small pitfall in general actions means to go over and over through them to fix the issues.
tags: CAction, Tutorial

Configuring different sessions for backend and frontend in Yii advanced app

Created 8 months ago by Kartik VHow-tos1 comment – viewed 5,377 times – ( +35 ) – 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.

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

Created 8 months ago by Kartik VTips2 comments – viewed 4,957 times – ( +35 ) – 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.

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

Created 5 years ago by atrandafirTutorials11 comments – viewed 103,862 times – ( +34 ) – version 1.1
This little tutorial explains a way how you can retrieve more parameters from Yii::app()->user by adding a component that extends CWebUser and retrieves the user information from database table named User.

Organize directories for applications with front-end and back-end using WebApplicationEnd behavior

Created 4 years ago by andy_sTutorials23 comments – viewed 83,034 times – ( +34 ) – version 1.1
Previously there was described a way to build an application with front-end and back-end. I would like to continue this theme and suggest another way to organize directories using WebApplicationEnd behavior.

XUpload Workflow

Created 2 years ago by AsgarothTutorials32 comments – viewed 53,007 times – ( +34 ) – version 1.1
This wiki describes a more complex workflow using the XUpload widget