RIA server filesystem architecture
The /opt directory can be used to store shared components, as follows:
/opt/os - All open source components
- /dojo - http://dojotoolkit.org - and other javascript libraries
- /Smarty - http://smarty.net - template engine
- /Zend - http://framework.zend.com - Zend framework
- /applications - all applications that can be shared as distributed.
/opt/common - All common scripts, such as form validation for contact us forms, anti-spam code.
/antispam
- /html - (html and javascript) - to assist the user
- /php - to protect the server
- /footer - Footer text, specifically the company name and copyright indicator. This ensures it can be changed in one place to update every page on the server.
New accounts could access these components like so:
ln -s /opt/os/dojo
ln -s /opt/os/Smarty
ln -s /opt/os/Zend
ln -s /opt/common/html
ln -s /opt/common/php
ln -s /opt/common/footer
These links allow relative references to the common resources, while providing central sourcing.
Print article | This entry was posted by elvis on 09/01/08 at 08:01:51 am . Follow any responses to this post through RSS 2.0. |