bonjour Tous,

j'ai constaté que les chemins que je declare vers le webroot ne chargent pas les elements:

j'ai declaré les chemins pour charger le jquery pour mon datepicker dans ma vue add:

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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
 
    <script>
		$(function() {
			$( "#datepicker" ).datepicker();
		});
    </script>
 
<div class="programs form">
	<?php echo $this->Html->css('jquery-ui-1.10.4.custom.min'); ?>
	<?php echo $this->Html->script('jquery-ui-1.10.4.min'); ?>
	<?php echo $this->Html->script('jquery-ui-1.10.4.custom.min'); ?>
 
<?php echo $this->Form->create('Program', array(
    'inputDefaults' => array(
        'class' => 'form-horizontal',
		'id' => 'form-validate',
        'action' => 'forms-validation.html'
        ))
    )
; ?>
 
	<fieldset>
		<legend><?php echo __('Ajouter un Projet'); ?></legend>
	<div class="form-row row-fluid">
			<div class="span6">
				<div class="row-fluid">
					<?php
						echo $this->Form->input('datedebut', array('label' => '<p style="font-weight:bold; text-decoration:underline;">Debut</p>',
								'id'=> 'datepicker', 'type' =>'text', 'value' => date('d-M-Y')));
 
								echo $this->Form->input('datefin', array('label' => '<p style="font-weight:bold; text-decoration:underline;">Fin</p>',
								'id'=> 'datepicker', 'type' =>'text', 'value' => date('d-M-Y')));
 
 
					?>
				</div>
			</div>
        </div>
	</fieldset>
 
						<div class="submit">							 
							<button class="btn marginR10">
								<span class="minia-icon-checkmark-2"></span>
								<?php echo $this->Form->submit(__('Valider', true), array('name' => 'ok', 'div' => false));
								?>								
							</button>
 
							<?php //echo $this->Form->submit(__('Cancel', true), array('name' => 'cancel','div' => false)); ?>
 
							<button class="btn marginR10">
							<span class="icomoon-icon-list-view"></span>
							<?php echo $this->Html->link(__('Listes'), array('action' => 'index')); ?>
							</button>
 
						 </div>
						  <?php echo $this->Form->end();?>
</div> 
 
</div>
* j'ai telechargé la librairie du jquery

* j'ai copié les js du jquery dans le dossier \app\webroot\js\

* j'ai copié les css du jquery dans le dossier \app\webroot\css\


svp montrez-moi mon erreur, pourquoi ça ne charge pas le jquery? merci