I have repeated Html that has two buttons. Clicking on any of the button reload the page. So far I am doing this in almost 6 controllers and each of their blades has these two buttons and clicking on button has repeated code in their controller.
IN .NET, we can use Partial View that renders the Html at run time which we think will be repeated in many views.
I meant, in a particular blade, we can extend the layout. So far it is fine. Now, how can we call a view in blade that is already extending a layout?
In .NET we write the code like below
@Html.Partial("PartialViewExample")
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire