Created
July 9, 2013 10:22
-
-
Save spolischook/5956297 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Отак вар дамп выводится | |
private function viewToNorm($value) | |
{ | |
$transformers = $this->config->getViewTransformers(); | |
if (!$transformers) { | |
return '' === $value ? null : $value; | |
} | |
for ($i = count($transformers) - 1; $i >= 0; --$i) { | |
var_dump($transformers); | |
$value = $transformers[$i]->reverseTransform($value); | |
} | |
return $value; | |
} | |
//А вот так нет!!! | |
private function viewToNorm($value) | |
{ | |
$transformers = $this->config->getViewTransformers(); | |
if (!$transformers) { | |
return '' === $value ? null : $value; | |
} | |
for ($i = count($transformers) - 1; $i >= 0; --$i) { | |
$value = $transformers[$i]->reverseTransform($value); | |
var_dump($transformers); | |
} | |
return $value; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment