Yii Framework Forum: Yii Framework - Yii Framework Forum

Jump to content

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

Yii Framework Rate Topic: -----

#1 User is offline   nissan 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 22-January 13

Posted 31 January 2013 - 04:10 PM

Hi,
I'm new to the Yii PHP OOP framework. I have a question about its structure.
Can the /framework and /protected directories be used for multiple site(s) development
or is a new setup required for each site?

Thank-You
0

#2 User is offline   PeRoChAk 

  • Advanced Member
  • PipPipPip
  • Yii
  • Group: Members
  • Posts: 578
  • Joined: 26-November 10
  • Location:Lahore, Pakistan

Posted 31 January 2013 - 04:36 PM

Welcome to Yii Family,

You can use Framework for multiple projects without extra coding but using protected for multiple projects is not a good idea.
Cheers
Perochak
Web Design - Logo Design - Application Development

My Blog | Forums Comparison
0

#3 User is offline   nissan 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 22-January 13

Posted 31 January 2013 - 05:11 PM

Thank-you for your response,

I can see how the /framework directory could be reused, but if a new yii setup is ran
for a new site, wouldn't it establish new directories (/framework and /protected)
for that site? Would you delete the newly created /framework directory?

Thank-you
0

#4 User is offline   mirunho 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 170
  • Joined: 19-December 12
  • Location:Gdansk, Poland

Posted 01 February 2013 - 02:29 AM

I dont know if I get your question correctly, but everything depends on You. You can set in every app/site the same directory for framework files. I dont understand how You can use the same protected files, it will be the same page :P Of course You can do some widgets or components and use it with few sites.
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