[fw-general] Microsoft Word Document generator

2009-05-08 Thread Kexiao Liao

Does Zend Framework support manipulating MS Word Document, so we can generate
MS Word Document on the fly? Same functionalities like Zend_Pdf, so we can
create MS Word document from Web application.  Thanks for your comments.

Kevin

-- 
View this message in context: 
http://www.nabble.com/Microsoft-Word-Document-generator-tp23445318p23445318.html
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Timeline for new Zend_Pdf release

2009-04-29 Thread Kexiao Liao

Does anyone know the timeline of next release of Zend_Pdf component, so that
it can support PDF 1.7 format specification. Thanks for your comments.

Kevin
-- 
View this message in context: 
http://www.nabble.com/Timeline-for-new-Zend_Pdf-release-tp23295868p23295868.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Zend_PDF support which PDF Version

2009-04-28 Thread Kexiao Liao

Uploaded file(WebContents.pdf) is a pdf file under 1.7 version which was
created through TCPDF
(http://www.tecnick.com/public/code/cp_dpage.php?aiocp_dp=tcpdf) library.
When I use Zend_Pdf::load($fileName) to load this pdf file into Zend_Pdf, I
got following errors:
 
Fatal error: Uncaught exception 'Zend_Pdf_Exception' with message
'Unsupported PDF version. Zend_Pdf supports PDF 1.0-1.4. Current version -
'1.70'' in /var/www/ZendFramework-1.7.7/library/Zend/Pdf/Parser.php:409
Stack trace: #0 /var/www/ZendFramework-1.7.7/library/Zend/Pdf.php(297):
Zend_Pdf_Parser->__construct('../WebContents',
Object(Zend_Pdf_ElementFactory_Proxy), true) #1
/var/www/ZendFramework-1.7.7/library/Zend/Pdf.php(250):
Zend_Pdf->__construct('../WebContents', NULL, true) #2
/home/liaok/liaok/public_html/neon/InfReqFor/pdf/CreatePdfView.php(33):
Zend_Pdf::load('../WebContents') #3 {main} thrown in
/var/www/ZendFramework-1.7.7/library/Zend/Pdf/Parser.php on line 409

 





vince. wrote:
> 
> Hey,
> 
> From what you can understand in the manual the component supports PDF
> files
> v 1.4 and up. So i think it should support 1.6 & 1.7.
> 
> What's the problem your having?
> 
> Vince.
> 
> On Tue, Apr 28, 2009 at 4:12 PM, Kexiao Liao  wrote:
> 
>>
>> What is the PDF file format version Zend_PDF support right now? I have
>> several PDF files under  version 1.6 and version 1.7,  It seems Zend_PDF
>> does not support these kinds of pdf file version.
>> Can anyone give some detail information about the PDF file version which
>> Zend_PDF supports. Thanks in advance.
>>
>> Kevin
>>
>> --
>> View this message in context:
>> http://www.nabble.com/%3Ch1%3EZend_PDF-support-which-PDF-Version%3Ch1%3E-tp23276895p23276895.html
>> Sent from the Zend Framework mailing list archive at Nabble.com.
>>
>>
> 
> 
> -- 
> Vincent Gabriel.
> Lead Developer, Senior Support.
> Zend Certified Engineer.
> Zend Framework Certified Engineer.
> -- http://www.vadimg.co.il/
> 
> 
http://www.nabble.com/file/p23277283/WebContents.pdf WebContents.pdf 
-- 
View this message in context: 
http://www.nabble.com/%3Ch1%3EZend_PDF-support-which-PDF-Version%3Ch1%3E-tp23276895p23277283.html
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Zend_PDF support which PDF Version

2009-04-28 Thread Kexiao Liao

What is the PDF file format version Zend_PDF support right now? I have
several PDF files under  version 1.6 and version 1.7,  It seems Zend_PDF
does not support these kinds of pdf file version.
Can anyone give some detail information about the PDF file version which
Zend_PDF supports. Thanks in advance.

Kevin

-- 
View this message in context: 
http://www.nabble.com/%3Ch1%3EZend_PDF-support-which-PDF-Version%3Ch1%3E-tp23276895p23276895.html
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] pdf version 1.6

2009-04-24 Thread Kexiao Liao

I create my pdf document by using Adobe Acrobat Pro 9 trial to Create PDF
from Web Page, and save it as PDF Version: 1.6(Acrobat 7.x). However when I
use  Zend_Pdf::load($MyFileName); to load it as a pdf object. I got
following error message as showing below:

Fatal error: Uncaught exception 'Zend_Pdf_Exception' with message 'PDF file
syntax error. Offset - 0x12BAA. Wrong W dictionary entry. Only type field of
stream entries has default value and could be zero length.' in
/var/www/ZendFramework-1.7.7/library/Zend/Pdf/Parser.php:251 Stack trace: #0
/var/www/ZendFramework-1.7.7/library/Zend/Pdf/Parser.php(455):
Zend_Pdf_Parser->_loadXRefTable('76714') #1
/var/www/ZendFramework-1.7.7/library/Zend/Pdf.php(297):
Zend_Pdf_Parser->__construct('../WebContents',
Object(Zend_Pdf_ElementFactory_Proxy), true) #2
/var/www/ZendFramework-1.7.7/library/Zend/Pdf.php(250):
Zend_Pdf->__construct('../WebContents', NULL, true) #3
/home/liaok/liaok/public_html/neon/InfReqFor/pdf/CreatePdfView.php(33):
Zend_Pdf::load('../WebContents') #4 {main} thrown in
/var/www/ZendFramework-1.7.7/library/Zend/Pdf/Parser.php on line 251

It seems Zend_Pdf::load works pretty well with PDF version 1.3. I do not
know what is wrong with PDF Version 1.6. According to Zend Documents, my
current ZF 1.7.7 should support PDF Version 1.6.  Any comments are highly
appreciated.

Kevin


-- 
View this message in context: 
http://www.nabble.com/pdf-version-1.6-tp23218063p23218063.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Zend_Date to validate input date format

2008-10-15 Thread Kexiao Liao

Is there any easy way we can use Zend Framework to find 2003--10-1 is an
invalid input date format?
 

thomasW wrote:
> 
> The first one is because Zend_Date ignores all other parts except numbers.
> The date parsing is actually not as strict as for strings.
> To have a strict date parsing you would simply have to validate it as 
> string, for example with a fixed length.
> A true from isDate does only mean that Zend_Date can handle this date with 
> the given format, it does not mean that the input format is strictly 
> identical.
> Zend_Date can fix much notations automatically. This is the reason why it 
> returns true even if you may not have expected this.
> 
> But why should the second one be a wrong format ?
> The year 1005 exists, the Month 09 exists and the day 01 exists.
> It is very far in the past ut still this is a valid date.
> 
> Greetings
> Thomas Weidner, I18N Team Leader, Zend Framework
> http://www.thomasweidner.com
> 
> - Original Message - 
> From: "Kexiao Liao" <[EMAIL PROTECTED]>
> To: 
> Sent: Wednesday, October 15, 2008 4:20 PM
> Subject: [fw-general] Zend_Date to validate input date format
> 
> 
>>
>> I use Zend_Date class to validate the input date format as showing below
>>
>> Zend_Date::isDate ( $value, '-M-d' )
>>
>> However the following input date values CAN NOT BE detected as wrong 
>> format
>> 2003--10-1
>> 1005-09-01
>>
>> Is this a bug for Zend_Date class? Please give your comments. Thanks.
>>
>> Kevin
>>
>>
>> -- 
>> View this message in context: 
>> http://www.nabble.com/Zend_Date-to-validate-input-date-format-tp19994516p19994516.html
>> Sent from the Zend Framework mailing list archive at Nabble.com. 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Zend_Date-to-validate-input-date-format-tp19994516p19995235.html
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Zend_Date to validate input date format

2008-10-15 Thread Kexiao Liao

I use Zend_Date class to validate the input date format as showing below

Zend_Date::isDate ( $value, '-M-d' )

However the following input date values CAN NOT BE detected as wrong format
2003--10-1
1005-09-01

Is this a bug for Zend_Date class? Please give your comments. Thanks.

Kevin
 

-- 
View this message in context: 
http://www.nabble.com/Zend_Date-to-validate-input-date-format-tp19994516p19994516.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Can not find $this object on the ZF view script

2008-08-28 Thread Kexiao Liao

Following is my bootstrap index.php file:

db->adapter,
$configMozart->db->config->toArray () );
$dbAdapterMozart = Zend_Db::factory ( $configMozart->db->adapter,
$configMozart->db->config->toArray () );
Zend_Registry::set ( 'dbAdapter', $dbAdapter );
Zend_Registry::set ( 'dbAdapterMozart', $dbAdapterMozart );

/**
 * Initialized $db variable for the Ajax application
 */
$db = $dbAdapterMozart;
$RewriteBase = new Zend_Config_Ini ( './config.ini', 'SiteRelated' );
Zend_Registry::set ( 'RewriteBase', $RewriteBase );

/**
 *Create Zend_Acl object using Access Control List
 */
$acl = new Zend_Acl ( );
$acl->add ( new Zend_Acl_Resource ( 'index' ) )->add ( new Zend_Acl_Resource
( 'login' ) )->add ( new Zend_Acl_Resource ( 'logout' ) )->add ( new
Zend_Acl_Resource ( 'edit' ) )->add ( new Zend_Acl_Resource ( 'add' ) )->add
( new Zend_Acl_Resource ( 'delete' ) )->add ( new Zend_Acl_Resource (
'ldapsearch' ) )->add ( new Zend_Acl_Resource ( 'addperson' ) )->addRole (
new Zend_Acl_Role ( 'user' ) )->addRole ( new Zend_Acl_Role ( 'visitor' ),
'user' )->addRole ( new Zend_Acl_Role ( 'editor' ), 'user' )->addRole ( new
Zend_Acl_Role ( 'admin' ), 'editor' )->allow ()->deny ( null, 'edit' )->deny
( null, 'index' )->deny ( null, 'add' )->deny ( null, 'ldapsearch' )->deny (
null, 'addperson' )->allow ( 'user', 'add' )->allow ( 'user', 'index'
)->allow ( 'user', 'edit' )->allow ( 'admin', 'addperson' )->allow (
'admin', 'ldapsearch' );
Zend_Registry::set ( 'Acl', $acl );
/**
 * setup controller
 **/
