Commit 0188e08a by Juan Montilla

solucion bug

parent a432d5ea
......@@ -39,7 +39,7 @@ $routes->match(['get'], '/home', [User::class, 'user_ok']);
$routes->get('insertRecipe', 'InsertRecipeController::insertRecipe');
$routes->get('login','Pages::viewLogin');
$routes->get('users','User::list');
$routes->get('home','Pages::prueba');
......@@ -47,6 +47,8 @@ $routes->get('(:segment)', 'Home::index');
$routes->get('/recipe/(:num)', 'RecipesController::view_recipe/$1');
/*
* --------------------------------------------------------------------
* Additional Routing
......
<?php
namespace App\Controllers;
use CodeIgniter\Controller;
class InsertRecipeController extends Controller
{
public function insertRecipe()
{
return view('templates/header')
.view('pages/insertRecipe')
. view('templates/footer');
}
}
<h1>a</h1>
<h1>como</h1>
<h1>cuando</h1>
<h1>te</h1>
<h1>pasa</h1>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment