I want to make my application be aware of the url.
I have created a table of sites (id, url) and a table of news (id, site_id,
etc.)
so I can get different news depending on the subdomain.
For example, economy news go in economy,example.com, sports news go in
sports.example.com
I also have more tables that have a site_id, for example, subscriptions (id,
site_id, email, etc.)

So I have lots of models that I always want to filter by site_id. Do I have
to explicitly put the condition on every find or is a way to automatically
filter by site_id?
Something like django's CurrentSiteManager?

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to