ditolas Posted February 5, 2014 Share Posted February 5, 2014 (edited) Hola a todos, quiero saber si hay alguna manera de saber si un cliente en concreto quiere acceder a una parte de la tienda. Se puede saber si esta logueado o no asi: <?php require(dirname(__FILE__).'/config/config.inc.php'); if ($cookie->isLogged()) { Controller::getController('xxxxController')->run(); } else { Controller::getController('IdentityController')->run(); } ?> pero yo querría poder compararlo con un cliente en concreto .No se si me he explicado bien Edited February 5, 2014 by ditolas (see edit history) Link to comment Share on other sites More sharing options...
ditolas Posted February 5, 2014 Author Share Posted February 5, 2014 ya lo he solucionado asi : if ($cookie->id_customer=='13') Link to comment Share on other sites More sharing options...
Recommended Posts