web:php:cakephp20
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
web:php:cakephp20 [2014/10/19 02:27] – [POST /users/1234/votes] sgariepy | web:php:cakephp20 [2022/02/02 00:42] (Version actuelle) – modification externe 127.0.0.1 | ||
---|---|---|---|
Ligne 114: | Ligne 114: | ||
); | ); | ||
</ | </ | ||
+ | |||
+ | |||
+ | ===== API Key ===== | ||
+ | |||
+ | |||
+ | |||
+ | ===== Sources ===== | ||
+ | * http:// | ||
+ | * https:// | ||
+ | * http:// | ||
+ | ====== Debug code ====== | ||
+ | |||
+ | |||
+ | <code php> | ||
+ | /** | ||
+ | * Prints out debug information about given variable. | ||
+ | * | ||
+ | * Only runs if debug level is greater than zero. | ||
+ | * | ||
+ | * @param boolean $var Variable to show debug information for. | ||
+ | * @param boolean $showHtml If set to true, the method prints the debug data in a screen-friendly way. | ||
+ | * @param boolean $showFrom If set to true, the method prints from where the function was called. | ||
+ | * @link http:// | ||
+ | */ | ||
+ | function debug($var = false, $showHtml = false, $showFrom = true) { | ||
+ | if (Configure:: | ||
+ | if ($showFrom) { | ||
+ | $calledFrom = debug_backtrace(); | ||
+ | echo '< | ||
+ | echo ' (line < | ||
+ | } | ||
+ | echo " | ||
+ | |||
+ | $var = print_r($var, | ||
+ | if ($showHtml) { | ||
+ | $var = str_replace('<', | ||
+ | } | ||
+ | echo $var . " | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | [[http:// | ||
+ | |||
+ | |||
====== Références ====== | ====== Références ====== | ||
* [[http:// | * [[http:// |
web/php/cakephp20.1413678462.txt.gz · Dernière modification : 2022/02/02 00:43 (modification externe)