Solved

Zend Quickstart not displaying view/scripts/guestbook/index.phtml

Posted on 2010-11-29
6
4,718 Views
Last Modified: 2013-11-10
the url localhost/guestbook seems to be using the application/layouts/scripts/layout.phtml file but not attaching the  additional markup from application/views/scripts/guestbook/index.phtml which should be calling the database.  I don't get any errors.  It just returns the layout (see image guestbookLayout.png).  The image file "shouldLookLikeThis.png" is what it is supposed to return at this point.

I am just getting to know the MVC pattern and still don't fully understand it.

Thank for any direction you can provide What I am getting What it should be returning.
New info:

 Fatal error: Class 'Zend_Db_Table_Abstract' not found in C:\Program Files (x86)\Apache2\htdocs\quickstart\application\models\DbTable\Guestbook.php on line 4

something in the setting I guess.


0
Comment
Question by:MTTDev
  • 4
  • 2
6 Comments
 
LVL 13

Expert Comment

by:dsmile
ID: 34237075
Have you specify path to ZendFramework core library in include_path of php.ini yet?
0
 

Author Comment

by:MTTDev
ID: 34239433
No, not yet.  I'm set up on a windows machine.  Would I do that with every project that has it's own Zend Framework library?
0
 
LVL 13

Expert Comment

by:dsmile
ID: 34239564
Path to ZendFramework (ZF) should be in include_path of PHP for projects that are on the same server and share the same ZF version.

If you want each project to have its own ZF library then you only need to temporary add it on each use by placing this line on the first line of index.php (of each project)

ini_set('include_path', ini_get('include_path') . PATH_SEPARATOR . '/path/to/zend/framework');

Eg:

<?php
ini_set('include_path', ini_get('include_path') . PATH_SEPARATOR . '/path/to/zend/framework');

What this line of code does is to add '/path/to/zend/framework' to current include_path of PHP
0
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 

Author Comment

by:MTTDev
ID: 34240646
I added the include path and it did make a difference in that my var_dump in the Zend framework files work now but it didn't resolve adding the view script to the layout script is what it seems like it should be doing but is not.  Still no errors.
0
 

Accepted Solution

by:
MTTDev earned 0 total points
ID: 34244365
I have found the problem.  I missed calling the content through the layout object in the layout.phtml file.  No one assisted in the true resolution of this problem.
0
 

Author Closing Comment

by:MTTDev
ID: 34276839
No one solved any part of my problem except for my self.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
creating 2 user ID's 5 25
writting html or javascript in PHP 8 9
Strip leading 0 from a var 3 11
showing numeric numbers 2 0
Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now