Log message #111161

# At Username Text
# 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:38 Matt1 skua: var $useDbConfig = 'test';
# Aug 8th 2008, 06:37 skua ?
# Aug 8th 2008, 06:37 skua from default to test for example
# Aug 8th 2008, 06:37 skua how to switch between all pre-configured-database
# Aug 8th 2008, 06:36 annnna ok, thanks!! it's interesting how you used an array for that
# Aug 8th 2008, 06:36 Matt1 Dont know about that. But it does work.
# Aug 8th 2008, 06:35 Matt1 http://bin.cakephp.org/view/1490084862
# Aug 8th 2008, 06:34 annnna Matt1: I was worried my architecture for this particular "business need" was conceptually wrong
# Aug 8th 2008, 06:34 Matt1 Let me get an example for you.
# 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:32 Matt1 annnna: I added the variable based on the domain currently in use.
# 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: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: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:27 Matt1 annnna: I worked on a shared server, but the setup looks the same.
# Aug 8th 2008, 06:27 annnna Matt1: did you do that same thing?
# Aug 8th 2008, 06:26 annnna Matt1: for ex. virtualhost anarealtor.com points to /home/anarealtor/public_html . Other virtualhost, mattrealtor.com points to /home/anarealtor/public_html too
# Aug 8th 2008, 06:25 annnna Matt1: well i see the problem for example if you rebuild apache somehow (which i think cpanel does from time to time while updating)
# Aug 8th 2008, 06:24 annnna good to know that this constant exists
# Aug 8th 2008, 06:24 Matt1 I do the same. what problems do you see with that setup ?
# Aug 8th 2008, 06:23 Matt1 annnna: I had a similar setup but used FULL_BASE_URL
# Aug 8th 2008, 06:23 annnna for this to work, i had to do a rather unusual approach (maybe a wrong one), redirecting the virtual host of both domains on apache to the same directory in the server's disk
# Aug 8th 2008, 06:22 annnna not really. it´s a dedicated server which i control and actually i did nothing there. I went to sleep, then errands, thinking about this but it fixed "itself"
# Aug 8th 2008, 06:21 Matt1 annnna: nameserver update ?
# Aug 8th 2008, 06:19 annnna so i themed it according to $_SERVER[ http_host ] request, and it threw a blank page for http://domain.com but worked fine for www.domain.com. 24 hours later it works either way. Im trying to find a reasonable explanation
# Aug 8th 2008, 06:17 annnna the strangest thing happened to me with this app. It's for a real estate aggregation and I had to theme it for different domains (everybody shares data but they dont share layouts)
# Aug 8th 2008, 06:10 annnna Matt1: great! free education it's all over the internet
# Aug 8th 2008, 06:08 Matt1 annnna: self-taught
# Aug 8th 2008, 06:04 annnna franko: yep. the good thing is that there's actually no age limit for architects (since you have so much slave labor in students and recent graduates) so i might come back to the field after im 40 or 50
# Aug 8th 2008, 06:01 franko annnna: bit of both - even tried my hand at architecture, too much work though!
# Aug 8th 2008, 06:00 annnna so i try to help but i know im no authoritative source :(
# Aug 8th 2008, 05:59 annnna are you guys in computer science careers or self-taught developers? i went to architecture school
# Aug 8th 2008, 05:59 franko annnna: I'm usually so good with children. But yeah, its easy to refactor it, just wondering if it was possible really...
# Aug 8th 2008, 05:57 annnna yeah it seems weird though that you wanna kill the child object first
# Aug 8th 2008, 05:57 annnna it's ana but i guess it might collide easily with someone else so i add random n's!
# Aug 8th 2008, 05:55 franko annnna: your name is hard to get right huh :-p
# Aug 8th 2008, 05:54 franko annna: thanks, I think I will just refactor to delete the user and just have the dependency from that relationship kick in...
# Aug 8th 2008, 05:53 annnna franko: yeah i'm seeing that.... now i realize, sorry. Let me read a bit more
# Aug 8th 2008, 05:53 franko np, will just delete the parent object... :-)
# Aug 8th 2008, 05:53 franko anna: thats cool, understand that one - what I was wanting is to delete profile and then Bob is deleted also...