>
> But... at the end of the day, my IDE (PHPStorm) is totally confused by the 
> html extension. Is this a shortcoming of my IDE or something that'll confuse 
> many people?
>
I was thinking this over as well, specially with php templates.
Even though it's something minor, editors will usually highlight the html 
and the php sections for a file that ends in .php (for a php template).
A file that ends in .html doesn't get any syntax highlighting inside the 
<?php ?>. And a file.php.php would look even more weird.

Twig is not that big of an issue as there isn't much of Twig syntax 
highlighting in editors yet, so an .html file will at least highlight the 
html part and not the twig section.

The one thing I think new users might find a bit confusing at first is using 
php templates, with routing that doesn't display any extensions (just 
because of the verbosity of the template "extensions"). Though again, 
nothing to worry about too much.

Ex. in the sandbox
in the routing
hello:
pattern: /hello/{name}
defaults: { _controller: HelloBundle:Hello:index }

In the controller:
return $this->render('HelloBundle:Hello:index.php.html', array('name' => 
$name));

Yet the url we are creating is:
http://myapp.com/hello/myName  (without any extensions even though there are 
two on the name of the template).

Overall, I like better the explicitness of it all in the core, as it is now. 
Magic can be set later on by the user, or with an optional Bundle, if 
needed. Just trying to point out small things that might come up.

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to