$frontController = Zend_Controller_Front::getInstance ();
$frontController->throwExceptions ( true );
$frontController->setControllerDirectory ( './controllers' )->registerPlugin
( new MyPlugin ( ) );

$currentUser = Zend_Auth::getInstance ()->getIdentity ();
try {
$response = $frontController->dispatch ();
} catch ( Exception $e ) {
/**
 * handle exceptions yourself
 */
if ($_SERVER ['HTTP_HOST'] == 'mercx.bio.ri.ccf.org' or $_SERVER
['HTTP_HOST'] == 'test.access.ccf.org') {
echo $e;
echo " Current Session User: ";
print_r ( $currentUser );
} else {
//send mail to Jie and Kevin


echo "Error report has been sent to Support Team, they will 
handle it as
soon as possible.\n";
$mail = new Zend_Mail ( );
$mail->setBodyText ( $e . "\nCurrent Session User: \n" . 
serialize (
$currentUser ) );
//$mail->setBodyText (print_r($currentUser));
$mail->setFrom ( '[EMAIL PROTECTED]', 'Jie Dai' );
$mail->addTo ( '[EMAIL PROTECTED]', 'Jie Dai' );
    $mail->addTo ( '[EMAIL PROTECTED]', 'Kevin Liao' );
$mail->setSubject ( 'DataEntry Error Report' );
$mail->send ();
}
}


It seems set_include_path statement has some problem in Mac OS server.

the stdlib.php file is located in ./lib directory, when I use require_once
('stdlib.php');
It can not load stdlib.php file. Same statement works pretty well in Linux
Server. I do not know what cause the problem? Any help will be appreciated.




Jack Sleight wrote:
> 
> Can you provide the error you are receiving and the code that's causing
> it?
> 
> Kexiao Liao wrote:
>> We have developped our web application using ZF 1.5.? on linux, the
>> application running well in the linux box. However once we deployed the
>> application on the Mac OS system, $this object can not be assigned
>> approprite values in all view script. The Mac OS file system is
>> case-insentative, linux file system is case-sentative.  Following are
>> part
>> of phpinfo from Mac OS system:
>>
>> PHP Version 5.2.4
>> www.entropy.ch Release 1 (Universal Binary)
>>
>> System   Darwin Colorectal-Experiment.local 8.11.0 Darwin Kernel Version
>> 8.11.0: Wed Oct 10 18:26:00 PDT 2007; root:xnu-792.24.17~1/RELEASE_PPC
>> Power
>> Macintosh
>> Build Date   Aug 31 2007 23:54:42
>> Configure Command'./configure' '--prefix=/usr/local/php5' '--with-apxs'
>> '--with-config-file-scan-dir=/usr/local/php5/php.d' '--with-iconv'
>> '--with-openssl=/us

[fw-general] Can not find $this object on the ZF view script

2008-08-28 Thread Kexiao Liao

We have developped our web application using ZF 1.5.? on linux, the
application running well in the linux box. However once we deployed the
application on the Mac OS system, $this object can not be assigned
approprite values in all view script. The Mac OS file system is
case-insentative, linux file system is case-sentative.  Following are part
of phpinfo from Mac OS system:

PHP Version 5.2.4
www.entropy.ch Release 1 (Universal Binary)

System  Darwin Colorectal-Experiment.local 8.11.0 Darwin Kernel Version
8.11.0: Wed Oct 10 18:26:00 PDT 2007; root:xnu-792.24.17~1/RELEASE_PPC Power
Macintosh
Build Date  Aug 31 2007 23:54:42
Configure Command   './configure' '--prefix=/usr/local/php5' '--with-apxs'
'--with-config-file-scan-dir=/usr/local/php5/php.d' '--with-iconv'
'--with-openssl=/usr' '--with-zlib=/usr' '--with-gd' '--with-zlib-dir=/usr'
'--with-ldap' '--with-xmlrpc' '--with-iconv-dir=/usr' '--with-snmp=/usr'
'--enable-exif' '--enable-wddx' '--enable-soap' '--enable-sqlite-utf8'
'--enable-ftp' '--enable-sockets' '--enable-dbx' '--enable-dbase'
'--enable-mbstring' '--enable-calendar' '--enable-bcmath' '--with-bz2=/usr'
'--enable-fastcgi' '--enable-cgi' '--enable-memory-limit' '--enable-zip'
'--enable-pcntl' '--enable-shmop' '--enable-sysvsem' '--enable-sysvshm'
'--enable-sysvmsg' '--with-curl=shared,/usr/local/php5'
'--with-mysql=shared,/usr/local/php5'
'--with-mysqli=shared,/usr/local/php5/bin/mysql_config'
'--with-pdo-mysql=shared,/usr/local/php5'
'--with-libxml-dir=shared,/usr/local/php5'
'--with-xsl=shared,/usr/local/php5' '--with-pdflib=shared,/usr/local/php5'
'--with-oci8=shared,instantclient,/usr/local/php5/oracle'
'--with-pdo-oci=shared,instantclient,/usr/local/php5/oracle,10.1.0.3'
'--with-imap=../imap-2004g' '--with-kerberos=/usr' '--with-imap-ssl=/usr'
'--with-jpeg-dir=/usr/local/php5' '--with-png-dir=/usr/local/php5'
'--enable-gd-native-ttf' '--with-freetype-dir=/usr/local/php5'
'--with-iodbc=shared,/usr' '--with-pgsql=shared,/usr/local/php5'
'--with-pdo-pgsql=shared,/usr/local/php5' '--with-t1lib=/usr/local/php5'
'--with-gettext=shared,/usr/local/php5' '--with-ming=shared,/usr/local/php5'
'--with-mcrypt=shared,/usr/local/php5' '--with-mhash=shared,/usr/local/php5'
'--with-mssql=shared,/usr/local/php5'
'--with-fbsql=shared,/Users/liyanage/svn/entropy/universalbuild/src/FBDeveloperLibraries/Library/FrontBase'
'--with-json=shared' '--enable-memcache' '--enable-openbase_module'
Server API  Apache
Virtual Directory Support   disabled
Configuration File (php.ini) Path   /usr/local/php5/lib
Loaded Configuration File   /usr/local/php5/lib/php.ini
Scan this dir for additional .ini files /usr/local/php5/php.d
additional .ini files parsed/usr/local/php5/php.d/10-extension_dir.ini,
/usr/local/php5/php.d/50-extension-curl.ini,
/usr/local/php5/php.d/50-extension-fbsql.ini,
/usr/local/php5/php.d/50-extension-gettext.ini,
/usr/local/php5/php.d/50-extension-json.ini,
/usr/local/php5/php.d/50-extension-mcrypt.ini,
/usr/local/php5/php.d/50-extension-mhash.ini,
/usr/local/php5/php.d/50-extension-ming.ini,
/usr/local/php5/php.d/50-extension-mssql.ini,
/usr/local/php5/php.d/50-extension-mysql.ini,
/usr/local/php5/php.d/50-extension-mysqli.ini,
/usr/local/php5/php.d/50-extension-oci8.ini,
/usr/local/php5/php.d/50-extension-odbc.ini,
/usr/local/php5/php.d/50-extension-pdf.ini,
/usr/local/php5/php.d/50-extension-pdo_mysql.ini,
/usr/local/php5/php.d/50-extension-pdo_oci.ini,
/usr/local/php5/php.d/50-extension-pdo_pgsql.ini,
/usr/local/php5/php.d/50-extension-pgsql.ini,
/usr/local/php5/php.d/50-extension-xsl.ini
PHP API 20041225
PHP Extension   20060613
Zend Extension  220060519
Debug Build no
Thread Safety   disabled
Zend Memory Manager enabled
IPv6 Supportenabled
Registered PHP Streams  zip, php, file, data, http, ftp, compress.bzip2,
compress.zlib, https, ftps
Registered Stream Socket Transports tcp, udp, unix, udg, ssl, sslv3, sslv2,
tls
Registered Stream Filters   string.rot13, string.toupper, string.tolower,
string.strip_tags, convert.*, consumed, convert.iconv.*, bzip2.*, zlib.*

Zend logo This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
with Zend Debugger v5.2.14, Copyright (c) 1999-2008, by Zend
Technologies


apache
APACHE_INCLUDE  no value
APACHE_TARGET   no value
Apache Version  Apache/1.3.33 (Darwin) PHP/5.2.4
Apache Release  10333100
Apache API Version  19990320
Hostname:Port   10.73.153.26:80
User/Group  www(70)/70
Max RequestsPer Child: 10 - Keep Alive: on - Max Per Connection: 100
TimeoutsConnection: 300 - Keep-Alive: 15
Server Root /usr
Loaded Modules  mod_WebObjects, mod_php5, mod_bonjour, mod_hfs_apple,
mod_setenvif, mod_so, mod_log_forensic, mod_auth, mod_access, mod_rewrite,
mod_alias, mod_userdir, mod_actions, mod_imap, mod_asis, mod_cgi, mod_dir,
mod_autoindex, mod_include, mod_negotiation, mod_mime, mod_log_config,
http_core


[fw-general] Using ZF-1.6.0 with Dojo1.1.1 integration

2008-08-25 Thread Kexiao Liao

Are there any good examples/demos to show us how to use Ajax functionalities
with ZF1.6.0 RC2 with Dojo integration? Thanks for your help.

Kevin



-- 
View this message in context: 
http://www.nabble.com/Using-ZF-1.6.0-with-Dojo1.1.1-integration-tp19150333p19150333.html
Sent from the Zend Framework mailing list archive at Nabble.com.


Re: [fw-general] Mac OS with apache- 1.?

2008-08-21 Thread Kexiao Liao

Does ZendFramework1.5.3 require Apache 2 or above in order for its routing
function working well?


