Yii Framework Forum: Bootstrap With Yii - Yii Framework Forum

Jump to content

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

Bootstrap With Yii bootstrap Rate Topic: -----

#1 User is offline   prateekazam 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 02-May 13

Posted 09 May 2013 - 05:10 AM

Hi ,

I would like to know is there any way to generate yii project with bootstrap support.

The project which is generated by yiic command does not contains any bootstrap file.Although i know we can manually download file and put it in extension folder.

Thank
Prateek
0

#2 User is offline   JFReyes 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 476
  • Joined: 28-October 09
  • Location:Puerto Rico

Posted 09 May 2013 - 05:17 AM

Take a look at YiiBoilerplate extension. Good luck.
José
0

#3 User is offline   tiroloco 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 30-July 12

Posted 09 May 2013 - 07:55 AM

If you don't want to modify yii's directory structure, or don't need to do it, you can use /index.php and /index_test.php as your bootstraps, and /protected/tests/bootstrap.php as your bootstrap for phpunit and selenium tests.

If you need to control the execution of your scripts, you may alter routing configuration in /protected/config/main.php, or set the CMap structures to the paths you need.

If you want to run some code in the application initialization, you can attach a callback to the onBeginRequest application object event.

Read this wiki page for complete information: yii directory structure.

If you need a developer team environment, then follow Mr. JFReyes recommendation, but I'm having doubts about Gii's (by example) behavior in these kind of environments.

Happy programming!
0

#4 User is offline   jacmoe 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 2,601
  • Joined: 10-October 10
  • Location:Denmark

Posted 09 May 2013 - 09:05 AM

There are numerous Gii extensions which supports Bootstrap.
Do a search and you shall find. :)

I think AweCrud is one.. Don't remember the details.

Search (using Google) and open a support topic in Extensions forum if you get stuck and/or have further questions.
"Less noise - more signal"
0

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