The smarty deafult tempalte file type named "tpl" hasn't been supported by Zend Studio for Eclipse 6.1. So, you need to setup this content type to html. the solution is the following:
1 Open Preferences
2 Click HTML in General->Appearance->Content Type
3 Add "*.tpl" to File associations
4 Clink OK
4/07/2009
Add tpl to HTML content type on Zend Studio Form Eclipse
10/19/2008
Add x-debugger-server to the test server
Step:
1 download the x-debugger-server
http://downloads.zend.com/pdt/server-debugger/
2 Locate ZendDebugger.so or ZendDebugger.dll file
that is compiled for the correct version of PHP (4.3.x, 4.4.x, 5.0.x, 5.1.x, 5.2.x) in the
appropriate directory.
("5_2_x_comp" is used for me)
2. Add the following line to the php.ini file:
Linux and Mac OS X: zend_extension=/full/path/to/ZendDebugger.so
Windows: zend_extension_ts=/full/path/to/ZendDebugger.dll
zend_debugger.allow_hosts=
zend_debugger.expose_remotely=always
example:
[Zend]
zend_extension_ts=D:/PHP/ext/ZendDebugger.dll
zend_debugger.allow_hosts=127.0.0.1/32
zend_debugger.allow_tunnel=127.0.0.1/32
zend_debugger.expose_remotely=always
3. Place dummy.php file in the document root directory.
when in ZF project :add the DummyphpController.php to default Module
class DummyphpController extends Core_Controller_Abstract {
public function indexAction() {
@ini_set ( 'zend_monitor.enable', 0 );
if (@function_exists ( 'output_cache_disable' )) {
@output_cache_disable ();
}
if (isset ( $_GET ['debugger_connect'] ) && $_GET ['debugger_connect'] == 1) {
if (function_exists ( 'debugger_connect' )) {
debugger_connect ();
exit ();
} else {
echo "No connector is installed.";
}
}
}
}
?>
4. Restart web server.
4/29/2008
Zend Studio does not contain PDO extensions
I've just installed Zend Studio 6 and Zend ZendFramework-1.5 onto my Ubuntu 8. It already has Apache 2.0 and MySQL 5.0 and PHP 5.2.1 running.
I used PHPunit to test My class extended from Zend_db_Table, but I can not run it normally!
Result :
when I tried to run the script inside the Zend Studio. It gave me this error
"Debug Error: /media/sda5/workspace/library/Zend/Db/Adapter/Pdo/Abstract.php line 104 - Uncaught exception 'Zend_Db_Adapter_Exception' with message 'The mysql driver is not currently installed' in /media/sda5/workspace/library/Zend/Db/Adapter/Pdo/Abstract.php:104
Stack trace:
#0 /media/sda5/workspace/library/Zend/Db/Adapter/Abstract.php(390): Zend_Db_Adapter_Pdo_Abstract->_connect()
#1 /media/sda5/workspace/library/Zend/Db/Adapter/Pdo/Abstract.php(206): Zend_Db_Adapter_Abstract->query('SET NAMES utf8', Array)
#2 /media/sda5/workspace/coojs/test/DataAdapter.php(7): Zend_Db_Adapter_Pdo_Abstract->query('SET NAMES utf8')
#3 /media/sda5/workspace/coojs/test/models/User/Data/User_Data_TableTest.php(6): require_once('/media/sda5/wor...')
#4 /usr/local/Zend/ZendStudioForEclipse-6.0.0/plugins/com.zend.php.phpunit_6.0.0.v20080107/resources/ZendPHPUnit.php(65): require_once('/media/sda5/wor...')
#5 {main}
thrown
Well ,this is the problem! how to resolve this problem?
the resolving method is:
1 set the adapter type to phpmysqli
[code]
/** * This is the PHP (No pdo) way. Please notice the PHP_MYSQL */
require_once 'Zend.php';
require_once 'Zend/Db.php';
$config = array( 'host'
=> 'localhost', 'username' => 'sqluser', 'password' => 'sqlpass',
'dbname' => 'databasename',);$db = Zend_Db::factory('Mysqli', $config); //Is the adapter be PHP_Mysql?
2 To add a PHP executable to the list in IDE: I used the PHP CGI in ZendCore
3 Anything will oK! the test is run successful!

