2016-04-18 1 views
0

私はこれが基本的な構造であるCakePHPの3によって生成されたページがあります。jQueryの2.2.0エラー

<!DOCTYPE html> 
<html> 
    <head> 
     <?= $this->Html->charset() ?> 
     <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport"> 
     <title> 
      Delta BEC | 
      <?= $this->fetch('title') ?> 
     </title> 
     <?= $this->Html->meta('icon') ?> 

     <?= $this->Html->css('bootstrap.min') ?> 
     <?= $this->Html->css('font-awesome.min') ?> 
     <?= $this->Html->css('custom') ?> 

     <?= $this->fetch('meta') ?> 
     <?= $this->fetch('css') ?> 
     <?= $this->fetch('script') ?> 
    </head> 
    <body> 
     <div class="wrapper"> 
      <?= $this->Flash->render() ?> 
      <?= $this->fetch('content') ?> 
     </div> 

     <?php $this->Html->script('../plugins/jQuery/jQuery-2.2.0.min.js'); ?> 
     <script src="https://code.jquery.com/ui/1.11.4/jquery-ui.min.js"></script> 
     <script> 
      $.widget.bridge('uibutton', $.ui.button); 
     </script> 
     <?php $this->Html->script('bootstrap.min.js'); ?> 
     <?php $this->Html->script('app.min.js'); ?> 
    </body> 
</html> 

は私が間違って何を見ていないよ、それを見てみると、私はしかし、これらのエラーを取得しています:

jquery-ui.min.js:6 Uncaught ReferenceError: jQuery is not defined(anonymous function) @ jquery-ui.min.js:6(anonymous function) @ jquery-ui.min.js:6 
login:69 Uncaught ReferenceError: $ is not defined 

私は何をしないのですか?

+0

これは、すべてのナイターを引っ張ったときに起こります。ありがとう@Stryner! – Albert

+0

私はPHPに熟練していないので、わかりませんでした。私は今答えとしてそれを追加しました。 – Stryner

+0

<?php echo $ this-> Html-> script( '../ plugins/jQuery/jQuery-2.2.0.min.js')のようなスクリプトタグで 'echo'を使用します。 ?> –

答えて

1

スクリプトを出力していません。

関連する問題