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 AppBundle\Form; | |
use Symfony\Component\Form\AbstractType; | |
use Symfony\Component\Form\FormBuilderInterface; | |
use Symfony\Component\OptionsResolver\OptionsResolver; | |
use Symfony\Bridge\Doctrine\Form\Type\EntityType; |
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
[XDebug] | |
zend_extension = "c:\xampp\php\ext\php_xdebug.dll" | |
xdebug.profiler_append = 0 | |
xdebug.profiler_enable = 1 | |
xdebug.profiler_enable_trigger = 0 | |
xdebug.profiler_output_dir = "c:\xampp\tmp" | |
xdebug.profiler_output_name = "cachegrind.out.%t-%s" | |
xdebug.remote_enable = 1 | |
xdebug.remote_handler = "dbgp" | |
xdebug.remote_host = "127.0.0.1" |
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
"Invalid credentials." : Invalid credentials. |
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
parameters: | |
# .... | |
# working mailer | |
mailer_transport: gmail | |
mailer_host: smtp.gmail.com | |
mailer_user: [email protected] | |
mailer_password: passwordForEmail |
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
/* | |
* Note: | |
* LocalStorage is kept indefinitely. Something to consider when data privacy is concern | |
*/ | |
// Run on page load | |
window.onload = function() | |
{ | |
// If sessionStorage is storing default values (ex. name), exit the function and do not restore data | |
if (sessionStorage.getItem('name') == "name") { |
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
<html> | |
<head></head> | |
<body> | |
<form> | |
<input id="candidate_firstname" name="firstname" required="required" class="gui-input" dir="rtl" type="text" /> | |
<input id="candidate_lastname" name="lastname" required="required" class="gui-input" dir="rtl" type="text" /> | |
</form> | |
<script type="text/javascript"> | |
function restrictInputOtherThanArabic($field) |
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 type="text/javascript"> | |
jQuery(document).ready( | |
function() { | |
$(document).on("focus", ".dateInput", function() { | |
$(this).mask("99/99/9999"); | |
}); | |
} | |
); | |
</script> |
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 AppBundle\Entity\Traits; | |
use Doctrine\ORM\Mapping as ORM; | |
/** | |
* Adds created at and updated at timestamps to entities. | |
* Entities using this must have HasLifecycleCallbacks annotation. | |
* |
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
# Cache and logs (Symfony2) | |
/app/cache/* | |
/app/logs/* | |
!app/cache/.gitkeep | |
!app/logs/.gitkeep | |
# Email spool folder | |
/app/spool/* | |
# Cache, session files and logs (Symfony3) |
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
/* | |
* Automatically logout user in 1 hour on no activity | |
*/ | |
setTimeout(function(){ | |
window.open("http://www.yoursite.com/user/logout", "_self") | |
}, 1000*60*60); // logout in 1 hour |
OlderNewer