Without further a due "a quick way to get around the aliases that don't work". Version 0.6 (I think).
1) The .htaccess is already already there in the OPC dir, just rename it.
_Just for the record:
2) Open library->envoriment->request.phpOptions +FollowSymlinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
2.1 _Add in the __construct:
Code: Select all
$this->url =& $locator->get('url');
$this->queryToRequest();
!This is just a quick 'n dirty way. I've been up way to long, so I can't guarantee that it's going to hold.function queryToRequest($query = false) {
if($query == false) {
$data = $this->url->data;
$data = array_flip($data);
$file = basename($_SERVER['REQUEST_URI']);
if($data[$file]) {
$q = $data[$file];
}
} else {
$q = $query;
}
if($q) {
$items = explode('&', $q);
foreach($items as $item) {
$tmp = '';
$tmp = explode('=', $item);
$_GET[$tmp[0]] = $tmp[1];
}
}
return true;
}
BTW. Is there somekind of reference or documentation?
- cya