Ver Mensaje Individual
  #1 (permalink)  
Antiguo 21/02/2015, 18:30
Avatar de guardarmicorreo
guardarmicorreo
 
Fecha de Ingreso: noviembre-2012
Ubicación: Córdoba
Mensajes: 1.153
Antigüedad: 11 años, 5 meses
Puntos: 84
¿sintaxis compleja en include/require?

Estoy intentando esto

Código PHP:
Ver original
  1. <?php
  2. namespace controller
  3. class FrontEnd{
  4.     public function invoke($func){
  5.         include './html/${func}.php';
  6.        
  7.         return $func();
  8.     }
  9. }
  10. ?>

Y no me identifica la variable $func dentro del string utilizando sintaxis compleja de PHP.

¿A qué se debe esto?
__________________
Ayúdame a hacerlo por mi mismo.