I am a new comer to Zend Framework. I must understand how to implement zend framework on the hosting that is shared. Due to the zend framework folder structure all view files they fit in to the "public" folder.

Suppose

"/" may be the primary root folder for me personally and public is much like "/public"

to ensure that the url becomes "http://site/public/. .. .bla bla..."

is correct?

or perhaps is there every other method?

i do not have any permission to produce a virtual host.

what exactly to complete?

Hopefully you understood my question. Otherwise, please request me.

Thanks!

i believe the easiest way would be to take away the .htaccess in the public directory (Zend Framework Directory structure) , and set it using the following content to your "root" directory :

 

RewriteEngine On

RewriteRule ^.htaccess$ - [F] RewriteCond % ="" RewriteRule ^.*$ /public/index.php [NC,L]

RewriteCond % !^/public/.$ RewriteRule ^(.)$ /public/$1 RewriteCond % -f RewriteRule ^.*$ - [NC,L]

RewriteRule ^public/.*$ /public/index.php [NC,L]

Include this .htacces file beneath your base path (that's /../public):

RewriteEngine On

# Exclude some sites from URI spinning

#RewriteRule ^(dir1dir2dir3) - [L]

RewriteRule ^.htaccess$ - [F]

RewriteCond % =""

RewriteRule ^.*$ /public/index.php [NC,L]

RewriteCond % !^/public/.*$

RewriteRule ^(.*)$ /public/$1

RewriteCond % -f

RewriteRule ^.*$ - [NC,L]

RewriteRule ^public/.*$ /public/index.php [NC,L]

And then leave the .htaccess which was underneath the publc directory where it had been.

So you'll have two .htaccess files, one underneath the public directory (the regular one from Zend Framework documentation) and 2nd one beneath your base path (the main one I published above).

Indeed it isn't the very best idead to operate Zend Framework programs on the hosting that is shared. I'd really recommend obtaining a virtual private hosting (VPS). You will find excellent and affordable hostings available with Zend Framework along with other frameworks already installed and regularly up-to-date. I am on servergrove and contains been great to date!

But this does not imply that you cannot have great results on the hosting that is shared. You just need to rather use .htacess. Place the content from the public folder to your webroot and adjust your pathways within the bootstrap.php, make certain other folders can't be accesses directly and employ the typical ZF approach of routing everything using your index.php.

I have experienced exactly the same situation and also have place the zend libraries within folder under public like 'src' - and employ an .htaccess Deny all. You will need to juggle a few pathways, however it works fine.

. . . How Magento uses Zend framework??? I am using XAMPP and that i did install Magento in your area without modify php.ini, http.conf nor virtual host.