Ver Mensaje Individual
  #6 (permalink)  
Antiguo 06/07/2011, 08:32
Avatar de repara2
repara2
 
Fecha de Ingreso: septiembre-2010
Ubicación: München
Mensajes: 2.445
Antigüedad: 13 años, 7 meses
Puntos: 331
Respuesta: Inconveniente con variables en una clase

Exacto, tambien puedes hacer algo así:

Código PHP:
Ver original
  1. $this->msg = require("file.php"),

Ahora $this->msg es un array que contiene todas las variables que hay en el archivo, para acceder a ellas utilizas

Código PHP:
Ver original
  1. $this->msg['MSG']; //etc...

Salu2
__________________
Fere libenter homines, id quod volunt, credunt.