Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Extra safety tips - Safety between a programmer and designer

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Tips and Tricks
View previous topic :: View next topic  
Author Message
bimal
Smarty Elite


Joined: 19 Apr 2007
Posts: 423

PostPosted: Sat Mar 07, 2009 5:32 am    Post subject: Extra safety tips - Safety between a programmer and designer Reply with quote

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
View user's profile Send private message Visit poster's website
floridamary4
Smarty n00b


Joined: 28 May 2009
Posts: 1

PostPosted: Thu May 28, 2009 12:06 pm    Post subject: re: Reply with quote

thanks for your wonderful tips Smile
_________________
web design chennai
Back to top
View user's profile Send private message
jLix
Smarty Regular


Joined: 01 Apr 2009
Posts: 59
Location: Lowlands, EU

PostPosted: Fri May 29, 2009 10:07 pm    Post subject: Reply with quote

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 Wink
_________________
http://jlix.net/extensions/smarty
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Tips and Tricks All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP