Yii Framework Forum: Developing Multiple Sites With Little Changes - Yii Framework Forum

Jump to content

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

Developing Multiple Sites With Little Changes Rate Topic: -----

#1 User is offline   awebdeveloper 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 55
  • Joined: 29-September 12

Posted 29 September 2012 - 03:30 PM

i have to develop 3 different sites

  • video.com for hosting video
  • audio.com for hosting audio
  • docs.com for hosting docs.

domain names for example only

Almost 80% of functionality is same for all the three with rest 20% being completely different features... how do i handle it. I am not talking of simple differenced like video to audio to documents but more complex like docs may have editing but other 2 doesn't or video and audio have related items but doc doesn't

I was thinking of having these different features as modules and rest as core but

  • how do i handle themes i.e each site has a different theme which is mostly css with little html changes
  • In this case the menu/code links in html code become difficult as they may or may not exist for a particular site


would this structure help http://www.yiiframew...i-project-site/

All three would finally be hosted separately
0

#2 User is offline   fsb 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 122
  • Joined: 09-January 11

Posted 29 September 2012 - 03:41 PM

I might implement all of it as one application and then at deployment I'd configure each to handle only one media type.
Join the happiest place on Freenode: #yii
We've got a MrFisk the bot, hilarious banter and all kinds of other groovy stuff going on.
Comparison of Internet Relay Chat clients
Web IRC client
0

#3 User is offline   awebdeveloper 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 55
  • Joined: 29-September 12

Posted 29 September 2012 - 03:44 PM

View Postfsb, on 29 September 2012 - 03:41 PM, said:

I might implement all of it as one application and then at deployment I'd configure each to handle only one media type.


As i said 20% code differers between the three so it can't be developed as one simple application.

It's not just media-type that changes
0

#4 User is offline   rosoft2001 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 11
  • Joined: 19-April 12

Posted 29 September 2012 - 04:33 PM

I would build components/extensions for the common part used in 3 different website.

In this way everything that is really common would be in one place and everything else ready to bi customized.
0

#5 User is offline   xahgmah 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 25
  • Joined: 08-October 12
  • Location:Ukraine, Kharkiv

Posted 09 October 2012 - 04:22 AM

I had the same problem, but this were 3 autoparts sites.
I made a Project Properties component where used class factory for each module on sites
My sites has differense only on this component proprties and a markups.
I used same database also. But hide some fields and columns in code, if need, using Progect Properties

##Install
Copy component to your folder application.components.
Add to config/main.php:
    'import' => array(
	... 
	'application.components.ProjectProperties.ProjectProperties',
	...
    ),


##Example for using

$catProp = new ProjectProperties('core');
if ($catProp->getProperty('ShowProperties','SearchMenuOnMain')) {
	$this->widget("application.modules.search.components.SearchWidget");
}

"core" - name of module. Propertes for module core will be find in CoreProperties.php file
"ShowProperties" - name of called function
"SearchMenuOnMain" - sended parrameter

See Attach

Attached File(s)


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