add basic CSS file, and adjusted the RewriteRule to allow media/ stuff

This commit is contained in:
tmont 2008-10-15 08:09:16 +00:00
parent 21d5f84d72
commit 934acc18bd
4 changed files with 24 additions and 6 deletions

View File

@ -1,4 +1,5 @@
RewriteEngine On
RewriteCond %{REQUEST_URI} !.*index\.php
RewriteRule .+ /panacea/src/index.php [L]
RewriteCond %{REQUEST_URI} !.*index\.php$
RewriteCond %{REQUEST_URI} !.*/media/.*
RewriteRule .* /panacea/src/index.php [L]

View File

@ -13,7 +13,7 @@
require_once 'NowhereConcave/bootstrap.php';
/**
* View for standard wiki pages
* View for standard Panacea pages
*
* @package Panacea
* @subpackage Views
@ -28,8 +28,15 @@
* @author Tommy Montgomery
* @since 2008-10-05
*/
public function send() {
echo '<p>Hello</p>';
public function send() { ?>
<h1>Panacea</h1>
<p>
Hello!
</p>
<?php
}
}

View File

@ -46,11 +46,12 @@
*
* @author Tommy Montgomery
* @since 2008-10-14
* @todo Get rid of the hardcoded CSS path
*
* @return ViewMetaData
*/
public function getMetaData() {
return parent::getMetaData();
return parent::getMetaData()->addCss('/panacea/src/media/css/global.css');
}
/**

9
src/media/css/global.css Normal file
View File

@ -0,0 +1,9 @@
html {
overflow: auto;
}
body {
background-color: #999999;
font-family: Verdana, Arial, sans-serif;
font-size: 8pt;
color: #000000;
}