March 6
Edit

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'

or,

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

 

function __construct($params) {
    parent::__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.