Ver Mensaje Individual
  #4 (permalink)  
Antiguo 15/03/2013, 10:23
aldo_rengo
 
Fecha de Ingreso: febrero-2013
Ubicación: en mi casa
Mensajes: 541
Antigüedad: 11 años, 2 meses
Puntos: 3
Respuesta: renderizar html php file_get_contents

Cita:
Iniciado por alyciashape Ver Mensaje
Realmente no controlo mucho del tema llevo muy poco con CI pero desde luego si que hay que poner los <?php echo $title ?>. Mira este ejemplo del manual de code igniter:

Código PHP:
Ver original
  1. <html>
  2. <head>
  3. <title><?php echo $title;?></title>
  4. </head>
  5. <body>
  6.     <h1><?php echo $heading;?></h1>
  7. </body>
  8. </html>

Hacer una substitución no creo que sea la mejor opción. Imáginate que tienes un blog y algún usuario escribe $title en el texto... o peor aún, que escriba $usuario y $password.

Creo que lo que hacen es enviar las variables a la vista, no hacer substitución.
ah si, es como si hicieron un include, al archivo, incluyendo las varibles php..
PERO LAS VISTAS SI O SI TIENEN QUE TENER, EXTENSION PHP.
VI ALGUNOS CASOS QUE LAS VISTAS TIENEN ARCHIVO html, AHORA COLOCO UNOS EJEMPLOS... PERO A VER... ESTAS COSAS LOS USAN USTEDES, DE USAR file_get_contents, "CHUPAN" EL HTML Y HACEN UN HTML, CON VARIABLES=?
O COLOCAN HTML Y PHP JUNTOS TODO MEZCLADO?