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
pull/322/head
Marien Fressinaud 11 years ago
parent d4f636f26a
commit 9d32d7fe19
  1. 2
      app/controllers/javascriptController.php
  2. 2
      app/layout/layout.phtml
  3. 0
      app/views/helpers/javascript_vars.phtml

@ -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 ();

@ -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() : '';

Loading…
Cancel
Save