Themes and @include in blade template
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Themes and @include in blade template
In packages\new-theme\client\html\templates\checkout\standard\summary-body-standard.blade.php
I have below code:
This code causes the error:
I try use
but still not working
I have below code:
Code: Select all
@include('common/summary/detail-standard',[
'summaryBasket' => $standardBasket,
'summaryTaxRates' => $summaryTaxRates ?? [],
'summaryNamedTaxes' => $summaryNamedTaxes ?? [],
'summaryCostsPayment' => $summaryCostsPayment ?? 0,
'summaryCostsDelivery' => $summaryCostsDelivery ?? 0,
'summaryShowDownloadAttributes' => $summaryShowDownloadAttributes ?? [],
])
Code: Select all
View [common.summary.detail-standard] not found. (View: C:\xampp\htdocs\giftcard\vendor\aimeos-themes\new-theme-sk\client\html\templates\checkout\standard\summary-body-standard.blade.php)
Code: Select all
@include('new-theme::common/summary/detail-standard' ....
Re: Themes and @include in blade template
Laravel uses dots instead of slashes for separating directories, e.g. "common.summary.detail-standard" (for whatever reason):
https://laravel.com/docs/9.x/blade#including-subviews
Furthermore, it may load Blade views only from the standard Laravel view directories like "resources/views".
https://laravel.com/docs/9.x/blade#including-subviews
Furthermore, it may load Blade views only from the standard Laravel view directories like "resources/views".
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
Re: Themes and @include in blade template
Do you have somewhere converted all Aimeos template (ai-client-html\client\html\templates) to Laravel Blade ?
Re: Themes and @include in blade template
No. We want to see how we can use the Blade template engine for the existing PHP files in the future.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star