Freelancer Community Network
Reminder: Internet Explorer 6 or below are NOT supported.
Multiplayer Connection Tutorial
Collapse/Expand Random Image
Collapse/Expand Login


Remember me

Lost Password?

Register now!
Collapse/Expand Chat
Collapse/Expand Who's Online
60 user(s) are online (43 user(s) are browsing Forum)

Members: 0
Guests: 60

Collapse/Expand Donations
Monthly costs: -30€
Income (ads): +5€
Donations (last month): +165€

Current balance: 105€
(last updated 02/2021)

Please make a donation if you want to help keeping The-Starport online:

Collapse/Expand Links
Collapse/Expand Advertisement
There are currently 87 users playing Freelancer on 41 servers.
February. 26, 2021

Browsing this Thread:   1 Anonymous Users

 Bottom   Previous Topic   Next Topic  Register To Post

Which Yii Extension to use?
Just popping in
2012/11/6 16:04
Registered Users
Posts: 3
Hi guys! Has anyone used Yii extensions like Backvendor?
Need to know your opinion!

Posted on: 2012/11/7 9:06
Re: Which Yii Extension to use?
Starport Staff
2008/10/25 17:58
From On my way back
Registered Users
Starport Staff
FLServer Admins
Posts: 347
Why dont you try it yourself and then tell us about it.

Moved to spam.

Posted on: 2012/11/7 10:40
Re: Which Yii Extension to use?
Just popping in
2012/11/6 16:04
Registered Users
Posts: 3
I tried it and just wanted to get other feedbacks and discuss. Can tell you about my experience.

How it works

There are 3 Steps I've made using the Backvendor to make the simple project. You may also review the demo which I've found at the GitHub (

Step 1.

Download the extension from the site ( and put it in the folder with web access (I did not change name from backvendor). After that, type in the command line:

php bviic.php createmultiapp - path = "/path/to/webroot/my-demo-project"

In a few seconds we get the new project which is located in the my-demo-project. It already has a application structure and the base classes ready to tunning-up for the project purposes.

Step 2.

Before continuing we need to make the database migration (made before and provide the access in the core/config/db.php). To do that type the next commands in the console:

php yiic migrate

Step 3.

Configuring the administration panel.

In the new project you will need to generate a model for the required tables with Gii Tool. Its settings are placed in the file/core/config/main.php. During the model generation set the path for them «core.models»

Basic settings for CRUD and models are in the file backend / protected / controllers / SiteController.php, the function reconfigureEntityParamsDictionary. In my demo-project this function looks like:

self::$entityConfigDictionary = CMap::mergeArray(
parent::$entityConfigDictionary, array(
'user' => array(
'modelName' => 'User',
'excludeFromGridView' => array(
'password', 'salt',
'excludeFromDetailView' => array(
'password', 'salt',
'modelAlias' => 'Blog User',
'modelAliasPlural' => 'Blog Users',
'bool' => array('admin'),
'datetime' => array('creation_date'),
'images' => array('image'),
'title' => 'username',
'link' => array(
'fb_link' => '{value}'
'password' => array('password'),
'dropDown' => array(
'role' => array(
1 => 'Publisher',
2 => 'Moderator',
3 => 'Writer',
'maxUploadedImageSize' =>
array('width' => 200, 'height' => 200),
'selectable' => 2,
'post' => array(
'modelName' => 'Post',
'notUseTitleOfRelation' => array('author'),
'postCategory' => array(
'modelName' => 'PostCategory',
'linksManyToManyRelation' => array('post', 'category')
'category' => array(
'modelName' => 'Category',
'modelAliasPlural' => 'Categories',

That's all.

Each key in the array (User, Post, etc.) - is the name of the entity. The settings description you may find in -
Configuring entities properly will help you not to create the CRUD for them manually, also you don't have to edit the model.
The web service is placed in the folder apllication/webservice. It contains basic API class where you may define API methods.


1) Detailed information about the project is available here (

2) Project documentation:

Full list of documents (
Documentation for the API (
Deploying code (

3) What and where to download:

Backvendor (
Demo-version of the project (

It`s not a spam, it was an effort to begin an interesting discussion:)

Posted on: 2012/11/8 17:30
Re: Which Yii Extension to use?
Home away from home
2010/3/14 18:10
From Germany
Registered Users
Senior Members
Posts: 1526
if that is supposed to be such an interesting discussion, than how about making us know what this is all about and what it is good for and specifically how this is better than or in fact prefereable to what is used here already (afaik, Yii is a PHP framework or something). also, even if it is, don't you think that our administration would know after all these years and either has chosen it already or didn't do so for a fairly good reason?
i'm not saying i know anything about it. yet Thaddeus certainly would not have moved this to spam if he wasn't convinced well enough that it is.

Posted on: 2012/11/9 9:16