Zen Cart Logo
Forums / General Questions / Dreamweaver ZC import; can't view index.php

Dreamweaver ZC import; can't view index.php

Locked

Views: 3,030

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
17 Mar 2009, 12:05 PM
#1
nadsab avatar

nadsab

Totally Zenned

Join Date:
Sep 2004
Posts:
496
Plugin Contributions:
0

Dreamweaver ZC import; can't view index.php

Hi,

This is probably a dumb question - I just created and imported a zen cart store into Dreamweaver 4. I can see all the ZC store files in the files tab, but when I click on index.php it is not fully viewable in design mode, live view or via browser - the code however is viewable in code view. What am I missing?

I can see the zen cart logo at the bottom of the page, the copyright info and some empty php placeholder icons, but that's about it. None of the page formatting as it appears on the live server is viewable.

17 Mar 2009, 12:14 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Dreamweaver ZC import; can't view index.php

Dreamweaver is for html code design - - ZenCart is not html and is php - - So the page does not exist and is built from pieces and Dreamweaver can not be used for design of a php application

17 Mar 2009, 12:22 PM
#3
nadsab avatar

nadsab

Totally Zenned

Join Date:
Sep 2004
Posts:
496
Plugin Contributions:
0

Re: Dreamweaver ZC import; can't view index.php

kobra:

Dreamweaver is for html code design - - ZenCart is not html and is php - - So the page does not exist and is built from pieces and Dreamweaver can not be used for design of a php application

Incorrect. Dreamweaver 4 comes fully equipped for dynamic content work and comes fully equipped for editing and creating dynamic content sites written in PHP-MySQL, ASP, JSP, CSS, javascript, etc sites. It also is capable of authoring in AJAX in the form of Spry datasets. Maybe five years ago Dreamweaver could not do PHP, but Dreamweaver has come a long way and it's amazing what that application can do. HTML editing is now just a very small part of Dreamweaver capabilities.

I just installed a php-MySQL site into dreamweaver and all the pages were fully viewable. Just can't get ZC to show.

I also just installed WAMP locally on local PC to import, access and edit database tables.

17 Mar 2009, 1:00 PM
#4
nadsab avatar

nadsab

Totally Zenned

Join Date:
Sep 2004
Posts:
496
Plugin Contributions:
0

Re: Dreamweaver ZC import; can't view index.php

Oops, I think I figured out part of the problem duh. Although I installed the ZC store dir into Dreamweaver via site manager I did not import the store database. I'll load that locally onto desktop to see if that works which it should...

For the simple test site I was editing (not a zen cart store), I had imported the database files via WAMP.

That brings me to another question - has anyone reading this ever used WAMP to import a ZC store database onto a local machine for editing store files in Dreamweaver? if so, how is it working out for you? Fairly easy to import a ZC database into WAMP? Any suggestions as far as importing is concerned?

18 Mar 2009, 5:38 PM
#5
nadsab avatar

nadsab

Totally Zenned

Join Date:
Sep 2004
Posts:
496
Plugin Contributions:
0

Re: Dreamweaver ZC import; can't view index.php

BTW Cobra,

I did not mean to sound snarky in yesterday's post, I was just excited to learn about WAMP and PHP, I guess I'm easily impressed by newly learned about applications.

18 Mar 2009, 6:10 PM
#6
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Dreamweaver ZC import; can't view index.php

has anyone reading this ever used WAMP to import a ZC store database onto a local machine for editing store files
Yes, but not to edit zencart files in Dreamweaver

1 Mar 2010, 7:14 PM
#7
s2_operations avatar

s2_operations

New Zenner

Join Date:
Jan 2010
Location:
Menifee, Ca
Posts:
4
Plugin Contributions:
0

Re: Dreamweaver ZC import; can't view index.php

nadsab:

That brings me to another question - has anyone reading this ever used WAMP to import a ZC store database onto a local machine for editing store files in Dreamweaver? if so, how is it working out for you? Fairly easy to import a ZC database into WAMP? Any suggestions as far as importing is concerned?

Yes, the import is easy. Save your SQL file you want to export using the SQL file format. Save to desktop. Open WAMP or MAMP on local local machine and go to "import file". Because you saved the file format in SQL there is no problems with translations. My database executed in a matter of seconds with no problems.

As far as editing Zen Cart files in Dreamweaver, it is much easier than using the Zen Cart Cpanel as you can jump from page to page and links are updated on the fly.

The hardest problem I had with getting ZC to open in Dreamweaver was the database connection:frusty:. Because my site was live and then imported to my local machine, several files had to be updated manually because DW was not loading them. DW could not load them because the files were still pointing to my database files on my live server.

I overcame the issue by installing a brand new copy of ZC on my local machine with the same database name, user name, passwords etc that were on the live server. I then deleted all the files from the new install and imported my files from the live site.

In the end I still needed to update the includes/configuration.php and admin/include/configuration.php files where https://www.mysite.com is now pointing to /localhost/:cool:

1 Mar 2010, 7:35 PM
#8
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: Dreamweaver ZC import; can't view index.php

S2 Operations:

I overcame the issue by installing a brand new copy of ZC on my local machine with the same database name, user name, passwords etc that were on the live server. I then deleted all the files from the new install and imported my files from the live site.

I trust you are aware that the inverse of this action, while possible, will result in topical data in your server's database being erased...