Model/Site.php
public function buscarUsersComercio() {
    	$currentSiteAlias = MtSites::getSiteName();

    	$site = $this->find('first', array(
    		'contain' => array(
    			'User' => array('conditions' => array('is_admin' => 0))
			),
    		'conditions' => array(
    			'Site.alias' => $currentSiteAlias
    			),
    		));

    	$users = $site['User'];


    	return $users;
    }
public function buscarUsersComercio() {
    	$currentSiteAlias = MtSites::getSiteName();

    	$site = $this->find('first', array(
    		'contain' => array(
    			'User' => array('conditions' => array('is_admin' => 0))
			),
    		'conditions' => array(
    			'Site.alias' => $currentSiteAlias
    			),
    		));

    	$users = $site['User'];


    	return $users;
    }
public function buscarUsersComercio ( ) { $ currentSiteAlias = MtSites :: getSiteName ( ) ; $ site = $ this -> find ( 'first' , array ( 'contain' => array ( 'User' => array ( 'conditions' => array ( 'is_admin' => 0 ) ) ) , 'conditions' => array ( 'Site.alias' => $ currentSiteAlias ) , ) ) ; $ users = $ site [ 'User' ] ; return $ users ; }
Busca todos los usuarios del comercio

@return array de usuarios
Busca todos los usuarios del comercio