Witam.
Pisze stronę internetową i mam taki problem
htaccess
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?url=$1 [L,QSA]
Klasa root
<?php
class root {
public $class;
public $action;
public $params;
public function __construct() {
$routParts = explode("/", $_GET['url']);
$this->controller = 'c'.$routParts[0];
$this->action = isset($routParts[1]) ? $routParts[1] : "index";
array_shift($routParts);
array_shift($routParts);
$this->params = $routParts;;
}
public function run(){
$sys = new $this->controller();
$sys->{$this->action}($this->params);
}
}
?>
Linki:
news i news/add
Przy pliku new widziane są jc i css
Natomiast jak klikam news/add to nie dziwidzi js i css.
Jak to rozwiązać ten problem?