0

ビューindex.phtmlの 1 つでこのコードを使用しています

        <?php echo $this->action('123', '456', null); ?>
        <?php echo $this->action('googlecalendar', 'widget', null); ?>
        <?php echo $this->action('blablabla', 'abc', null); ?>

2番目のアクションがこの行で例外をスローした場合

$service = Zend_Gdata_ClientLogin::getHttpClient($email, $password, $service);

(私はtry / catchでキャッチしています)

const MANCA_DATI_AUTENTICAZIONE = 1;
const ERRORE_DURANTE_COLLEGAMENTO = 2;
const CAPTCHA_REQUIRED = 3;
try {
                    $service = Zend_Gdata_ClientLogin::getHttpClient($email, $password, $service);

                }
                catch(Zend_Gdata_App_HttpException $e)
                {

                    return self::ERRORE_DURANTE_COLLEGAMENTO;
                }
                catch(Zend_Gdata_App_AuthException $e)
                {

                    return self::MANCA_DATI_AUTENTICAZIONE;
                }
                catch(Zend_Gdata_App_CaptchaRequiredException $e)
                {

                    return self::CAPTCHA_REQUIRED;
                }
...

このファイルの出力全体が<html xmlns="http://www.w3.org/1999/xhtml">タグの前に置かれます。

ここに私のlayout.phpがあります

<?php

$content_layout = $this->layout()->content;
...
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
...<?php echo $content_layout?>

現在、最新の Zend (1.1.11) を使用しています。その行で例外が発生しなければ、すべて正常に動作します。Zend ライブラリのデバッグを試みましたが、解決策が見つかりませんでした

4

0 に答える 0