Kexiao  Liao wrote:
> 
> My Zend Framework 1.5.3 was installed on Mac OS with apache1.? and
> Php5.2.4. When I use following url to access my web application login
> page:
> http://10.73.153.26/DataEntry/MVr/user/login
> 
> the action login can not send to server, the ZF exception message says 3c
> action can not be found. The action server received is 3c not login. I am
> not sure what is wrong with my ZF application.
> 
> following is my application structure and .htaccess file
> 
> 
> -rw-r--r--1 jiedai  admin  12646 Aug 20 09:13
> ChesttubeoutputController.php
> -rwxr-xr-x1 jiedai  admin  0 Aug 20 09:01 ErrorController.php
> -rwxr-xr-x1 jiedai  admin686 Aug 20 09:01 IndexController.php
> -rw-r--r--1 jiedai  admin  11232 Aug 20 09:13 MainController.php
> -rwxr-xr-x1 jiedai  admin   9916 Aug 20 09:01 MsadController.php
> -rw-r--r--1 jiedai  admin  12451 Aug 20 09:13 PainscoresController.php
> -rw-r--r--1 jiedai  admin  11424 Aug 20 09:13
> RehabilitationmilestonesController.php
> -rwxr-xr-x1 jiedai  admin   9581 Aug 20 09:01 ShowlabelsController.php
> -rwxr-xr-x1 jiedai  admin  10411 Aug 20 09:01
> ShowvocabulariesController.php
> -rwxr-xr-x1 jiedai  admin   4157 Aug 20 09:01 UserController.php
> 
> .htaccess:
> 
> RewriteEngine on
> RewriteBase /DataEntry/MVr/
> RewriteRule !\.(pdf|php|js|ico|txt|gif|jpg|png|css|rss|zip|tar\.gz)$
> index.php
> 
> My Mac OS file system is case-insensitive system. For this kind of file
> system what is correct name convention for controller and its action. 
> 
> Thanks in advance.
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Mac-OS-with-apache--1.--tp19082530p19087986.html
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Mac OS with apache- 1.?

2008-08-20 Thread Kexiao Liao

My Zend Framework 1.5.3 was installed on Mac OS with apache1.? and Php5.2.4.
When I use following url to access my web application login page:
http://10.73.153.26/DataEntry/MVr/user/login

the action login can not send to server, the ZF exception message says 3c
action can not be found. The action server received is 3c not login. I am
not sure what is wrong with my ZF application.

following is my application structure and .htaccess file


-rw-r--r--1 jiedai  admin  12646 Aug 20 09:13
ChesttubeoutputController.php
-rwxr-xr-x1 jiedai  admin  0 Aug 20 09:01 ErrorController.php
-rwxr-xr-x1 jiedai  admin686 Aug 20 09:01 IndexController.php
-rw-r--r--1 jiedai  admin  11232 Aug 20 09:13 MainController.php
-rwxr-xr-x1 jiedai  admin   9916 Aug 20 09:01 MsadController.php
-rw-r--r--1 jiedai  admin  12451 Aug 20 09:13 PainscoresController.php
-rw-r--r--1 jiedai  admin  11424 Aug 20 09:13
RehabilitationmilestonesController.php
-rwxr-xr-x1 jiedai  admin   9581 Aug 20 09:01 ShowlabelsController.php
-rwxr-xr-x1 jiedai  admin  10411 Aug 20 09:01
ShowvocabulariesController.php
-rwxr-xr-x1 jiedai  admin   4157 Aug 20 09:01 UserController.php

.htaccess:

RewriteEngine on
RewriteBase /DataEntry/MVr/
RewriteRule !\.(pdf|php|js|ico|txt|gif|jpg|png|css|rss|zip|tar\.gz)$
index.php

My Mac OS file system is case-insensitive system. For this kind of file
system what is correct name convention for controller and its action. 

Thanks in advance.


-- 
View this message in context: 
http://www.nabble.com/Mac-OS-with-apache--1.--tp19082530p19082530.html
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Zend_RDF

2008-04-21 Thread Kexiao Liao

Will future ZendFramework provide the functionalities to support RDF
(Resource Description Framework)access, so we can access RDF graph through
ZF?

Kevin

-- 
View this message in context: 
http://www.nabble.com/Zend_RDF-tp16807950p16807950.html
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] How to control the Zend_Auth session time out time value

2008-04-18 Thread Kexiao Liao

What is the default Session timeout period for ZendFramework-1.5.0?
How do I set the it through Zend_Session class?

Specifically when we use Zend_Auth::authenticate() through
Zend_Auth_Storage_Session, which, in turn, uses Zend_Session, how do we know
the default session time out period? how do we reset the default session
time out to the customized value?

Kevin 
-- 
View this message in context: 
http://www.nabble.com/How-to-control-the-Zend_Auth-session-time-out-time-value-tp16763614p16763614.html
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Session configuration

2008-04-18 Thread Kexiao Liao

What is the default Session timeout period for ZendFramework-1.5.0?
How do I set the it through Zend_Session class?

Kevin
 
-- 
View this message in context: 
http://www.nabble.com/Session-configuration-tp16763481p16763481.html
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Autodetection of Locale has been failed!

2008-04-01 Thread Kexiao Liao

Can anyone know what cause the following problem, it seems happening when
user access the web page through the remote access. We are not sure what
cause the problem.

exception 'Zend_Locale_Exception' with message 'Autodetection of Locale has
been failed!' in /var/www/ZendFramework-1.0.3/library/Zend/Locale.php:122
Stack trace:
#0 /var/www/ZendFramework-1.0.3/library/Zend/Locale.php(906):
Zend_Locale->__construct()
#1 /var/www/ZendFramework-1.0.3/library/Zend/Date.php():
Zend_Locale::isLocale(NULL, true)
#2 /var/www/ZendFramework-1.0.3/library/Zend/Date.php(172):
Zend_Date->setLocale(NULL)
#3
/var/ctresearch/htdocs/DataEntry/rvMitralDisease/controllers/MainController.php(129):
Zend_Date->__construct()
#4 /var/www/ZendFramework-1.0.3/library/Zend/Controller/Action.php(499):
MainController->editAction()
#5
/var/www/ZendFramework-1.0.3/library/Zend/Controller/Dispatcher/Standard.php(242):
Zend_Controller_Action->dispatch('editAction')
#6 /var/www/ZendFramework-1.0.3/library/Zend/Controller/Front.php(929):
Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http),
Object(Zend_Controller_Response_Http))
#7 /var/ctresearch/htdocs/DataEntry/rvMitralDisease/index.php(85):
Zend_Controller_Front->dispatch()
#8 {main}

-- 
View this message in context: 
http://www.nabble.com/Autodetection-of-Locale-has-been-failed%21-tp16418700p16418700.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] formCheckbox bug in ZendFramework-1.5.0RC1

2008-03-20 Thread Kexiao Liao

I belive Zend_View_Helper->FormCheckbox.php(in ZF1.5.0) has some bugs, it can
not create the checkbox correctly. The one in ZF1.0.3 works well

Kevin


dinoboff wrote:
> 
> I think you have the set the initial state of of the checkbox with the
> checked attibute. The value of the checkbox is now fixed; it doesn't
> depend any more of the initial state of the checkbox.
> 
> It should look like that:
> formCheckbox("complete", 1,
>array(
>'checked' => $this->mainContents->complete,
>'onChange' => "change(document.main);"
>)); ?>
> 
> When validating the form, you would do something like that:
> $complete = empty($_FORM['complete']) ? false : true;
> 
> 
> Kexiao  Liao wrote:
>> 
>> I still got the same problem by using Zend_Framework 1.5. Any comments
>> regarding this issue.
>> 
>> Kevin
>> 
>> 
>> Matthew Weier O'Phinney-3 wrote:
>>> 
>>> -- Kexiao Liao <[EMAIL PROTECTED]> wrote
>>> (on Tuesday, 11 March 2008, 11:07 AM -0700):
>>>> I switched ZendFramework from 1.0.3 to 1.5.0RC1, the following
>>>> formCheckbox
>>>> can not save the the checkbox data into the database table? On 1.0.3 it
>>>> works pretty well.
>>>> 
>>>> formCheckbox("complete",
>>>> $this->escape($this->mainContents->complete),array('onChange' =>
>>>> "change(document.main);"),array(0 =>'true', 1=>'false')) ?>
>>> 
>>> Please try from svn trunk, and read the docs in svn trunk regarding the
>>> formCheckbox helper (found in
>>> documentation/manual/en/module_specs/Zend_View_Helpers.xml, IIRC); I've
>>> made some significant improvements to it in the past week.
>>> 
>>> -- 
>>> Matthew Weier O'Phinney
>>> PHP Developer| [EMAIL PROTECTED]
>>> Zend - The PHP Company   | http://www.zend.com/
>>> 
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/formCheckbox-bug-in-ZendFramework-1.5.0RC1-tp15982415s16154p16181466.html
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Example for using Ldap authentication against MS Active Directory

2008-03-18 Thread Kexiao Liao

Are there any examples for using ZF-1.5.0 Ldap authentication against
Microsoft Active Directory 2003? Thanks for your help.

Kevin


-- 
View this message in context: 
http://www.nabble.com/Example-for-using-Ldap-authentication-against-MS-Active-Directory-tp16121918s16154p16121918.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] formCheckbox bug in ZendFramework-1.5.0RC1

2008-03-17 Thread Kexiao Liao

I still got the same problem by using Zend_Framework 1.5. Any comments
regarding this issue.

Kevin


Matthew Weier O'Phinney-3 wrote:
> 
> -- Kexiao Liao <[EMAIL PROTECTED]> wrote
> (on Tuesday, 11 March 2008, 11:07 AM -0700):
>> I switched ZendFramework from 1.0.3 to 1.5.0RC1, the following
>> formCheckbox
>> can not save the the checkbox data into the database table? On 1.0.3 it
>> works pretty well.
>> 
>> formCheckbox("complete",
>> $this->escape($this->mainContents->complete),array('onChange' =>
>> "change(document.main);"),array(0 =>'true', 1=>'false')) ?>
> 
> Please try from svn trunk, and read the docs in svn trunk regarding the
> formCheckbox helper (found in
> documentation/manual/en/module_specs/Zend_View_Helpers.xml, IIRC); I've
> made some significant improvements to it in the past week.
> 
> -- 
> Matthew Weier O'Phinney
> PHP Developer| [EMAIL PROTECTED]
> Zend - The PHP Company   | http://www.zend.com/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/formCheckbox-bug-in-ZendFramework-1.5.0RC1-tp15982415s16154p16094820.html
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] formCheckbox bug in ZendFramework-1.5.0RC1

2008-03-11 Thread Kexiao Liao

I switched ZendFramework from 1.0.3 to 1.5.0RC1, the following formCheckbox
can not save the the checkbox data into the database table? On 1.0.3 it
works pretty well.

