Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Juan Montilla
/
TBW2223_equipo12
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
0188e08a
authored
May 04, 2023
by
Juan Montilla
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
solucion bug
parent
a432d5ea
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
1 deletions
app/Config/Routes.php
app/Controllers/InsertRecipeController.php
app/Views/pages/insertRecipe.php
app/Config/Routes.php
View file @
0188e08a
...
...
@@ -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
...
...
app/Controllers/InsertRecipeController.php
0 → 100644
View file @
0188e08a
<?php
namespace
App\Controllers
;
use
CodeIgniter\Controller
;
class
InsertRecipeController
extends
Controller
{
public
function
insertRecipe
()
{
return
view
(
'templates/header'
)
.
view
(
'pages/insertRecipe'
)
.
view
(
'templates/footer'
);
}
}
app/Views/pages/insertRecipe.php
0 → 100644
View file @
0188e08a
<h1>
a
</h1>
<h1>
como
</h1>
<h1>
cuando
</h1>
<h1>
te
</h1>
<h1>
pasa
</h1>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment