Welcome Guest, Not a member yet? Register   Sign In
view - template engine, smarty
#1

[eluser]searain[/eluser]
Use template engine for the view in CI?

In addition to that "designers" can understand the view pages better, what other advantages template engine can have?

I have been using "meaningful" variable names, and I usually embed php into html when I can instead of use php to generate html, and I have been working with php tag knowledgeable designers, so I don't have the big problems for the designers to understand the "view" pages to format them.

But if I want my CI view pages be able to be understood by designers universally, I should use template engine? Or is it not really necessary?

If template engine would be used, how about smarty? I found smarty has a CI library now. Any advices or recommendations? any other template engine you would recommend, etc.?

I used smarty for a small project before, I could see some advantages but didn't see these advantages worth the efforts to use smarty in that project. But it was a small individual project, one time deal, it cannot veto the advantages to use smarty in other projects.

Any opinions?

Thanks!
#2

[eluser]Dennis Rasmussen[/eluser]
http://philsturgeon.co.uk/code/codeigniter-template
#3

[eluser]codecreator2010[/eluser]
I advise you to try Codelobster PHP Edition.
It's free Portable PHP editor, which can be named valuable IDE.
Basic features are:
PHP, HTML, JavaScript, CSS code highlighting
PHP, HTML, JavaScript, CSS autocomplete
PHP, HTML, JavaScript, CSS context and dinamyc help
PHP Debugger
Code folding (collapsing)
Pair highlighting, pair selection, tags and attributes selection commands
Navigation by holding CTRL key for all links, includes and definitions
Preview in all browsers
FTP/SFTP support
HTML/CSS code insector

I was really impressed possibility Portable and last point - HTML/CSS code insector.
It allows navigation on HTML code and CSS for visual selected element, and changes
making not in objective model, like in Chrome or FireBug, but in source.
http://www.codelobster.com




Theme © iAndrew 2016 - Forum software by © MyBB