A CRUD Generator Package For Laravel, Make a CRUD with no Painless !

If you found CRUDBooster Helpful, Amazing, and Awesome, please share to 1.5K Facebook 1K Twitter

Hello, how can I add an external css or js to a custom view?

I have this:

public function getDetail($id) {

//Create an Auth

if(!CRUDBooster::isRead() && $this->global_privilege==FALSE || $this->button_edit==FALSE) {

CRUDBooster::redirect(CRUDBooster::adminPath(),trans("crudbooster.denied_access"));

}

$data = [];

$data['page_title'] = 'xxxxxxxxx';

                        // I tried this, but is not working

                        // $this->load_css[] = "mycss.css";

$this->cbView('myview.view',$data);


}


Any suggestions?


Thank you.

Angel Formica

User

Add comment to this question

According to the official documentation here, you'd have to write it into the cbInit() method.

$this->load_js[] = asset("your_style.css");
$this->load_js[] = asset("your_other_style.css");




Answered by Guru By Design at Nov, 29 2017 12:58

Add comment to this answer

Answer This Question