Render
asset()
function asset($assetType, $file, $options = [])<?php
Render::asset('css', 'styles.css', ['area' => 'frontend', 'location' => 'head']);
Render::asset('js', 'main.js', ['area' => 'frontend', 'location' => 'footer']);
// Make sure CSS and JS files are contained in Views/Fronted/Assets/ folderrenderAsset()
function renderAsset($location = 'head', $area = 'frontend')render()
html()
component()
block()
getblock()
Last updated
Was this helpful?