Render
asset()
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()
renderAsset()function renderAsset($location = 'head', $area = 'frontend')render()
render()html()
html()component()
component()block()
block()getblock()
getblock()Last updated
Was this helpful?