formCheckbox("complete",
$this->escape($this->mainContents->complete),array('onChange' =>
"change(document.main);"),array(0 =>'true', 1=>'false')) ?>
-- 
View this message in context: 
http://www.nabble.com/formCheckbox-bug-in-ZendFramework-1.5.0RC1-tp15982415s16154p15982415.html
Sent from the Zend Framework mailing list archive at Nabble.com.



RE: [fw-general] Zend_Session::start()

2008-02-27 Thread Kexiao Liao

These two web application belong to same domain for
example(ctresearch.ccf.org). Can you give me more detail about how to create
different sessions for above two web application which belong to same
domain(ctresearch.ccf.org)?


Peter Lauri-2 wrote:
> 
> On Thu, 2008-02-28 at 14:01 +1000, Steven Brown wrote:
>> I have two web applications, they need to open  within one instance of
>> firefox by open another new tab, these two web application use
>> Zend_Session::start() to start their own sessions. It seems the two
>> web
>> application sessions may conflict with each other causing the web
>> application can not work correctly. Is there anyway to solve this
>> problem?
>> Thanks in advance.
> 
> You could create your own session object that separate the two of them
> with some identifier you can pass via url or similar. But I guess there
> is something built in in Zend already to arrange with this. /Peter
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Zend_Session%3A%3Astart%28%29-tp15729209s16154p15729304.html
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Zend_Session::start()

2008-02-27 Thread Kexiao Liao

I have two web applications, they need to open  within one instance of
firefox by open another new tab, these two web application use
Zend_Session::start() to start their own sessions. It seems the two web
application sessions may conflict with each other causing the web
application can not work correctly. Is there anyway to solve this problem?
Thanks in advance.

Kevin
 
-- 
View this message in context: 
http://www.nabble.com/Zend_Session%3A%3Astart%28%29-tp15729209s16154p15729209.html
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Zend_Acl example

2008-02-15 Thread Kexiao Liao

Is there any simple example to teach us how to use Zend_Acl in the real
world?

Kevin

-- 
View this message in context: 
http://www.nabble.com/Zend_Acl-example-tp15509069s16154p15509069.html
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Zend/View/Helper/FormSelect.php

2007-12-27 Thread Kexiao Liao

Following _build function comes from Zend/View/Helper/FormSelect.php file.
For the 
if (in_array((string)$value, $selected,true )){...}, we better cast $value
as a string and put true as the argument when calling php in_array function.
That can handle the 0 as both string and integer.



 protected function _build($value, $label, $selected)
{
$opt = 'view->escape($label) . "";

return $opt;
}

}

-- 
View this message in context: 
http://www.nabble.com/Zend-View-Helper-FormSelect.php-tp14517826s16154p14517826.html
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] How to reload a page after form has been submitted

2007-12-21 Thread Kexiao Liao

I have created a html form in in Zend Framework application after I submit
the form to the Server. My current page will be replaced by a new page or it
will be reloaded using the updated page contents depends on the form action.

However my current page can not be reloaded with the updated contents. Is
there any ways to reload current page after the form have been submitted?

-- 
View this message in context: 
http://www.nabble.com/How-to-reload-a-page-after-form-has-been-submitted-tp14459193s16154p14459193.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] correct controller php file name

2007-12-19 Thread Kexiao Liao

Why we need to use - or . between gastric and emptying? Please give more
explanations?


Matthew Weier O'Phinney-3 wrote:
> 
> -- Kexiao Liao <[EMAIL PROTECTED]> wrote
> (on Wednesday, 19 December 2007, 12:27 PM -0800):
>> Is the following php file name a valid Zend Framework controller file
>> name?
>> 
>>  GastricEmptyingController.php
>> 
>> Please note The letter E is capital E not small letter
> 
> Yes, and you're refer to it on the URL as:
> 
> /gastric-emptying/
> 
> or
> 
> /gastric.emptying/
> 
> -- 
> Matthew Weier O'Phinney
> PHP Developer| [EMAIL PROTECTED]
> Zend - The PHP Company   | http://www.zend.com/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/correct-controller-php-file-name-tp14424663s16154p14425363.html
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] correct controller php file name

2007-12-19 Thread Kexiao Liao

Please give me the link to see the detail about the standard dispatcher
format class name. 


ctx2002 wrote:
> 
> 
> if your are not use your own dispather but use
> Zend_Controller_Dispatcher_Standard (most people do), then that name is
> not a valid name.
> 
> check getControllerClass in Zend_Controller_Dispatcher_Standard, you will
> see how standard  dispatcher format class name.
> 
> regards.
> 
> 
> Kexiao  Liao wrote:
>> 
>> Is the following php file name a valid Zend Framework controller file
>> name?
>> 
>>  GastricEmptyingController.php
>> 
>> Please note The letter E is capital E not small letter
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/correct-controller-php-file-name-tp14424663s16154p14425358.html
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] correct controller php file name

2007-12-19 Thread Kexiao Liao

Is the following php file name a valid Zend Framework controller file name?

 GastricEmptyingController.php

Please note The letter E is capital E not small letter
-- 
View this message in context: 
http://www.nabble.com/correct-controller-php-file-name-tp14424663s16154p14424663.html
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] catch sql statement execute error

2007-12-17 Thread Kexiao Liao

Is there a good way to catch the sql statement execute error message when it
is been fired?

For example when I run the following two statements, how can I catch the
error message if it happens during the running process?

$stmtNode = $dbDrupal-> query("UPDATE node set title='" . $newName . "'
WHERE nid='" . $forum . "'");
 $stmtNode->execute();
-- 
View this message in context: 
http://www.nabble.com/catch-sql-statement-execute-error-tp14372542s16154p14372542.html
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] convert array to stdclass

2007-12-13 Thread Kexiao Liao

Is there any method in Zend Framework to convert an array into a stdClass?

-- 
View this message in context: 
http://www.nabble.com/convert-array-to-stdclass-tp14319006s16154p14319006.html
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] fetchAll($where, $order)

2007-12-12 Thread Kexiao Liao

When we use Zend_DB_Table_Abstract fetchAll($where, $order) to get all the
records from table. In the where clause, if we have several condition, for
example, condition1, condtion2, condition3. How do we put all these
conditions in the where clause? Thank in advance.

-- 
View this message in context: 
http://www.nabble.com/fetchAll%28%24where%2C-%24order%29-tp14298290s16154p14298290.html
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Zend_Db_Table_Abstract fetchAll () Method

2007-11-26 Thread Kexiao Liao

The method  fetchAll  ([string|array $where = null], [string|array $order =
null], [int $count = null], [int $offset = null]) of Zend_Db_Table_Abstract
class supports order by specific column. If we want to define the sort by
direction like (Ascending or Decending), how do we do that in Zend_Db?


-- 
View this message in context: 
http://www.nabble.com/Zend_Db_Table_Abstract-fetchAll--%28%29-Method-tf4876002s16154.html#a13952447
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] get next unique value from a table

2007-11-19 Thread Kexiao Liao

Does Zend_Db has a function like db_next_id('tableName_columnName'), so we
can get next unique value from columnName at table tableName?


-- 
View this message in context: 
http://www.nabble.com/get-next-unique-value-from-a-table-tf4838232s16154.html#a13841676
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] limit return rows by using Zend_Db

2007-11-12 Thread Kexiao Liao

My select statement return 2000 thousand rows, I would like to display the
first 200 rows the the view. Is there anyway we can do it from Zend_DB?


-- 
View this message in context: 
http://www.nabble.com/limit-return-rows-by-using-Zend_Db-tf4791969s16154.html#a13708179
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] PhpUnit Test

2007-10-23 Thread Kexiao Liao

Any web sites related to how to use PhpUnit Test, and its overall framework?
Thanks in advance.



Kexiao  Liao wrote:
> 
> Can you run PhpUnit Test again Zend Framework application? Any useful
> information related to PhpUnit test in ZF is highly appreciated.
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/PhpUnit-Test-tf4679429s16154.html#a13373232
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] PhpUnit Test

2007-10-23 Thread Kexiao Liao

Can you run PhpUnit Test again Zend Framework application? Any useful
information related to PhpUnit test in ZF is highly appreciated.


-- 
View this message in context: 
http://www.nabble.com/PhpUnit-Test-tf4679429s16154.html#a13370605
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Zend Framework XML function

2007-10-19 Thread Kexiao Liao

Can you share any web site related to Simple XML in PHP?


lists-76 wrote:
> 
> On Friday 19 October 2007 10:41:53 Kexiao Liao wrote:
>> Does Zend Framework support any XML file processing functionalities?
>> If we like to parsing xml file inside Zend Framewrok application, how do
>> we
>> implement it? Thanks in advance.
> 
> 
> Simple XML has worked really well for me.  It's not specific to the Zend 
> Framework, but it's been helpful in the past.
> 
> kabel
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Zend-Framework-XML-function-tf4653735s16154.html#a13296403
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Zend Framework XML function

2007-10-19 Thread Kexiao Liao

Does Zend Framework support any XML file processing functionalities? 
If we like to parsing xml file inside Zend Framewrok application, how do we
implement it? Thanks in advance.

 
-- 
View this message in context: 
http://www.nabble.com/Zend-Framework-XML-function-tf4653735s16154.html#a13296015
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Zend_Config_Ini file config.ini

2007-10-16 Thread Kexiao Liao

Anyone know how to use multi-line value in the config.ini file? Thanks in
advance.



Simon Mundy wrote:
> 
> Can you not try it in an XML config file instead? I don't think .ini  
> files are set up to take multi-line values.
> 
>>
>> In the config.ini file, we need to declare a string variable, it  
>> contains
>> about 200 characters and needs to be in a good format. Is there  
>> anyway we
>> can input new line/return character inside these 200 characters to  
>> make it
>> look good instead of putting all of them in one line.
>> -- 
>> View this message in context:
>> http://www.nabble.com/Zend_Config_Ini-file-config.ini-tf4634146s16154.html#a13233386
>> Sent from the Zend Framework mailing list archive at Nabble.com.
> 
> --
> 
> Simon Mundy | Director | PEPTOLAB
> 
> """ " "" "" "" "" """ " "" " " " " "" "" "
> 202/258 Flinders Lane | Melbourne | Victoria | Australia | 3000
> Voice +61 (0) 3 9654 4324 | Mobile 0438 046 061 | Fax +61 (0) 3 9654  
> 4124
> http://www.peptolab.com
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Zend_Config_Ini-file-config.ini-tf4634146s16154.html#a13233812
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Zend_Config_Ini file config.ini

2007-10-16 Thread Kexiao Liao

In the config.ini file, we need to declare a string variable, it contains
about 200 characters and needs to be in a good format. Is there anyway we
can input new line/return character inside these 200 characters to make it
look good instead of putting all of them in one line.
-- 
View this message in context: 
http://www.nabble.com/Zend_Config_Ini-file-config.ini-tf4634146s16154.html#a13233386
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] email error message from Zend Framework Application

2007-10-10 Thread Kexiao Liao

In our Zend Framework Application, if we like to email the run time error
message to some developer's email accounts, Is there any easy way to
implement by using Zend Frame work?

-- 
View this message in context: 
http://www.nabble.com/email-error-message-from-Zend-Framework-Application-tf4601330s16154.html#a13137405
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] run ZF bootstrap file(index.php) from command line

2007-10-09 Thread Kexiao Liao

We need to run the Zend Framework bootstrap file(index.php in our case) from
Unix/Linux command line as following:

php5 index.php.

The bootstrap file can also be launched from the normal http request through
the remote web browser access.

When we try to launch it from command line, the front Controller dispatch
statement($response = $frontController->dispatch();) need to be commend out.
Is there any condition we can put before the front Controller dispatch
statement from zend framework?

 
-- 
View this message in context: 
http://www.nabble.com/run-ZF-bootstrap-file%28index.php%29-from-command-line-tf4596352s16154.html#a13122713
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] using render in the html script file

2007-10-08 Thread Kexiao Liao

If we want to use $this->render() method to pass the contents of an existing
html file into current location  of the view script file. For example we use
render('AdditionalEndovascPrc.phtml') ?> inside edit.phtml file,
the AdditionalEndovascPro.phtml script file has to locate in the
views/scripts directory. Actually the AdditionalEndovascPrc.phtml should
logically located inside the main subdirectory of
views/scripts(views/scripts/main). Try to use render('./main/AdditionalEndovascPrc.phtml') ?> to  locate it from
main subdirectory, it does not work. Is there any way to find a solution to
relocate this file to the main subdirectory?

-- 
View this message in context: 
http://www.nabble.com/using-render-in-the-html-script-file-tf4589611s16154.html#a13101190
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Ldap authentication

2007-09-28 Thread Kexiao Liao

I try to use LDAP (Active Directory) Adapter to do the authentication against
Microsoft AD server using Ldap.php from the Zend Framework web site. Is
there any more information regarding how to use Ldap to bind to the AD
server?
-- 
View this message in context: 
http://www.nabble.com/Ldap-authentication-tf4536348s16154.html#a12946988
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Return value of insert method of Zend_Db_Table_Abstract

2007-09-28 Thread Kexiao Liao

The return value of insert method of Zend_Db_Table_Abstract is a The primary
key of the row inserted. However When I try to access the return value, it
is just null, the new row has been successfully insert into table. 

Is there anyway we can get the primary key of this newly inserted row?
Thanks.


-- 
View this message in context: 
http://www.nabble.com/Return-value-of-insert-method-of-Zend_Db_Table_Abstract-tf4535082s16154.html#a12942350
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] How to get all the column names for a instance of Zend_Db_Table_Abstract

2007-09-26 Thread Kexiao Liao

If I extend Zend_Db_Table_Abstract as MyTable class, and then instantiate
MyTable class as $myTable as showing below:

$myTable = new MyTable(...);

Then how do I get all the column names as an array for this table? Thanks
for your help.





Bartosz Maciaszek wrote:
> 
> Hi,
> 
> Actually you cannot instantiate Zend_Db_Table_Abstract as it is an
> abstract class.
> You have to create another class which extends Zend_Db_Table_Abstract
> in order to instantiate it.
> 
> Regards.
> 
> 2007/9/26, Kexiao Liao <[EMAIL PROTECTED]>:
>>
>> Say If I instantiate a Zend_Db_Table_Abstract as following:
>> $myTable = new Zend_Db_Table_Abstract(...);
>>
>> How do I get all the column names as a array for this table?
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/How-to-get-all-the-column-names-for-a-instance-of-Zend_Db_Table_Abstract-tf4522690s16154.html#a12902065
>> Sent from the Zend Framework mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-get-all-the-column-names-for-a-instance-of-Zend_Db_Table_Abstract-tf4522690s16154.html#a12902390
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] How to get all the column names for a instance of Zend_Db_Table_Abstract

2007-09-26 Thread Kexiao Liao

Say If I instantiate a Zend_Db_Table_Abstract as following:
$myTable = new Zend_Db_Table_Abstract(...);

How do I get all the column names as a array for this table?


-- 
View this message in context: 
http://www.nabble.com/How-to-get-all-the-column-names-for-a-instance-of-Zend_Db_Table_Abstract-tf4522690s16154.html#a12902065
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] new stdClass()

2007-09-26 Thread Kexiao Liao

The stdClass has been used in ZF in many demo examples. Does this class have
toArray() method? Does it belong to ZF only?



-- 
View this message in context: 
http://www.nabble.com/new-stdClass%28%29-tf453s16154.html#a12900437
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] toArray() Method

2007-09-25 Thread Kexiao Liao

There are a lot of classes in ZF have  toArray() method, for example the
Zend_Config_Ini has this method. Does this method belong to ZF or it belongs
to php5. What is the purpose of this method?
-- 
View this message in context: 
http://www.nabble.com/toArray%28%29-Method-tf4517369s16154.html#a12885790
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Validate several POST variables

2007-09-24 Thread Kexiao Liao

We would like to run a validation against 6 POST variables($_POST['var1'],
_POST['var2'],_POST['var3'],_POST['var4'],_POST['var5'],_POST['var6']), to
see if any one of them has been changed against the value stored in a
database table ($myTableRow->var1,$myTableRow->var2,
$myTableRow->var3,$myTableRow->var4,$myTableRow->var5, $myTableRow->var6). 
If anyone of them has been changed, the the validation is true, otherwise
the validation is false. How do we use Zend_Validate to implement it?
-- 
View this message in context: 
http://www.nabble.com/Validate-several-POST-variables-tf4511140s16154.html#a12866176
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] 19/11/2001 a valid date for the format 'm/d/yyyy' by using Zend_Date::isDate

2007-09-21 Thread Kexiao Liao

I am not sure if this is a bug for Zend_Date::isDate method, for the
following testing date the $result is true.

$zDate = new Zend_Date();
$input = '19/11/2001';
$result = $zDate->isDate($input,'m/d/');
-- 
View this message in context: 
http://www.nabble.com/19-11-2001-a-valid-date-for-the-format-%27m-d-%27-by-using-Zend_Date%3A%3AisDate-tf4497535s16154.html#a12826403
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Validate input data from POST variable

2007-09-21 Thread Kexiao Liao

Where is the best place to do the input data(from POST variables) validation
in the Zend Framework?

We can do the validation in following places:
1. Controller Class file
2. Use Defined Models Class file

Which one is the better choice?


 
-- 
View this message in context: 
http://www.nabble.com/Validate-input-data-from-POST-variable-tf4497400s16154.html#a12825924
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] How to use Zend_Validate_Date to validate date format MM/DD/YYYY or m/d/yyyy

2007-09-20 Thread Kexiao Liao

How do I use Zend_Validate_Date to valide date format as
MM/DD/(09/20/2007) or m/d/(9/1/2007)?
-- 
View this message in context: 
http://www.nabble.com/How-to-use-Zend_Validate_Date-to-validate-date-format-MM-DD--or-m-d--tf4489966s16154.html#a12805269
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Escape POST variable's value

2007-09-13 Thread Kexiao Liao

Before I save POST variable's values into Database table, Do I need to escape
these values to filter out any unexpected characters in the string? What is
the function we need to call for these filtering?

-- 
View this message in context: 
http://www.nabble.com/Escape-POST-variable%27s-value-tf4439669s16154.html#a12667161
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Access member variable of a class

2007-09-13 Thread Kexiao Liao

Say if we want to access a class member variable inside the class itself. Is
there any way we can access the member variable without using "$this->"
prefix? In that way we do not need to type extra $this-> prefix.


-- 
View this message in context: 
http://www.nabble.com/Access-member-variable-of-a-class-tf4435741s16154.html#a12654891
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Zend_DB_Table_Row method __get('columnName')

2007-09-10 Thread Kexiao Liao

The method __get('columnName') of Zend_DB_Table_Row has double underscore as
its method name's prefix. Check the Zend Frame document. There is no such
method name convention in the documentation. Can anybody give some help to
explain why we use such double underscore prefix for some of the class
method in Zend Framework. Thanks.

-- 
View this message in context: 
http://www.nabble.com/Zend_DB_Table_Row-method-__get%28%27columnName%27%29-tf4419892s16154.html#a12606753
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Using Zend_View_Helper_FormSelect Class

2007-09-10 Thread Kexiao Liao

This message has been posted in the MVC forum, since nobody reply it, so I
have to post it in the general forum.


When I use Zend_View_Helper_FormSelect to generate "select" list of options,
I got two option items have been pre-selected, actually there should only
one option with value of ".P"  been selected. I posted all the detail of
Options Array contents and the generated html select results, so someone may
see it and fix the bug in the FormSelect class. In our project, we need to
generate lots of select options list, so if this bug can be fixed in the
near future, that will help users to use Zend Framework in the real world.

Options Array as shown below:
Options[Empty] := Select from option list...
Options[.A] := Not Applicable to this Case or Patient
Options[.F] := Not Found in Chart/No Response to Follow-up
Options[.L] := Lost Chart/Lost to Follow-up
Options[.P] := Pending Data
Options[.R] := Not Recorded in Chart or Follow-up Response
Options[0] := No
Options[1] := Yes


formSelect("hx_dmti_s",'.P',null,$this->Options) ?> will render
following html select element:

Select
from option list... 
Not Applicable to this Case or Patient
Not Found in Chart/No Response to Follow-up
Lost
Chart/Lost to Follow-up
Pending
Data
Not Recorded in Chart or Follow-up Response
No
Yes

-- 
View this message in context: 
http://www.nabble.com/Using-Zend_View_Helper_FormSelect-Class-tf4417259s16154.html#a12599339
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Select Dropdown List

2007-09-07 Thread Kexiao Liao

