Codeigniter 4🔥 [06.- vistas?]
En este tutorial vamos a trabajar con las vitas en codeigniter 4.
Codigo en github.com: https://github.com/programadornovato/codeigniter4/commit/a3fb9bc1337fce784485e61216631318153debdd
//app/Controllers/Home.php <?php namespace App\Controllers; use CodeIgniter\Controller; use App\Models\UserModel; class Home extends BaseController { public function index() { $estructura=view('estructura/header').view('estructura/body'); return $estructura; } //-------------------------------------------------------------------- } //app/Views/estructura/body.php <body> Hola mundo desde programadornovato.com </body> </html> //app/Views/estructura/header.php <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Document</title> </head>
Guia de codeigniter 4: https://codeigniter4.github.io/userguide/models/model.html #Codeigniter4 #php7 #backend #Codeigniter #php .
? Esta lista de reproducción: https://www.youtube.com/playlist?list=PLCTD_CpMeEKTFN5TDeOP-wP_hU0_9VoWg
.
Codigos en gdrive: https://drive.google.com/file/d/1awbG6jI40IO0N68fgjLUwNFpsTC3wIHj/view?usp=sharing .
Gracias por apoyar este canal: https://www.patreon.com/programadornovato?fan_landing=true .
? Facebook: https://facebook.com/ProgramadorNovatoOficial
? Twitter: https://twitter.com/programadornova
? Linkedin: https://www.linkedin.com/in/programadornovato/
? Instagram: https://www.instagram.com/programadornovato/
Ave que vuela, a la cazuela.