Render twig template out of controller in Symfony

Is there any way to render a twig template out of controller ? I want that the route of this file will not be accessible before validating an Ajax call that check the Login of admin.
Something like:

success: function(result) { 
  if(result[0]==username && result[1]==password){
    alert("Login success");

Source: Symfony Questions

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *