March 6

LAA Framework - add css file in controller

Attach a css file to a controller that applies to:

1. single url : add to target Action function in the selected Controoler.

    $this->add_css_files[] = '/laa_mvc/modules/{ModuleName}/themes/{addedCssFileName}.css'


2. apply to entire controller: add your css file to__contruct() function in the controller class. 


function __construct($params) {
    $this->add_css_files[] = '/laa_mvc/modules/{ModuleName}/themes/{addedCssFileName}.css';
    return $this;

Send us a message. We will reply as soon as we can.