Bonjour j'aimerai intègrer jquery dans mon application mais à ma grande surprise ca marche pas voici mon code :
layout:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 <?php $this->headMeta()->appendHttpEquiv('Content-Type','text/html;charset=utf-8'); $this->headTitle()->setSeparator(' - '); $this->headTitle('Application de gestion de ventes'); echo $this->doctype(); ?> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr"> <head> <?php echo $this->headMeta(); ?> <?php echo $this->headTitle(); ?> <?php //echo $this->headLink()->prependStylesheet($this->baseUrl().'media/css/demo_table.css'); ?> <?php echo $this->headScript()->appendFile($this->baseUrl().'media/js/jquery.js')?> <?php echo $this->headScript()->appendFile($this->baseUrl().'media/js/jquery.dataTables.js')?> <?php //echo $this->headScript()->appendFile($this->baseUrl().'media/js/jquery.dataTables.js');?> </head> <body> <div id="content"> <h1> <?php echo $this->escape($this->title); ?> </h1> <?php echo $this->layout()->content; ?> </div> </body>
vue:
une personne pourrait il m'aider à resoudre celà
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38 <html> <head> <?php echo $this->headMeta() ?> <?php echo $this->headScript() ?> <?php echo $this->headStyle() ?> <script> $(document).ready(function(){ $("p").click(function(){ $(this).hide(); }); }); </script> </head> <?php $this->title = "Les produits"; $this->headTitle($this->title); ?> <table id="datatables" class="display"> <tr> <th>Nom produit</th> <th>Detail</th> <th>Prix</th> </tr> <?php foreach($this->produits as $produits): ?> <tr> <td><?php echo $this->escape($produits->nomproduit); ?></td> <td><?php echo $this->escape($produits->detailproduit); ?></td> <td><?php echo $this->escape($produits->prixproduit); ?></td> </tr> <?php endforeach; ?> </table> <p>If you click on me, I will disappear.</p> <p>Click me away!</p> <p>Click me too!</p> </html>
Partager