Are there any classes in the Zend Framework which can create the Dropdown
list automatically from the control vocabulary shored in the DataBase
tables? One example of the dropdown list shown below:


No Not Applicable to this Case or PatientNot Found in Chart/No Response to Follow-upLost Chart/Lost to Follow-upPending
DataNot Recorded in Chart or Follow-up
Response


The contents of the above option part come from the control vocabulary
stored in a database table.  
-- 
View this message in context: 
http://www.nabble.com/Select-Dropdown-List-tf4401382s16154.html#a12555463
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] variable naming rules

2007-09-05 Thread Kexiao Liao

In the Zend Framework class, there are so many variables which has a "_"
prefixed to these variables. Why we use these underscore as the prefix for
these variables name. Is there any document we can find for these variable
naming rules. Thanks.


-- 
View this message in context: 
http://www.nabble.com/variable-naming-rules-tf4384355s16154.html#a12498947
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Zend Framework and mybic ajax framework

2007-09-04 Thread Kexiao Liao

I try to migrate my current web application to Zend Framework. My current web
application uses MyBic ajax framework(http://www.litfuel.net/mybic/) to
handle ajax request. If I migrate my web application to Zend Framework, Is
there any problem for using mybic in Zend Framework? Zend Framework already
has Zend_Jason which supports ajax in Zend Framework, so what is the
difference between using mybic and Zend_Jason? Are there any conflicts
between these two ajax frameworks?

-- 
View this message in context: 
http://www.nabble.com/Zend-Framework-and-mybic-ajax-framework-tf4379544s16154.html#a12484064
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Deploy Zend MVC application

2007-08-29 Thread Kexiao Liao

When we deploy Zend MVC application to the production site using apache web
server, the Zend MVC requires the boostrapper file reside the apache
document_root directory or you can make an alias in the apache httpd.conf
file and put the boostrapper file(index.php) in the directory related to
that alias. 

Can we deploy Zend MVC application to the production site without above
requirement?

   
-- 
View this message in context: 
http://www.nabble.com/Deploy-Zend-MVC-application-tf4348151s16154.html#a12388317
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Implement join table in Zend Framework

2007-08-24 Thread Kexiao Liao

What is the best approach to implement table join in Zend Framework. For
example, I have two tables: A & B, they need to be joined based on condition
$where. What is the best way that we can implement this in Zend Framework?
Any comments are highly appreciated.

-- 
View this message in context: 
http://www.nabble.com/Implement-join-table-in-Zend-Framework-tf4325213s16154.html#a12318170
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] function init()

2007-08-24 Thread Kexiao Liao

There is a method, init() of Zend Class. When will it be called? Doese it
belong to Zend Framework only or it belong to Php5.2 OO?

-- 
View this message in context: 
http://www.nabble.com/function-init%28%29-tf4323044s16154.html#a12310607
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] comments in Zend conf.ini file

2007-08-23 Thread Kexiao Liao

I try to use Zend_Config_Ini to parse following option array into Zend
Configuration class, it fails to read 
this line: 'host'=>'10.11.111.22'
[ldap]  
ldap.option = array(
'host'=>'10.78.165.44',  //server IP,
mandatory
'bind_dn'=>'cn=LDAPUser,OU=Users,DC=example,DC=com', //DN of the user
that may browse the ldap
'bind_pw'=>'xxx',//password
'user_oc'=>'user',   //ObjectClass for
users
'base_dn'=>'DC=example,DC=com',  //base DN for all
users
'user_dn'=>'OU=Users',   //dn for users
'user_attr'=>'samAccountName',   //the attribute
that contains the user login
//AD options
'use_domain_from_email'=>false,  //username is an
email, split it to get the domain
'domain'=>'',//NT domain to
prepend to the username, this is used with the direct_ bind on AD
'use_direct_bind'=>false //force the auth
based only on binding by username and password provided by user
)

tfk wrote:
> 
> On 8/23/07, Kexiao Liao <[EMAIL PROTECTED]> wrote:
>>
>>
>> Can we put comments in the Zend Configuration file(conf.ini) as showing
>> below?
> 
> Yes!
> 
> http://de3.php.net/manual/en/function.parse-ini-file.php
> 
> Till
> 
> 

-- 
View this message in context: 
http://www.nabble.com/comments-in-Zend-conf.ini-file-tf4319165s16154.html#a12300089
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] comments in Zend conf.ini file

2007-08-23 Thread Kexiao Liao


Can we put comments in the Zend Configuration file(conf.ini) as showing
below?

//these are the config settings, needed to connect the the LDAP directory
[ldap]  
ldap.options = array(
'host'=>'xx.xx.xxx.xx',  //server IP,
mandatory
'bind_dn'=>'cn=LDAPUser,OU=Users,DC=example,DC=com', //DN of the user
that may browse the ldap
'bind_pw'=>'xxx',//password
'user_oc'=>'user',   //ObjectClass for
users
'base_dn'=>'DC=example,DC=com',  //base DN for all
users
'user_dn'=>'OU=Users',   //dn for users
'user_attr'=>'samAccountName',   //the attribute
that contains the user login
//AD options
'use_domain_from_email'=>false,  //username is an
email, split it to get the domain
'domain'=>'',//NT domain to
prepend to the username, this is used with the direct_ bind on AD
'use_direct_bind'=>false //force the auth
based only on binding by username and password provided by user
)
-- 
View this message in context: 
http://www.nabble.com/comments-in-Zend-conf.ini-file-tf4319165s16154.html#a12299334
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] LDAP option array parameters

2007-08-21 Thread Kexiao Liao


Can anyone tell me which ones in the following options array of LDAP are
required?

//these are the config settings, needed to connect the the LDAP directory
$options = array(
'host'=>'192.168.1.1',   //server IP,
mandatory
'bind_dn'=>'cn=LDAPUser,OU=Users,DC=example,DC=com', //DN of the user
that may browse the ldap
'bind_pw'=>'xxx',//password
'user_oc'=>'user',   //ObjectClass for
users
'base_dn'=>'DC=example,DC=com',  //base DN for all
users
'user_dn'=>'OU=Users',   //dn for users
'user_attr'=>'samAccountName',   //the attribute
that contains the user login
//AD options
'use_domain_from_email'=>false,  //username is an
email, split it to get the domain
'domain'=>'',//NT domain to
prepend to the username, this is used with the direct_ bind on AD
'use_direct_bind'=>false //force the auth
based only on binding by username and password provided by user
);


-- 
View this message in context: 
http://www.nabble.com/LDAP-option-array-parameters-tf4307735s16154.html#a12262956
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Zend_Auth Ldap adpator authentication implementation

2007-08-21 Thread Kexiao Liao

We would like to use Zend_Auth Ldap Adapter for our web application
authentication process. The Ldap.php file have been download into
Zend/Auth/Adapter/ directory. Following is my AuthController class file to
authenticate against database Projects.Personnel table which stores in MySQL
DB. It works well. Now We would like to switch to Ldap server, Would anybody
give us some hints regarding how to do that? Thanks in advance.

AuthController.php file:
initView();
$this->view->baseUrl = $this->_request->getBaseUrl();
}
   
function indexAction()
{
$this->_redirect('/');
}
   
function loginAction()
{
$this->view->message = '';
if (strtolower($_SERVER['REQUEST_METHOD']) == 'post') {
// collect the data from the user
Zend_Loader::loadClass('Zend_Filter_StripTags');
$filter = new Zend_Filter_StripTags();
$username =
$filter->filter($this->_request->getPost('username'));
$password =
md5($filter->filter($this->_request->getPost('password')));

if (empty($username)) {
$this->view->message = 'Please provide a username.';
} else {
// setup Zend_Auth adapter for a database table
Zend_Loader::loadClass('Zend_Auth_Adapter_DbTable');
$dbAdapter = Zend_Registry::get('dbAdapter');
$authAdapter = new Zend_Auth_Adapter_DbTable($dbAdapter);
$authAdapter->setTableName('Personnel');
$authAdapter->setIdentityColumn('username');
$authAdapter->setCredentialColumn('password');
   
// Set the input credential values to authenticate against
$authAdapter->setIdentity($username);
$authAdapter->setCredential($password);
   
// do the authentication
$auth = Zend_Auth::getInstance();
$result = $auth->authenticate($authAdapter);
if ($result->isValid()) {
// success : store database row to auth's storage system
// (not the password though!)
$data = $authAdapter->getResultRowObject(null,
'password');
$auth->getStorage()->write($data);
$this->_redirect('/');
} else {
// failure: clear database row from session
$this->view->message = 'Login failed.';
}
}
}
   
$this->view->title = "Log in";
$this->render();
   
}
   
function logoutAction()
{
Zend_Auth::getInstance()->clearIdentity();
$this->_redirect('/');
}
}


My Zend Configure file looks like this:

[general]
db.adapter = PDO_MYSQL
db.config.host = mozart.bio.ri.ccf.org
db.config.username = myusername
db.config.password = mypassword
db.config.dbname = Projects 
-- 
View this message in context: 
http://www.nabble.com/Zend_Auth-Ldap-adpator-authentication-implementation-tf4306321s16154.html#a12258348
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Using Zend_Auth standalone class

2007-08-21 Thread Kexiao Liao

Hi All,
   I need to use Zend_Auth class for my current web application. My current
web application does not support MVC stuff. So in my case, I only need to
use Zend_Auth class for the web authentication, Is there any good
Example/Demo codes to integrate Zend_Auth class into current application?
Thanks in advance.

   
-- 
View this message in context: 
http://www.nabble.com/Using-Zend_Auth-standalone-class-tf4305474s16154.html#a12255595
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Implement LDAP by using Zend_Auth

2007-08-15 Thread Kexiao Liao

I am new to Zend_Auth, I need to use Zend_Auth for the LDAP authentication. I
just wonder how do I query the LDAP Service Server by using Zend_Auth class.
Can anyone give me a sample codes to implement this? Thanks in advance.
-- 
View this message in context: 
http://www.nabble.com/Implement-LDAP-by-using-Zend_Auth-tf4273469s16154.html#a12163123
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Zend Studio IDE 5.0

2007-08-15 Thread Kexiao Liao

I have Zend Debugger v5.2.6 enable on my server and it works well for my Zend
Studio IDE. However when I try to debug the php application on the server
using PDT, it just stay there, and never go forward? How do we enable
Debugger on the server?


