This file contains hidden or 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
# Things needed to be adapted : | |
# server_name my-domain.com | |
# | |
# root /home/www | |
# The root of the Symfony "web" folder (with app.php and app_dev.php in it). | |
# | |
# fastcgi_pass unix:/var/run/php5-fpm.sock | |
# This sock can be elsewhere (/var/run/php5-fpm/php5-fpm.sock for example...) | |
# | |
# There are other things needed to be changed/fixed. |
This file contains hidden or 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 | |
function searchCriteria($criteria){ | |
$cleanCritera = array(); | |
foreach($criteria as $key => $value){ | |
if( isset( $this->_class->fieldNames[$key] ) && !empty($value) ){ | |
$cleanCritera[$key] = $value; | |
} | |
} | |
if(empty($cleanCritera)){ |
NewerOlder