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
$(document).ready(my_function); //you have a function its name my_function. You can call this after page load | |
Or //bir fonsiyonunuz var diyelim adı my_function olsun. sayfa yüklendikten sonra böyle çağırabilirsiniz | |
$(document).ready(function () { | |
// Function code here. //buraya isterseniz kodlarınızı yazıp bir fonksiyon oluşturabilirsiniz | |
}); |
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
$date = new \DateTime('now'); // today (bugün) | |
$dogum_gunleri = $em->createQueryBuilder() | |
->select('p') | |
->from('CoreCommonBundle:YourEntity','p') | |
->where('p.school=:school') | |
->andWhere('p.birthday LIKE :birthday')// LIKE important | |
->setParameter('okul',$okul) | |
->setParameter('birthday', '%'.$date->format('m-d').'%')//this is important format must be (m-d) and must be % |
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
$('table').dataTable({ | |
"aaSorting": [[ 0, "desc" ]] // Sort by first column descending. (ilk kolona göre sıralama yapar) | |
//0 first colomn 1 second like a array (0 ilk kolon 1 ikinci array gibi ) | |
}); |
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
$soft_delete_konular=$em->createQueryBuilder() | |
->select('s') | |
->from('CoreCommonBundle:Konu','s') | |
->where('s.isSoftDeleted =:delete') | |
->andWhere('s.gonderici =:gonderici OR 's.alici =:alici') | |
göndericisi x kişisi olan veya alıcısı x kişisi olan demek için OR araya konur | |
->setParameter('delete',1) | |
->setParameter('gonderici',$kimlik) | |
->setParameter('alici',$kimlik) | |
->getQuery() |
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->container->get('request_stack')->getCurrentRequest()->getClientIp(); |
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
app/config/parameters.yml | |
mailer_transport: gmail | |
mailer_encryption: ssl | |
mailer_auth_mode: login | |
mailer_host: smtp.gmail.com | |
mailer_user: [email protected] | |
mailer_password: şifreniz | |
app/config/config_dev.yml |
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
if($this->get('security.authorization_checker')->isGranted('ROLE_YONETICI')){ | |
} |
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
<input type="text" style="text-transform:uppercase;" on keyup="javascript:this.value=this.value.toUpperCase();"> |
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
<input size="{{ musteri.adsoyad|length+2 }}" value="{{ musteri.adsoyad|upper }}" onkeyup="f(this)"> | |
function f(bu){ | |
if(bu.size) {bu.size=bu.value.length+2}; | |
} |
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
/* | |
il gönderdik | |
*/ | |
$("#il").select2({ | |
maximumSelectionLength: 1, | |
allowClear: true, | |
theme: "bootstrap", | |
ajax:{ | |
url: Routing.generate('sehir'), |