View Single Post
  #2 (permalink)  
Old 08-06-2007, 04:17 PM
matias.quaglia's Avatar
matias.quaglia matias.quaglia is offline
Junior Member
 
Join Date: Aug 2007
Posts: 18
Default

Hi Twiddly, i'm not an expert, just a wannabe but i work in this way with ZF (I learned from the Akelos Project.

I work in a shared hosting webserver, so my file structure is something like

Code:
/.    ---------------->(something like /home/user_name/.)
   /zf
      /zf/library
      /zf/docs
      /zf/etc...

   /my_project
      /my_project/app
            /my_project/app/controllers
            /my_project/app/models
            /my_project/app/views
      /my_project/html

   /public_html
First of all I add to the include_path the lybrary located in ./zf/library. I do this through .htaccess:

Code:
<IfModule mod_php5.c>
	php_value include_path "/home/user_name/zf/library/."
</IfModule>
or through bootstrap in ./my_project/html/:

PHP Code:
ini_set('include_path',ini_get('include_path').'.:/home/user_name/zf/library'); 
Then, I just make a symbolic link between a folder in ./public_html (corresponding to a folder of an addon domain --i use cpanel to do this--) and /my_project/html.

If the /public_html folder of my_addon_domain.com is /public_html/my_addon, then i remove this folder and i create a soft link, with the same name than the folder:

Code:
ln -s /home/user_name/my_project/html/ my_addon
Then i can add many addon domains and use just the same lybrary in a single shared hosting account. This may cause serious perfomance problems, of course.

Hope this may give you some ideas.

Cheers.
__________________
Matías Quaglia
==========
http://www.matiasquaglia.com.ar
Credo est Creo
Reply With Quote