Hi! i'm new here and i have my first problem. I'm testing the roles in one method :
*<?php include_once("Config.php"); class Enquestes{ function Enquestes(){ **$this->methodTable = array( "hola" => array( "description" => "Prova", "access" => "remote", "roles" => "admin", ) );* *function _authenticate($user, $pass) { $pass=md5($pass); if(!$conn_id = connect()){ return false; } $query = "SELECT `permisos` FROM `usuaris` WHERE `name` LIKE '".$user."' AND `pass` LIKE '".$pass."';"; $result = mysql_query ($query); if ($data = mysql_fetch_assoc($result)) { return $data['permisos']; } else { return false; } }* *function hola(){ return "hola"; } }* ** But when i test it in flash the netdebugger shows this fatal error: *Error enquestes: Fatal error: Undefined class name 'authenticate' in /home/virtual/site224/fst/var/www/html/yup/flashservices/amf-core/app/Actions.php on line 260* ... What happens? how can i solve this problem? The class Authenticate.php exists and the Actions.php seems to be correct... Sorry for my english, i'm spanish! Thnk's ! _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com