Replies: 4 comments 1 reply
-
Hey @LeFlow! 👋🏻
|
Beta Was this translation helpful? Give feedback.
-
if I understand correctly, for this example, I must make a "header" component and a "footer" component and in my index do: |
Beta Was this translation helpful? Give feedback.
-
Ty I will try to do like that. If I have a problem, I'll come back ^^ |
Beta Was this translation helpful? Give feedback.
-
It's good but I needed to replace TY |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
I'm starting with Adonisjs.
v6
I have a controller "test_controller.ts":
<title>Test Adonisjs</title>import { HttpContext } from "@adonisjs/core/http"; export default class TestController { async index({ view }:HttpContext) { return view.render('index.edge'); } }
route:
router.get('/', [TestController, 'index'])
the views :
layout.edge:
`
and index.edge:
`@layout('layout')
@section('body')
Titre
@endsection`The problem is that when I go to the localhost:3333 page, it displays:
`@layout('layout')
@section('body')
Titre
@endsection`Can you help me pls.
TY
Beta Was this translation helpful? Give feedback.
All reactions