Ver Mensaje Individual
  #6 (permalink)  
Antiguo 27/11/2012, 11:27
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Respuesta: ¿Cómo llamar a una función?

PHP no miente, si no haz definido la función por eso te marca el error, si lo que quieres es comprobar si existe debes de usar funcion_exists:
Código PHP:
Ver original
  1. function foo() {
  2.  
  3. }
  4. var_dump(function_exists('foo')); // bool (true)
  5. var_dump(function_exists('bar')); // bool (false)