Automatic filter by site

2011-08-10 Thread João Rodrigues
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 tab

Model as aro and aco

2011-01-18 Thread João Rodrigues
Is it possible to use a model as a request object and a controlled object at the same time? For example, if I have a table of users, can I use ACL so each user can only read and update their own user? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP r