Logs for

Page 235 of 211,260, showing 20 records out of 4,225,199 total, starting on record 4,681, ending on 4,700

# At Username Text
# Aug 8th 2008, 06:27 Matt1 annnna: I worked on a shared server, but the setup looks the same.
# Aug 8th 2008, 06:29 annnna Matt1: well i think the problem with this is the eventual overwriting in httpd.conf which would leave your sites broken until you realized apache rebuilt itself
# Aug 8th 2008, 06:31 annnna Matt1: now that i got that working, i'm trying to tackle the other problem. If you are in domain1 you are in realtor's 1 site, so you should pass somekind of internal variable to let Cake know which realtor it's delivering content for
# Aug 8th 2008, 06:32 Matt1 annnna: got about 7 sites running in different doamins, all using the same app/database. Apperently the hosting company has solved that one.
# Aug 8th 2008, 06:32 Matt1 annnna: I added the variable based on the domain currently in use.
# Aug 8th 2008, 06:33 annnna Matt1: well, it's great to know someone else is doing the same thing somewhere!
# Aug 8th 2008, 06:34 Matt1 Let me get an example for you.
# Aug 8th 2008, 06:34 annnna Matt1: I was worried my architecture for this particular "business need" was conceptually wrong
# Aug 8th 2008, 06:35 Matt1 http://bin.cakephp.org/view/1490084862
# Aug 8th 2008, 06:36 Matt1 Dont know about that. But it does work.
# Aug 8th 2008, 06:36 annnna ok, thanks!! it's interesting how you used an array for that
# Aug 8th 2008, 06:37 skua how to switch between all pre-configured-database
# Aug 8th 2008, 06:37 skua from default to test for example
# Aug 8th 2008, 06:37 skua ?
# Aug 8th 2008, 06:38 Matt1 skua: var $useDbConfig = 'test';
# Aug 8th 2008, 06:38 annnna Matt1: this is as far as i've got if ( $_SERVER['HTTP_HOST'] == 'johnson....com' ) { $this->theme = 'johnsonrealtor'; }
# Aug 8th 2008, 06:39 Matt1 annnna: that should work if all you need is the theme switch. but you needed something else too I belive ?
# Aug 8th 2008, 06:40 Matt1 annnna: my example has code not really needed. I could have set those in the configuration file and load it based on the domain.
# Aug 8th 2008, 06:41 Matt1 annnna: so you could have any variable there you like to switch between domains.
# Aug 8th 2008, 06:41 annnna Matt1: yeah, i need the app to be aware of which realestate agency is using. For example, if a contact mail is sent, it should know whose agency got the client