|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
bimal Smarty Elite
Joined: 19 Apr 2007 Posts: 423
|
Posted: Sat Mar 07, 2009 5:32 am Post subject: Extra safety tips - Safety between a programmer and designer |
|
|
Seeing some programmers and designers around, messing up the things; I now think about safety tips; to disallow a programmer access the templates and a designer to access the core php.
If some of you are now confident with using Smarty and know all the aspects about safety of your application's programming section, you can do the following, if you have enough permissions:
Maintain the .php and .tpl files in separate directories, accessible by different FTP users.
This idea can be good enough for safety now onwards. Here are few of my guide lines how to structure your website:
Take two folders, for example: core and smarty templates in your website. Create two different ftp users in these locations. Give core php location to the programmer, and smarty templates to the designer, if you work remotely.
Now, your application is safe.
<core php>
... configs
... other php functions
... business logic and processing
<smarty>
... main smarty file
... main template files
... compiles directory
... theme's plugins, if needed
... Just the template related files
Where, core and smarty locations are under different ftp users for a single website. Just make sure that your smarty and other php configurations are correct, to work the things out, correctly. |
|
Back to top |
|
floridamary4 Smarty n00b
Joined: 28 May 2009 Posts: 1
|
Posted: Thu May 28, 2009 12:06 pm Post subject: re: |
|
|
thanks for your wonderful tips _________________ web design chennai |
|
Back to top |
|
jLix Smarty Regular
Joined: 01 Apr 2009 Posts: 59 Location: Lowlands, EU
|
Posted: Fri May 29, 2009 10:07 pm Post subject: |
|
|
The backend developer can still assign some <blink> or <marquee> tags to a template variable and the front-end developer can mess up the logic equally using {php}.
So it's better that they agree not to do so and instead make jokes about the designer who, of course, wears these glasses with a thick black square frame _________________ http://jlix.net/extensions/smarty |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|