Caution: The documentation you are viewing is for an older version of Zend Framework. You can find the documentation of the current version at: https://docs.zendframework.com/ Zend_Cache のバックエンド - Zend_Cache
Caution: The documentation you are viewing is for an older version of Zend Framework. You can find the documentation of the current version at: https://docs.zendframework.com/ リクエストオブジェクト - Zend_Controller リクエストオブジェクトとは Zend_Controller_Front とルータ、 ディスパッチャそしてコントローラクラスの間でやり取りされる単純なバリューオブジェクトです。 これはコントローラ、アクションそして環境 (HTTP、CLI、PHP-GTK など) に応じたその他のパラメータの内容をまとめたものです。 モジュール名にアクセスするには getModuleName() および
Zend Frameworkマニュアルに記述のあるエラー処理について紹介します(7.10.5.2節参照)。ソースコードはこちらからダウンロードできます。 <?php class ErrorController extends Zend_Controller_Action { public function errorAction() { $errors = $this->_getParam('error_handler'); switch ($errors->type) { case Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_CONTROLLER: case Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_ACTION: // 404 error -- controller or
Caution: The documentation you are viewing is for an older version of Zend Framework. You can find the documentation of the current version at: https://docs.zendframework.com/ プラグイン - Zend_Controller コントローラにはプラグイン機構が組み込まれており、 コントローラの処理中にイベントが発生した際にユーザのコードをコールできます。 フロントコントローラは、プラグインブローカにユーザのプラグインを登録します。 そして、イベントメソッドがコールされた際に、 フロントコントローラに登録されているプラグインをプラグインブローカが実行します。 イベントメソッドは、抽象クラス Zend_Controller_
重い処理にはキャッシュ。ということで、MemcachedをZend framworkで使用してみた。まずは、Zend frameworkのパッケージphp-ZendFrameworkでは、入らなかったのでインストールから。 # yum install --enablerepo=remi php-ZendFramework-Cache-Backend-Memcached # /etc/init.d/httpd restart apacheのリスタートをしないと、下記のようなエラーが出てハマる。 PHP Fatal error: Uncaught exception 'Zend_Cache_Exception' with message 'The memcache extension must be loaded for using this backend !' PHPでのキャッシュはフロン
超便利なのに、使っている人が少なそうな(2008.06.01現在)Zend_Cacheを紹介するよ。 ■Zend_Cache の概要 Zend_Cacheで簡単にコンテンツをキャッシュするという話。この辺りから、Zend Framework(以下、ZF)を好きになってきたよ。 Cache の仕組みは簡単。 1. 何をキャッシュするか(FrontEnd) 2. どこにキャッシュするか(BackEnd) をまず決めよう。これは下記の例から好きに組み合わせて使うことができる。 FrontEnd(キャッシュするデータ) の例 Core PHP上の変数に格納するようなあらゆるデータ Output PHPの出力データ(標準出力を横取りしてくれます) Function 関数コールの結果 Class オブジェクト及びスタティックメソッドのコール File XMLなどの外部ファイルで指定された設定ファイルの
CakePHPにはメールを送信するコンポーネントがありません。そこでZendFramework(以下、ZF)のZend_Mailを組み合わせてみました。 1.ZendFremeworkを設置 ZFをダウンロード・解凍し、library/以下を[app/vendors]に設置します。設置すると以下のような構成になります。 [app] + [vendors] + [Zend] + Zend.php 2.ZendFremework読み込み準備 ZFではクラスファイルを読み込む際にinclude_pathが通っている事を前提としています。このまま使用するとクラスファイルが読み込めずにエラーが発生するので、include_pathを設定するスクリプトを設置しておきます。 [app/vendors/zend_init.php] <?php ini_set('include_path', ini_get
■ PEAR と Zend Framework のコーディング規約の違い この2つのコーディング規約で、微妙に違う箇所があるのに気付いたのでメモ。 (違いは他にもあるかもしれません。) PEAR :: Manual :: 標準コーディング規約 Zend Framework PHP 標準コーディング規約 switch 文 字下げの位置が違う。 PEAR は Zend Framework 風のインデントも許しているようだが、 Zend Framework の方は厳密に定めている。 PEAR の場合 <?php switch (condition) { case 1: action1; break; case 2: action2; break; default: defaultaction; break; } ?> Zend Framework の場合 switch ($numPeople)
The Google Data APIs Teamは11月30日(米国時間)、Google Data PHPクライアントライブラリにYouTube、Picasa Web Albums、Google Documents Listのサポートが追加されたことを発表した。同クライアントライブラリはZend Framework 1.0.3以降および依存パッケージZend Gdataから扱える。 The Google Data APIs TeamはPHPに限らずJava、.NET、PHP、Python、Objective-C、JavaScript向けに同社のサービスを活用するためのライブラリを公開している。サービスは公開されているためそのままでも使えるが、提供されているAPIを使った方が簡単に開発できる。 Googleのサービスを活用したいと考えているPHPデベロッパは同ライブラリを検討するといいだろ
By: Alexander Veremyev Introduction The Zend_Pdf component of the Zend Framework is intended to allow you to create or manipulate PDF documents from within your applications. In addition to its text handling capabilities, it comes complete with drawing features that allow you to create or manipulate graphical primitives. When working with text Zend_Pdf gives you the option of using the built-in
表目次 2.1. サンプル CMS 用のアクセス制御 3.1. 設定オプション 3.2. サーバのオプション 3.3. デバッグメッセージ 3.4. Active Directory 用のオプション 3.5. OpenLDAP 用のオプション 4.1. Core フロントエンドのオプション 4.2. Function フロントエンドのオプション 4.3. Class フロントエンドのオプション 4.4. File フロントエンドのオプション 4.5. Page フロントエンドのオプション 4.6. File バックエンドのオプション 4.7. Sqlite バックエンドのオプション 4.8. Memcached バックエンドのオプション 4.9. Xcache バックエンドのオプション 6.1. Zend_Config_Ini コンストラクタのパラメータ 9.1. 通貨記号の設定を指定する
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く