optimisation d'une fonction de sécurisation de données (sanitize)

Html_entities($var); } if(is_array($var)) return (object) array_map( __FUNCTION__ , Html_entities($var)); return (object) Html_entities($var); } /** * * **/ function Html_entities($var){ if(!is_callable('filter_var')){ if(is_array

6
Problème intégration dropdown bootstrap twitter cakephp

Html->script('bootstrap.js'); ?> et mon header la ou je veux utilisé le dropdown

2
Cakephp 3 : Pagination et Ajax

html issue d'une vue créer pour l'occasion. ``` $.ajax({ url: "/pages/projets", data: { page: currentPage, categorie: $(this).val() }, dataType: 'html', type: 'get', success: function (html) { $(".list-projet").html(html); } }) ``` Jusque

0
Petit problème de charset

Html->image("icons/add_message.png",array('alt'=>'Add Message','url' => array('controller' => 'story', 'action' => 'addmessage', $storyAuthor'stories']'id'])));?>

8
soucis avec cakephp et caroufredsel

Html->script('javascript'); ?> j'ai importE ma librerie caroufredsel, jrquery et mon javascript, tous se trouvant dans le dossier js \*\*Dans "view/elements/mon\_code\_html

5
Tuto jour 5 A-->Z (éditer un article)

html.=' '; }elseif ($options['type']=='textarea') { $html.=' '.$this->controller->request->data->$name.' '; }elseif ($options['type']=='checkbox') { $html.=' '; } $html .=' '; return $html; } } ?>[/code] admin\_edit.php [code] # Editer Un Article

1
Pagination d'une recherche

Html->link(__('Nouvelle Personne'), array('action' => 'add')); ?>

3
la classe form tuto A à Z jour 5

options as $k => $v) { if ($k!='type') { # code... $attr .= " $k=\"$v\""; } } if (!isset($options'type'])) { $html .=' '; }elseif ($options'type']=='textarea') { $html .=' '.$this->controller->request->data->$name.' '; }elseif ($options'type']=='checkbox') { $html .=' '; } $html .=' '; return $html; } }

4
tuto espace membre

Html->link('Me rappeller mon mot de passe',$this->Html->url($link,true)); ?> et voici celui de l'activation: Bonjour Pour activer ce compte suivez le lien

3
Notice (8): Undefined variable: animal [CakePHP2]

Html->link( 'Ajouter un Animal', array('controller' => 'animaux', 'action' => 'add') ); ?>

5