Ver Mensaje Individual
  #2 (permalink)  
Antiguo 24/12/2012, 06:30
Avatar de masterpuppet
masterpuppet
Software Craftsman
 
Fecha de Ingreso: enero-2008
Ubicación: Montevideo, Uruguay
Mensajes: 3.550
Antigüedad: 16 años, 3 meses
Puntos: 845
Respuesta: problemas en incluir una funcion tipo FaqayudaModel::imagen(1)

Tal cual lo tienes funciona correctamente en PHP 5.3, para versiones inferiores puedes utilizar call_user_func_array o Reflection:


Código PHP:
Ver original
  1. //call
  2. echo call_user_func_array($class, $method), array());
  3. echo PHP_EOL;
  4.  
  5. //reflection
  6. $refl = new ReflectionMethod($class, $method);
  7. echo $refl->invoke(new $class());
  8. echo PHP_EOL;

Saludos.
__________________
http://es.phptherightway.com/
thats us riders :)