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
$.each(monTableau, function(i){ | |
if(monTableau[i].unAttribut == ceQueJeCherche) { | |
monTableau.splice(i,1); | |
return false; | |
} | |
}); | |
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
//check que le driver est bien le driver associé au contrat | |
$this->getUser() != $this->get('partenaire_conducteur_service_propose_mission_service')->getMissionDriver($mission) |
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
// Changement du pointeur (alias) de commande PHP pour rediriger vers le PHP de MAMP | |
alias php="/Applications/MAMP/bin/php/php7.0.15/bin/php" |
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
$this->getUser() |
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
//find all object from ObjectClass | |
$this->getDoctrine()->getRepository(ObjectClass::getClass())->findAll() | |
//save object | |
$this->getDoctrine()->getManager()->flush($object); |
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
Yii::$app->cache; | |
Yii::$app->cache->get($key); | |
Yii::$app->cache->set($key, $object, $time); | |
Yii::$app->cache->getOrSet($key, function() use() { | |
return $something; | |
}, $time); |
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
Yii::$app->user; |