Selaa lähdekoodia

Déplace le fichier main.phtml

app/views/javascript/main.phtml est déplacé vers
app/views/helpers/javascript_vars.phtml

Il reste à déplacer le fichier actualize.phtml pour se débarrasser de
javascriptController
Marien Fressinaud 12 vuotta sitten
vanhempi
commit
9d32d7fe19

+ 0 - 2
app/controllers/javascriptController.php

@@ -6,8 +6,6 @@ class javascriptController extends ActionController {
 		header('Content-type: text/javascript');
 	}
 
-	public function mainAction () {}
-
 	public function actualizeAction () {
 		$feedDAO = new FeedDAO ();
 		$this->view->feeds = $feedDAO->listFeeds ();

+ 1 - 1
app/layout/layout.phtml

@@ -12,7 +12,7 @@
 		<?php echo self::headStyle (); ?>
 		<?php echo self::headScript (); ?>
 		<script>//<![CDATA[
-<?php $this->renderHelper ('../javascript/main'); ?>
+<?php $this->renderHelper ('javascript_vars'); ?>
 		//]]></script>
 <?php
 	$next = isset($this->entryPaginator) ? $this->entryPaginator->next() : '';

+ 0 - 0
app/views/javascript/main.phtml → app/views/helpers/javascript_vars.phtml