Alex Netkachov wrote:
> 
> On 8/14/07, Kexiao Liao <[EMAIL PROTECTED]> wrote:
>>
>> Does Eclipse PDT support remote debuging from the server page?
> 
> Yes. If you have debugger enabled on your server, you can debug the
> application using PDT.
> 
>>
>>
>> Kexiao  Liao wrote:
>> >
>> > Actually the PDO package has been installed on the server, and the Demo
>> > codes works well from the server.
>> > Do we need to install PDO plugin for the Eclipse PDT?
>> >
>> > Kevin
>> >
>> >
>> > Matthew Weier O'Phinney-3 wrote:
>> >>
>> >> -- Kexiao Liao <[EMAIL PROTECTED]> wrote
>> >> (on Tuesday, 14 August 2007, 12:20 PM -0700):
>> >>> I just download eclipsePDT  with Zend Debugger plugin from
>> >>> http://www.zend.com/pdt#debugger, and debug the ZFGridDemo codes,
>> >>> following
>> >>> error message shown on the  Debug Output. Since we are using Debuger
>> >>> function a lot, I wonder whether we can solve that problem? The Demo
>> >>> codes
>> >>> work well without using debugger.
>> >>>
>> >>> X-Powered-By: PHP/5.2.2
>> >>> Set-Cookie:
>> ZendDebuggerCookie=127.0.0.1%3A2%3A0||004|77742D65|1002;
>> >>> path=/
>> >>> Fatal error: Uncaught exception 'Zend_Db_Adapter_Exception' with
>> message
>> >>> 'The PDO extension is required for this adapter but not loaded' in
>> >>
>> >> Looks like the PHP version included with the IDE does not include PDO.
>> >>
>> >> --
>> >> Matthew Weier O'Phinney
>> >> PHP Developer| [EMAIL PROTECTED]
>> >> Zend - The PHP Company   | http://www.zend.com/
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Zend-Studio-IDE-5.0-tf4267730s16154.html#a12151609
>> Sent from the Zend Framework mailing list archive at Nabble.com.
>>
>>
> 
> 
> -- 
> http://www.alexatnet.com/ - consulting, blog, articles and support for
> PHP, ZF, JavaScript and web development.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Zend-Studio-IDE-5.0-tf4267730s16154.html#a12162000
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Zend Studio IDE 5.0

2007-08-14 Thread Kexiao Liao

Does Eclipse PDT support remote debuging from the server page?


Kexiao  Liao wrote:
> 
> Actually the PDO package has been installed on the server, and the Demo
> codes works well from the server. 
> Do we need to install PDO plugin for the Eclipse PDT?
> 
> Kevin
> 
> 
> Matthew Weier O'Phinney-3 wrote:
>> 
>> -- Kexiao Liao <[EMAIL PROTECTED]> wrote
>> (on Tuesday, 14 August 2007, 12:20 PM -0700):
>>> I just download eclipsePDT  with Zend Debugger plugin from
>>> http://www.zend.com/pdt#debugger, and debug the ZFGridDemo codes,
>>> following
>>> error message shown on the  Debug Output. Since we are using Debuger
>>> function a lot, I wonder whether we can solve that problem? The Demo
>>> codes
>>> work well without using debugger.
>>> 
>>> X-Powered-By: PHP/5.2.2
>>> Set-Cookie: ZendDebuggerCookie=127.0.0.1%3A2%3A0||004|77742D65|1002;
>>> path=/
>>> Fatal error: Uncaught exception 'Zend_Db_Adapter_Exception' with message
>>> 'The PDO extension is required for this adapter but not loaded' in
>> 
>> Looks like the PHP version included with the IDE does not include PDO.
>> 
>> -- 
>> Matthew Weier O'Phinney
>> PHP Developer| [EMAIL PROTECTED]
>> Zend - The PHP Company   | http://www.zend.com/
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Zend-Studio-IDE-5.0-tf4267730s16154.html#a12151609
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Zend Studio IDE 5.0

2007-08-14 Thread Kexiao Liao

Actually the PDO package has been installed on the server, and the Demo codes
works well from the server. 
Do we need to install PDO plugin for the Eclipse PDT?

Kevin


Matthew Weier O'Phinney-3 wrote:
> 
> -- Kexiao Liao <[EMAIL PROTECTED]> wrote
> (on Tuesday, 14 August 2007, 12:20 PM -0700):
>> I just download eclipsePDT  with Zend Debugger plugin from
>> http://www.zend.com/pdt#debugger, and debug the ZFGridDemo codes,
>> following
>> error message shown on the  Debug Output. Since we are using Debuger
>> function a lot, I wonder whether we can solve that problem? The Demo
>> codes
>> work well without using debugger.
>> 
>> X-Powered-By: PHP/5.2.2
>> Set-Cookie: ZendDebuggerCookie=127.0.0.1%3A2%3A0||004|77742D65|1002;
>> path=/
>> Fatal error: Uncaught exception 'Zend_Db_Adapter_Exception' with message
>> 'The PDO extension is required for this adapter but not loaded' in
> 
> Looks like the PHP version included with the IDE does not include PDO.
> 
> -- 
> Matthew Weier O'Phinney
> PHP Developer| [EMAIL PROTECTED]
> Zend - The PHP Company   | http://www.zend.com/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Zend-Studio-IDE-5.0-tf4267730s16154.html#a12150997
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Zend Studio IDE 5.0

2007-08-14 Thread Kexiao Liao

I just download eclipsePDT  with Zend Debugger plugin from
http://www.zend.com/pdt#debugger, and debug the ZFGridDemo codes, following
error message shown on the  Debug Output. Since we are using Debuger
function a lot, I wonder whether we can solve that problem? The Demo codes
work well without using debugger.

X-Powered-By: PHP/5.2.2
Set-Cookie: ZendDebuggerCookie=127.0.0.1%3A2%3A0||004|77742D65|1002;
path=/
Fatal error: Uncaught exception 'Zend_Db_Adapter_Exception' with message
'The PDO extension is required for this adapter but not loaded' in
W:\wwwroot\ZendFramework-1.0.0\library\Zend\Db\Adapter\Pdo\Abstract.php:95
Stack trace: #0
W:\wwwroot\ZendFramework-1.0.0\library\Zend\Db\Adapter\Abstract.php(246):
Zend_Db_Adapter_Pdo_Abstract->_connect() #1
W:\wwwroot\ZendFramework-1.0.0\library\Zend\Db\Adapter\Pdo\Abstract.php(206):
Zend_Db_Adapter_Abstract->query('SHOW TABLES', Array) #2
W:\wwwroot\ZendFramework-1.0.0\library\Zend\Db\Adapter\Abstract.php(506):
Zend_Db_Adapter_Pdo_Abstract->query('SHOW TABLES', Array) #3
W:\wwwroot\ZendFramework-1.0.0\library\Zend\Db\Adapter\Pdo\Mysql.php(66):
Zend_Db_Adapter_Abstract->fetchCol('SHOW TABLES') #4
V:\zfgrid\app\controllers\IndexController.php(22):
Zend_Db_Adapter_Pdo_Mysql->listTables() #5
W:\wwwroot\ZendFramework-1.0.0\library\Zend\Controller\Action.php(497):
IndexController->indexAction() #6
W:\wwwroot\ZendFramework-1.0.0\library\Zend\Controller\Dispatcher\Standard.php(237):
Zend_C in
W:\wwwroot\ZendFramework-1.0.0\library\Zend\Db\Adapter\Pdo\Abstract.php on
line 95


Dan Rossi-5 wrote:
> 
> Kexiao Liao wrote:
>> If the Zend IDE 5.0 is not a good tool for the development of Zend Frame
>> application, Can we use Eclipse for that purpose? The reason for using
>> Eclipse is that it is a Open Source software, we do not need to spend
>> extra
>> money to update Zend IDE 5.0 to Zend IDE 5.5.
>>   
> Why not, I use eclipse for most things PHP / Java / C# etc with its 
> plugins. I was using PHP Eclipse for many years but decided to try out 
> PDT. 
> 
> Please beware of PDT however, there is some crazy qwuirks in it which 
> will make your projects build randomly, attempting to validate every 
> single file even though the project has it all off in its settings. 
> Cancelling the job doesnt stop it, you cannot do any of your work until 
> its complete, and force quitting ends up crashing the workspace.  So 
> imagine loading up the Zend and PEAR libraries aswell as your own things 
> and some java projects and its just one royal messy waste of time. I had 
> to let it sit there for hours one time.
> 
>>
>>
>>
>> Davey Shafik wrote:
>>   
>>> ZDE 5.0 uses PHP < = 5.2.0 (5.0.x probably), I imagine
>>> anything that uses an Array typehint will be broken :)
>>>
>>> Certainly things will break when running, even if there are no
>>> syntax errors.
>>>
>>> - Davey
>>>
>>> On Aug 14, 2007, at 10:55 AM, Thomas Weidner wrote:
>>>
>>> 
>>>> We have several unit tests which include broken XML Files for example.
>>>>
>>>> The code itself has no syntaxerrors (maybe except the incubator)
>>>>
>>>> Greetings
>>>> Thomas
>>>> I18N Team Leader
>>>>
>>>> - Original Message - From: "Kexiao Liao" <[EMAIL PROTECTED]>
>>>> To: 
>>>> Sent: Tuesday, August 14, 2007 4:39 PM
>>>> Subject: [fw-general] Zend Studio IDE 5.0
>>>>
>>>>
>>>>   
>>>>> Can we use Zend Studio IDE 5.0 for developping Zend Framework  
>>>>> application,
>>>>> particularly we need the remote debug function for the IDE 5.0?
>>>>>
>>>>> When I use Zend IDE5.0 to develop Zend Framwork application, it  
>>>>> has a lot of
>>>>> syntax errors for the Zend Framework library source codes.
>>>>> -- 
>>>>> View this message in context: http://www.nabble.com/Zend-Studio- 
>>>>> IDE-5.0-tf4267730s16154.html#a12145830
>>>>> Sent from the Zend Framework mailing list archive at Nabble.com.
>>>>> 
>>>
>>> 
>>
>>   
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Zend-Studio-IDE-5.0-tf4267730s16154.html#a12150654
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Zend Studio IDE 5.0

2007-08-14 Thread Kexiao Liao

If the Zend IDE 5.0 is not a good tool for the development of Zend Frame
application, Can we use Eclipse for that purpose? The reason for using
Eclipse is that it is a Open Source software, we do not need to spend extra
money to update Zend IDE 5.0 to Zend IDE 5.5.




