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
#EXTM3U | |
#EXTINF:-1,Первый | |
http://37.192.100.141:81/udp/239.1.15.1:1234 | |
#EXTINF:-1,Россия 1 | |
http://37.192.100.141:81/udp/239.1.15.2:1234 | |
#EXTINF:-1,НТВ | |
http://37.192.100.141:81/udp/239.1.15.4:1234 | |
#EXTINF:-1,Пятый | |
http://37.192.100.141:81/udp/239.1.10.3:1234 | |
#EXTINF:-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
/** | |
* Init phone verification | |
* | |
* @return Response | |
* @throws Exception | |
*/ | |
public function phoneVerificationAction() | |
{ | |
$em = $this->getDoctrine()->getManager(); | |
$request = $this->getRequest(); |
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
function form_callback(target) | |
{ | |
target = $(target); | |
$.ajax({ | |
url: target.attr('action'), | |
type: target.attr('method'), | |
data: target.serialize(), | |
dataType: 'json', | |
beforeSend: function() { | |
//clear errors |
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
class FormErrorsSerializer { | |
public function serializeFormErrors(\Symfony\Component\Form\Form $form, $flat_array = false, $add_form_name = false, $glue_keys = '_') | |
{ | |
$errors = array(); | |
$errors['global'] = array(); | |
$errors['fields'] = array(); | |
foreach ($form->getErrors() as $error) { | |
$errors['global'][] = $error->getMessage(); |