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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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(function() { | |
$("form[name=myForm]").parsley(); | |
$("form[name=myForm]").on('submit', function(e) { | |
var f = $(this); | |
f.parsley().validate(); | |
if (f.parsley().isValid()) { | |
alert('This form is valid'); | |
$.ajax({ |
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
namespace Acme\ProjectBundle\Entity; | |
use Doctrine\ORM\Mapping as ORM; | |
/** | |
* @ORM\Entity | |
* @ORM\HasLifecycleCallbacks | |
* @ORM\Table(name="projects") | |
*/ |
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'), |
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
<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
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
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
$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
$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() |
OlderNewer