Davey Shafik wrote:
> 
> ZDE 5.0 uses PHP < = 5.2.0 (5.0.x probably), I imagine
> anything that uses an Array typehint will be broken :)
> 
> Certainly things will break when running, even if there are no
> syntax errors.
> 
> - Davey
> 
> On Aug 14, 2007, at 10:55 AM, Thomas Weidner wrote:
> 
>> We have several unit tests which include broken XML Files for example.
>>
>> The code itself has no syntaxerrors (maybe except the incubator)
>>
>> Greetings
>> Thomas
>> I18N Team Leader
>>
>> - Original Message - From: "Kexiao Liao" <[EMAIL PROTECTED]>
>> To: 
>> Sent: Tuesday, August 14, 2007 4:39 PM
>> Subject: [fw-general] Zend Studio IDE 5.0
>>
>>
>>>
>>> Can we use Zend Studio IDE 5.0 for developping Zend Framework  
>>> application,
>>> particularly we need the remote debug function for the IDE 5.0?
>>>
>>> When I use Zend IDE5.0 to develop Zend Framwork application, it  
>>> has a lot of
>>> syntax errors for the Zend Framework library source codes.
>>> -- 
>>> View this message in context: http://www.nabble.com/Zend-Studio- 
>>> IDE-5.0-tf4267730s16154.html#a12145830
>>> Sent from the Zend Framework mailing list archive at Nabble.com.
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Zend-Studio-IDE-5.0-tf4267730s16154.html#a12146529
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Zend Studio IDE 5.0

2007-08-14 Thread Kexiao Liao

Can we use Zend Studio IDE 5.0 for developping Zend Framework application,
particularly we need the remote debug function for the IDE 5.0?

When I use Zend IDE5.0 to develop Zend Framwork application, it has a lot of
syntax errors for the Zend Framework library source codes.
-- 
View this message in context: 
http://www.nabble.com/Zend-Studio-IDE-5.0-tf4267730s16154.html#a12145830
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Deploy Zend Framework Application

2007-08-13 Thread Kexiao Liao

When I try to deploy Zend Framework Application from Development site to
Production site, the RewriteBase value from .htaccess file make deployment
much hard to do. Following is the example:
in my .htaccess file I declare a RewriteBase value as DevelopmentBase, and
in my index.phtml script template file, I use that RewriteBase value in the
following href attribue:
"href="/DevelopmentBase/grid/show/table/" >"

When I try to deploy my Zend Framework Application to the Production site, I
have to use ProductionBase as RewriteBase value in the .htaccess file, so
the RewriteBase value has been changed from Development to Production, then
I have to change all the RewriteBase value in all the template script files.
For this kind of case, Is there a good solution to deploy application to the
production site?
-- 
View this message in context: 
http://www.nabble.com/Deploy-Zend-Framework-Application-tf4261581s16154.html#a12127371
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Deploy Zend Framework application on the production server

2007-08-09 Thread Kexiao Liao

Hi Mike,
   If my zfgrid/document_root corresponds to the physical path on the
production server is /home/kevin/public_html/zfgrid/document_root, how do we
include that path through .htaccess?

How do we include it into bootstrap file? Using something like:
set_include_path(
$appDir . '/models'
. PATH_SEPARATOR
. get_include_path()
. PATH_SEPARATOR
. '/home/liaok/wwwroot/ZendFramework-1.0.0/library'
. PATH_SEPARATOR
. '/home/kevin/public_html/zfgrid/document_root'
);


Hi Kevin,
Based on my experience, as long as mod_rewrite is enabled, you don't
need to modify httpd.conf and restart apache.

The only extra work needed is to make sure that zf dir can be added
into include path through .htaccess. if it can't, you need to write
the path into a config file or hardcode it in your bootstrap file
(adding "set_include_path").

Regards,
Mike



-- 
View this message in context: 
http://www.nabble.com/Deploy-Zend-Framework-application-on-the-production-server-tf4242664s16154.html#a12084656
Sent from the Zend Framework mailing list archive at Nabble.com.



Re: [fw-general] Deploy Zend Framework application on the production server

2007-08-09 Thread Kexiao Liao

My key point is, if we already enable mod_rewrite in the apache server, Can
we deploy Zend Framework Application without modifying httpd.conf file to
add alias name for the document_root directory?

Kevin


Jack Sleight wrote:
> 
> See the Graceful Restart section on this page:
> http://httpd.apache.org/docs/2.0/stopping.html
> Allows you to reconfigure Apache without completely restarting it.
> 
> Kexiao Liao wrote:
>> When we finish Zend Framework application, and put it on the production
>> server. We need to modify the web server configuration file, in case of
>> Apache Server, we need to modify httpd.conf and add an alias name and the
>> associated  tag contents like following:
>>
>> 
>> Options all
>> AllowOverride all
>> Order allow,deny
>> Allow from all
>> 
>>
>> After modify the httpd.conf configuration file, we need restart Apache
>> server. For production site, this is not a good solution.
>> Is there another approach which we can avoid modification of httpd.conf
>> file
>> and restarting the server?
>>  
>>   
> 
> -- 
> Jack
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Deploy-Zend-Framework-application-on-the-production-server-tf4242664s16154.html#a12077402
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] Deploy Zend Framework application on the production server

2007-08-09 Thread Kexiao Liao

When we finish Zend Framework application, and put it on the production
server. We need to modify the web server configuration file, in case of
Apache Server, we need to modify httpd.conf and add an alias name and the
associated  tag contents like following:


Options all
AllowOverride all
Order allow,deny
Allow from all


After modify the httpd.conf configuration file, we need restart Apache
server. For production site, this is not a good solution.
Is there another approach which we can avoid modification of httpd.conf file
and restarting the server?
 
-- 
View this message in context: 
http://www.nabble.com/Deploy-Zend-Framework-application-on-the-production-server-tf4242664s16154.html#a12072546
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] ".htaccess location" post can not be accessed

2007-08-08 Thread Kexiao Liao

Can anyone read ".htaccess location" message replied by Bill Karwin? I can
not open that message from nabble.com.
-- 
View this message in context: 
http://www.nabble.com/%22.htaccess-location%22-post-can-not-be-accessed-tf4240327s16154.html#a12065541
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] htaccess file

2007-08-08 Thread Kexiao Liao

If I can not control the httpd.conf file for the Apache Web Server, my domain
name is ctresearch.ccf.org, and I have to access Zend Framework MVC Demo
through following url:


ctresearch.ccf.org/DataEntry/zfgrid/document_root/

I put .htaccess under document_root directory and it has following contents:
RewriteEngine on
RewriteBase /DataEntry/zfgrid/document_root/
RewriteRule !\.(pdf|php|js|ico|txt|gif|jpg|png|css|rss|zip|tar\.gz)$
index.php

When I try to access MVC Demo codes, only following url works well:
http://ctresearch.ccf.org/DataEntry/zfgrid/document_root/index/index

The link
http://ctresearch.ccf.org/DataEntry/zfgrid/document_root/grid/show/table/Patient
does not work. Can anyone give me some help? Thanks in advance.
-- 
View this message in context: 
http://www.nabble.com/htaccess-file-tf4238673s16154.html#a12060668
Sent from the Zend Framework mailing list archive at Nabble.com.


[fw-general] .htaccess location

2007-08-08 Thread Kexiao Liao

If I can not control the httpd.conf file for the Apache Web Server, my domain
name is ctresearch.ccf.org, and I have to access Zend Framework MVC Demo
through following url:

ctresearch.ccf.org/DataEntry/zfgrid/document_root/

I put .htaccess under document_root directory and it has following contents:
RewriteEngine on
RewriteBase /DataEntry/zfgrid/document_root/
RewriteRule !\.(pdf|php|js|ico|txt|gif|jpg|png|css|rss|zip|tar\.gz)$
index.php

When I try to access MVC Demo codes, only following url works well:
http://ctresearch.ccf.org/DataEntry/zfgrid/document_root/index/index

The link
http://ctresearch.ccf.org/DataEntry/zfgrid/document_root/grid/show/table/Patient
does not work. Can anyone give me some help? Thanks in advance.
-- 
View this message in context: 
http://www.nabble.com/.htaccess-location-tf4238648s16154.html#a12060605
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] .htaccess location

2007-08-08 Thread Kexiao Liao

If I can not control the httpd.conf file for the Apache Web Server, my domain
name is ctresearch.ccf.org, and I have to access Zend Framework MVC Demo
through following url:

ctresearch.ccf.org/DataEntry/zfgrid/document_root/

I put .htaccess under document_root directory and it has following contents:
RewriteEngine on
RewriteBase /DataEntry/zfgrid/document_root/
RewriteRule !\.(pdf|php|js|ico|txt|gif|jpg|png|css|rss|zip|tar\.gz)$
index.php

When I try to access MVC Demo codes, only following url works well:
http://ctresearch.ccf.org/DataEntry/zfgrid/document_root/index/index

The link
http://ctresearch.ccf.org/DataEntry/zfgrid/document_root/grid/show/table/Patient
does not work. Can anyone give me some help? Thanks in advance.
-- 
View this message in context: 
http://www.nabble.com/.htaccess-location-tf4238644s16154.html#a12060594
Sent from the Zend Framework mailing list archive at Nabble.com.



[fw-general] How to get values of POST variables from Zend Framework

2007-08-08 Thread Kexiao Liao

I just begin to use Zend Framework. I need to get all the POST variables'
values inside the html form. In normal php, we use $_POST variable. For the
Zend Framework, Do we have better approach to get all these POST data once
we click the submit button of the html form?


Kevin

-- 
View this message in context: 
http://www.nabble.com/How-to-get-values-of-POST-variables-from-Zend-Framework-tf4236459s16154.html#a12053437
Sent from the Zend Framework mailing list archive at Nabble.com.


[fw-general] what does the tag "

2007-08-07 Thread Kexiao Liao

I am new to Zend Framework, what does the tag("tables as $tableName): ?>

 "/zfgrid/grid/show/table/

 


-- 
View this message in context: 
http://www.nabble.com/what-does-the-tag-%22%3C-%3D%22-mean-in-index.pthml-file-of-ZFGridDemo-tf4230887s16154.html#a12036657
Sent from the Zend Framework mailing list archive at Nabble.com.