Bonjour
Dans ma view, j appele une fonction js sur un onclick.
echo"<option id=".$id." onclick='new Ajax.Updater(" . '"' . "div2".
'"' . ", " . '"' . $id. '"'.")'>".$sectors['Sector']['name']."</
option>";
layout :
<html>
<head>
<?php
print $html->charsetTag('UTF-8');
print $javascript->link('prototype');
print $javascript->link('ajax');
print
$javascript->link('scriptaculous.js?load=effects');
?>
</head>
<body>
<?php
echo $content_for_layout;
?>
</body>
</html>
a l execution j ai ce message d errreur:
Notice: Undefined variable: javascript in C:\xampp\htdocs\cake\app
\views\layouts\default.thtml on line 5
Fatal error: Call to a member function link() on a non-object in C:
\xampp\htdocs\cake\app\views\layouts\default.thtml on line 5
dpoit pour print $javascript->link('prototype');
pourtant les libraries sont bien le webroot/js
Que faire?
--~--~---------~--~----~------------~-------~--~----~
Groupe "Cakephp-fr".
Adresse : [email protected]
Pour résilier : [EMAIL PROTECTED]
Pour les options : http://groups.google.com/group/cakephp-fr?hl=fr
-~----------~----~----~----~------~----~------~--~---