I have A.php view file in /views/A/ folder. And I have A.js js file in /views/A/ folder Please help me register js file in view file.
As I understand I must write $this->registerJsFile('path/to/file.js'); in view file.
but (Question A) I get method registerJsFile is not found in a class
message from PHPStorm.
Also (Question B) what should I write in path considering both files are in the same folder /views/A/ ?
Aucun commentaire:
Enregistrer un commentaire