Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

recently I started to use Twig as template engine and I need to do something like this:

var getEmail = function(value){
  $.get( {{ path( 'user_validate_email', { 'email': value } ) }} );
};

by doing this I get an error like "value" is not defined

Can anyone tell me the best way to do that.

Thnx

share

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.