![]() ![]() BTW, this mix of PHP and HTML approach you will find virtually in any PHP book, especially aimed for beginners (at the end of the day that's is how PHP was intended to be used in first place).Īs to the question - why it was not set when you applied a theme - I don't really know, except that this was not part of the theme (I'm basic on the fact that this is a theme for Ruby. But what if you use mix of PHP and HTML (and/or CSS, JS etc) on the same page (the fastest in terms of performance, since it does not include template engine initialisation/parsing)? In this case you can use this setting to easily visually separate PHP code from the rest text on the page (so you can easily see where PHP and where HTML is - just setup suitable background colour). For such scenario this "PHP code" settings (background colour) means nothing. So, my PHP file is one single tag (just plain code/class declaration). or for styling the elements (zebra styling) or sometimes you need to pass some variable from main script/DB to a JavaScript code etc), but you can do it to a some degree. It's not always possible to separate them completely (as you still have to use some logic even in Smarty templates, like cycles. Identifier: Used this in a few places.I do not know about you or other PHP programmers, but I'm tying to separate logic (PHP, JS) from presentation (HTML, CSS) by using Smarty.Brace Matching (Rectangle): General->Matched brace (background).Selected Text: split between General->Selection background and General-Selection foreground.Comment: Java->Line comment
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |