Js and css

Suppose we want to color our heroes page with a css (works similar to js). We create a /projectHero/css folder and inside we create ourHero.css file

body {
  background-color: rgb(205,205,205);
}

Let’s go to the page Hero.php and simply we include the file like this:

<?php
  public function init() {
    parent::init();
    $this->addFiles([
      "css/Hero.css"
    ]);
    $this->addModules([
      new View(),
      new Insert()
    ]);
    $this->modules["View"]->init();
    $this->modules["Insert"]->init();
    $this->modules["Insert"]->listener();
    $this->tags["title"]  .= "Heros";
    $this->tags["content"] = $this->printPage();
  }
?>

You can include js and css files, this way, on both pages and modules.