Hi there,
I'm working on a traffic exchange site and since I'm very new I used this
login script :
http://miftyisbored.com/a-complete-login-and-authentication-application-tutorial-for-cakephp-2-3/
Everything works nicely. Based on that code I created a few pages ( Add
site, List sites, delete
Quite a few ways to go around it, for example you can create something like
this in your Site model (or even App Model if using $this-alias)
public function belongsToUser($siteId = null, $userId = null) {
$site = $this-find('count', array(
'conditions' = array(
'Site.id' =