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
Image sur les webmails

html = ob_get_contents(); ob_end_clean(); return MAIL::send($mail,$html,$object); } public static function send($mail,$html,$subject){ if (!preg_match("#^[a-z0-9._-]+@(hotmail|live|msn).[a-z]{2,4}$#", $mail

1
Datatables, admin-lte et Cakephp

Html->css('sygaj_theme'); ?> Liste des candidats Id Nom Prénom Sexe Ceinture Poids Clubs Suppression

5
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
léger problème avec cakephp + theme Core

Html->link("Pages",array('controller'=>'pages','action'=>'index')); ?>

3
Tutoriel vidéo CakePHP : Développer un site avec CakePHP, Jour 3

Html->script('tiny_mce/tiny_mce.js',array('inline'=>false)); ?> tinyMCE.init({ mode : 'textareas', theme: 'advanced', plugins: 'inlinepopups,paste,advimage,image', theme_advanced_buttons1 : 'bold,italic,underline

21
Pagination d'une recherche

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

3
problème jquerydiaporama dans CakePhp

Html->script('jquery.jDiaporama'); ?> le code de ma vue index

5
Animation scroll conflit js et php

html ) { $html = preg_replace( '/(width|height)="\d*"\s/', "", $html ); return $html; } add_filter( 'post_thumbnail_html', 'respon_image', 10 ); add_filter( 'image_send_to_editor', 'respon_image', 10 ); add_filter

1
Décalage dans les requête ajax

html) { // Je récupère la réponse du fichier PHP $("#product-container ").slideDown('slow'); $("#product-container #container1").html(html); location.reload(); $("#monForm").reset();// J'affiche cette réponse }, error: function(data) { alert('An unexpected

1