Yii Framework Forum: A Guide For How To Integrate Yiibooster And Yiistrap&yiiwheels - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

A Guide For How To Integrate Yiibooster And Yiistrap&yiiwheels UI, Yiibooster, Yiistrap, Yiiwheels, Integration Rate Topic: ***** 3 Votes

#1 User is offline   Scott_Huang 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 14
  • Joined: 18-July 13

Posted 31 December 2013 - 03:43 AM

Dear All,

I am Scott Huang, from Xiamen China, New to Yii community.
I start php/yii programming from Sep,2013 this year due to want to design one web tool for my department to enhance efficency. After compare, I decide use Yii framework, till now, I am happy for my choice:)
Yii provide good extensions/modules to expedite your work, I use users/rights/backup/Yiiboster/Yiistrap&Yiiwheels/Yiimail till now.

Some people want to integrage Yiibooster and Yiistrap&Yiiwheels together. Below is the method:
0. Setup Yiibooster/Yiistrap/Yiiwheels per their own setup guidance firstly.
1. In protected\config\main.php
a.set alias for the 3 straps.

'aliases' => array(
'bootstrap' => realpath(__DIR__ . '/../extensions/YiiBooster-2.1.1/src'), // change if necessary
'yiistrap' => realpath(__DIR__ . '/../extensions/yiistrap-1.2.2'), // change if necessary
'yiiwheels' => realpath(__DIR__ . '/../extensions/yiiwheels-1.0.3'), // change if necessary
),

b. Import change to:
'yiistrap.helpers.TbHtml', //for yiistrap

c. Components change to:
...
'bootstrap' => array(
'class' =>'bootstrap.components.Bootstrap', //turn on when try use boostrap
),
'yiistrap' => array(
'class' => 'yiistrap.components.TbApi', //turn on when try use yiistrap
),
'yiiwheels' => array(
'class' => 'yiiwheels.YiiWheels',
...

2. protected\views\layouts\main.php change boostrap to yiistrap.

Yii::app()->yiistrap->register(); //for yiiwheels and yiistrap

3. use netbeans => Edit => Replace in project
a. select your protected\extentions\yiiwheels-1.0.3
replace import('boostrap.
to import('yiistrap.

b. select your protected\extentions\yiistrap-1.2.2

replace import('boostrap.
to import('yiistrap.

4. Done. You can use the 3 interface all.

The 3 UI all can work well in firefox both.
Yiistrap sometimes cannot show correct in IE9. ==> Need the Yiistrap author to double check the code.


2

#2 User is offline   schmunk 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 566
  • Joined: 02-November 08
  • Location:Stuttgart, Germany

Posted 07 January 2014 - 04:20 PM

Sounds nice, but I haven't tried it so far.
btw: you may also create a wiki article with nice code formatting etc. from your post: http://www.yiiframework.com/wiki/
Phundament - Yii Application Boilerplate with composer support
Fork on github

Follow phundament on Twitter

DevSystem: Mac OS X 10.7 - PHP 5.3 - Apache2 - Yii 1.1 / trunk - Firefox or Safari
0

#3 User is offline   waitforit 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 382
  • Joined: 09-February 11

Posted 07 January 2014 - 05:59 PM

Why integrate them?

Doesn't yii-strap and yii-wheels provide all the functionality of YiiBooster?
0

#4 User is offline   Maurizio Domba Cerin 

  • Yii - Yesss It Is !!!
  • Yii
  • Group: Yii Dev Team
  • Posts: 4,338
  • Joined: 12-October 09
  • Location:Croatia

Posted 08 January 2014 - 03:21 AM

NOTE: moved to proper section (Tips, Snippets and Tutorials instead of General Discussion for Yii 1.1.x)
Find more about me.... btw. Do you know your WAN IP?
0

#5 User is offline   Scott_Huang 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 14
  • Joined: 18-July 13

Posted 11 January 2014 - 09:47 AM

View Postwaitforit, on 07 January 2014 - 05:59 PM, said:

Why integrate them?

Doesn't yii-strap and yii-wheels provide all the functionality of YiiBooster?


Scott:
1.The main reason is only Yiibooster show correctly both in IE/QQBrowser/Fireworks browser in my notebook, while Yiistrap/wheels only work in Fireworks.
2.And it can resolve if someone want use Yiibooster+Yiiwheels only.
3.Myself also want to learn all of these 3 extensions. Thanks.
1

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users