add basic CSS file, and adjusted the RewriteRule to allow media/ stuff
This commit is contained in:
		
							parent
							
								
									21d5f84d72
								
							
						
					
					
						commit
						934acc18bd
					
				| @ -1,4 +1,5 @@ | |||||||
| RewriteEngine On | RewriteEngine On | ||||||
| 
 | 
 | ||||||
| RewriteCond %{REQUEST_URI} !.*index\.php | RewriteCond %{REQUEST_URI} !.*index\.php$ | ||||||
| RewriteRule .+ /panacea/src/index.php [L] | RewriteCond %{REQUEST_URI} !.*/media/.* | ||||||
|  | RewriteRule .* /panacea/src/index.php [L] | ||||||
| @ -13,7 +13,7 @@ | |||||||
| 	require_once 'NowhereConcave/bootstrap.php'; | 	require_once 'NowhereConcave/bootstrap.php'; | ||||||
| 
 | 
 | ||||||
| 	/** | 	/** | ||||||
| 	 * View for standard wiki pages | 	 * View for standard Panacea pages | ||||||
| 	 * | 	 * | ||||||
| 	 * @package    Panacea | 	 * @package    Panacea | ||||||
| 	 * @subpackage Views | 	 * @subpackage Views | ||||||
| @ -28,8 +28,15 @@ | |||||||
| 		 * @author Tommy Montgomery | 		 * @author Tommy Montgomery | ||||||
| 		 * @since  2008-10-05 | 		 * @since  2008-10-05 | ||||||
| 		 */ | 		 */ | ||||||
| 		public function send() { | 		public function send() { ?>
 | ||||||
| 			echo '<p>Hello</p>'; | 			 | ||||||
|  | 			<h1>Panacea</h1> | ||||||
|  | 			 | ||||||
|  | 			<p> | ||||||
|  | 				Hello! | ||||||
|  | 			</p> | ||||||
|  | 		<?php | ||||||
|  | 		 | ||||||
| 		} | 		} | ||||||
| 		 | 		 | ||||||
| 	} | 	} | ||||||
|  | |||||||
| @ -46,11 +46,12 @@ | |||||||
| 		 * | 		 * | ||||||
| 		 * @author Tommy Montgomery | 		 * @author Tommy Montgomery | ||||||
| 		 * @since  2008-10-14 | 		 * @since  2008-10-14 | ||||||
|  | 		 * @todo   Get rid of the hardcoded CSS path | ||||||
| 		 * | 		 * | ||||||
| 		 * @return ViewMetaData | 		 * @return ViewMetaData | ||||||
| 		 */ | 		 */ | ||||||
| 		public function getMetaData() { | 		public function getMetaData() { | ||||||
| 			return parent::getMetaData(); | 			return parent::getMetaData()->addCss('/panacea/src/media/css/global.css'); | ||||||
| 		} | 		} | ||||||
| 		 | 		 | ||||||
| 		/** | 		/** | ||||||
|  | |||||||
							
								
								
									
										9
									
								
								src/media/css/global.css
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								src/media/css/global.css
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,9 @@ | |||||||
|  | html { | ||||||
|  | 	overflow: auto; | ||||||
|  | } | ||||||
|  | body { | ||||||
|  | 	background-color: #999999; | ||||||
|  | 	font-family: Verdana, Arial, sans-serif; | ||||||
|  | 	font-size: 8pt; | ||||||
|  | 	color: #000000; | ||||||
|  | } | ||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user