how to use css file from starter_theme in single page controller
Permalink 1 user found helpful
Class 'Application\Controller\SinglePage\Dashboard\SiteManagement\Core' not found
$html = \Core::make('helper/html');
Error lost.But css file doesn't work.
I tried chrome browser cache clear and run in another browser.But doesn't work.
Controller or view where from should i call css file? I try to call from controller php file.
Try this in your controller:
public function registerViewAssets($outputContent = '') { $html = $this->app->make('helper/html'); $this->addHeaderItem($html->css("application/theme/starter_theme/YOUR_CSS_FILE.css ")); }
Then clear site cache in Dashboard, reload the page Ctrl-F5 and check if your css loaded in the page source.
I also tried your code too.But doesn't work.
I was wrong.The php file I want to design is view page.I call controller php file from form in view.