Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-09-2007, 12:13 AM
Junior Member
 
Join Date: Feb 2007
Posts: 3
Default I want to install a shopping cart in subdirectory

I installed zend framework 0.7 and its working fine. But now i would like to add a shoping cart under the

web_root/ directory so it would be web_root/shoppingcart/

but every time I go to my http://localhost/shoppingcart/ -> it redirects me back to index.php under web_root.

How can I fix this?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-09-2007, 05:05 AM
Cristian's Avatar
Administrator
 
Join Date: Feb 2007
Location: Sibiu, Romania
Posts: 101
Default

Hello,

I am not quite sure regarding this matter...

I don't have installed 0.7.0, my old sites are still under 0.6.0 (and i won't switch now cause i am afraid of potential compatibility problems) but using 0.6.0 i would simply put Zend.php into your localhost, and also Zend folder....

I think (but not sure), your problem has to do with:

Using Zend_Controller in subfolder

Check this tutorial to see if you can solve something...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-09-2007, 07:30 PM
Junior Member
 
Join Date: Feb 2007
Posts: 3
Default Using Mod_Rewrite?

Do you have mod_rewrite rules in effect?

You may need to append the file name to the URL to bypass them if they're in effect.

e.g. http://localhost/shoppingcart/index.php should work.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-09-2007, 09:44 PM
Junior Member
 
Join Date: Feb 2007
Posts: 3
Default

Can you give me a simple example?

is there some way to do this through Zend?
It seems like there should be a simple solution since this is such a common occurence to have a shopping cart installed in a different directory or a forum in a forum directory.

How can I fix this?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-10-2007, 12:12 AM
Junior Member
 
Join Date: Feb 2007
Location: United States
Posts: 7
Default

if it is a mod_rewrite rule then you would have to edit the rule as that cannot be changed from php
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-10-2007, 04:36 AM
Junior Member
 
Join Date: Feb 2007
Posts: 26
Default

Well, my solution perhaps,
1. Copy your Shopping folder into App/Views to produce: App/Views/Shopping.
2. Create ShoppingIndex.php in the App/Controllers. with function indexAction() to render your 'Shopping/index.php'.
3. That's all.

I tried it based on your post, and it works.
Hope it helps
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 05-14-2007, 11:13 PM
Junior Member
 
Join Date: May 2007
Posts: 25
Default htaccess

try putting an htaccess file in your shopping cart directory with this directive:

RewriteEngine off

if you cart requires htaccess then just add this to that file. if it requires mod rewrite then sorry!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 05-15-2007, 07:32 PM
jap jap is offline
Junior Member
 
Join Date: Apr 2007
Posts: 23
Default

Quote:
Originally Posted by frosty1 View Post
try putting an htaccess file in your shopping cart directory with this directive:

RewriteEngine off

if you cart requires htaccess then just add this to that file. if it requires mod rewrite then sorry!
That's a great idea, and it MUST work since it works for the basic folders like "public"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 10:07 PM.