ナビゲーション
FrontPage
FreeBSD
Linux
Citrix XenServer
VMware ESXi
Unixコマンド
MySQL
PostgreSQL
Windows
CMS/CRM
クラウド
用語
PHPスクリプト
Bashシェルスクリプト
Rubyスクリプト
開発日記
検索
ツールボックス
新しいページの作成
バックアップの表示
外部のリンク元
最近更新したページ
全ページ
ヘルプ
凍結
アップロード
ページ名の変更
最新の40件
2016-08-17
Linux/NagiosQL
Linux/CentOSチューニング
2016-02-23
Linux/ソフトウェアRAID復旧手順
2016-02-18
FreeBSD/DHCP
FreeBSD/squid
2016-02-15
Unixコマンド/file
2016-02-05
FreeBSD/DynaBook
FreeBSD/Linux compatibility
2016-01-21
PHPスクリプト/PEAR DBインストールできない
PHPスクリプト/PEAR DB
2016-01-20
PHP/フレームワーク/Zend Framework
PHP/フレームワーク
FreeBSD/Postfix+amavisd+clamav
2016-01-15
FreeBSD/sl
2015-12-04
Unixコマンド/dig
Unixコマンド/nslookup
Unixコマンド/traceroute
Linux/rsync
FreeBSD/rsync
Unixコマンド/vipw
2015-11-25
Linux/Postfix+MySQL+Postfix AdminによるバーチャルSMTPサーバの構築
Linux/Postfix + postgrey
2015-11-24
Linux/Postfix + amavisd + clamav
2015-05-25
Unixコマンド/ifconfig
2015-05-23
Unixコマンド/netstat
Unixコマンド/route
Unixコマンド/lsof
Unixコマンド/disown
Unixコマンド/time
Unixコマンド/crontab
2015-05-22
Unixコマンド/nohup
Unixコマンド/fgとbg
Unixコマンド/nice
Unixコマンド/kill
Unixコマンド/jobs
Unixコマンド/restor
Unixコマンド/dump
Unixコマンド/uncompress
Unixコマンド/compress
Unixコマンド/zcat
total:
1192
today:
1
yesterday:
0
now:
1
本文
ノート
?
編集
差分
一覧
PHP/フレームワーク/Zend Framework の編集
*Zend Framework [#o8f6c544] [[dokuwiki.fl8.jp掲載済>http://dokuwiki.fl8.jp/11_php/02_framework/10_zend_framework]] PHP本家Zendが提供する純正フレームワーク #contents **リファレンス [#c334f52b] [[http://www.zendframework.com/manual/ja/manual.html>http://www.zendframework.com/manual/ja/manual.html]] **インストール [#j77b6b18] ***ダウンロード [#ef7eb830] [[http://framework.zend.com/download>http://framework.zend.com/download]] &color(Blue){※無料の登録が必要です。}; 今回はコレを使用しました。 -ZendFramework-1.10.3.tar.gz 解凍して、/usr/localあたりに置いておく # tar zxv ZendFramework-1.10.3.tar.gz # cp -rf ZendFramework-1.10.3 /usr/local/ZendFramework ***php.iniの編集 [#jfd72d96] include_pathにコピーしたパス「/usr/local/ZendFramework/library」を追加する。 include_path = ".:/php/includes:/usr/local/ZendFramework/library" ***Apacheの再起動 [#wb7e64bd] # /etc/init.d/httpd restart **Hello Worldを出してみる[#o70644b9] 今回は例として「/home/matsui」ディレクトリに設置します。 [[Zend Framework インストール>PHP/フレームワーク/Zend Framework##j77b6b18]]~ 上記の方法でインストール済みとして説明します。 ApacheのDocumentRootは「/home/matsui/public_html」です。 /home/matsui/ | |__ZendApp/ | |__controllers/ | | | | | |__HelloController.php | | | |__models/ | | | |__views/ | | | |__scripts/ | | | |__hello/ | | | |__index.phtml |__public_html/ | |__index.php |__.htaccess ***public_html/index.php [#fc76c3d7] <?php require_once('Zend/Controller/Front.php'); Zend_Controller_Front::run('../ZendApp/controllers'); ?> ***public_html/.htaccess [#vb3e72d5] php_flag magic_quotes_gpc off RewriteEngine on RewriteBase / RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php ***ZenApp/controllers/HelloController.php [#xa2b725f] <?php require_once 'Zend/Controller/Action.php'; class HelloController extends Zend_Controller_Action { public function indexAction(){ $this->view->assign('hoge', 'Hello, World'); echo $this->render('index'); } } ?> ***ZenApp/scripts/hello/index.phtml [#ob556f99] <html> <head> <title>Hello, World!</title> </head> <body> <h1><?php echo $this->hoge; ?></h1> <pre> ZendFrameworkのテストです。 </pre> </body> </html> ***Webでアクセス [#te83667b] http://[IP や VirtualName]/helo/
タイムスタンプを変更しない
*Zend Framework [#o8f6c544] [[dokuwiki.fl8.jp掲載済>http://dokuwiki.fl8.jp/11_php/02_framework/10_zend_framework]] PHP本家Zendが提供する純正フレームワーク #contents **リファレンス [#c334f52b] [[http://www.zendframework.com/manual/ja/manual.html>http://www.zendframework.com/manual/ja/manual.html]] **インストール [#j77b6b18] ***ダウンロード [#ef7eb830] [[http://framework.zend.com/download>http://framework.zend.com/download]] &color(Blue){※無料の登録が必要です。}; 今回はコレを使用しました。 -ZendFramework-1.10.3.tar.gz 解凍して、/usr/localあたりに置いておく # tar zxv ZendFramework-1.10.3.tar.gz # cp -rf ZendFramework-1.10.3 /usr/local/ZendFramework ***php.iniの編集 [#jfd72d96] include_pathにコピーしたパス「/usr/local/ZendFramework/library」を追加する。 include_path = ".:/php/includes:/usr/local/ZendFramework/library" ***Apacheの再起動 [#wb7e64bd] # /etc/init.d/httpd restart **Hello Worldを出してみる[#o70644b9] 今回は例として「/home/matsui」ディレクトリに設置します。 [[Zend Framework インストール>PHP/フレームワーク/Zend Framework##j77b6b18]]~ 上記の方法でインストール済みとして説明します。 ApacheのDocumentRootは「/home/matsui/public_html」です。 /home/matsui/ | |__ZendApp/ | |__controllers/ | | | | | |__HelloController.php | | | |__models/ | | | |__views/ | | | |__scripts/ | | | |__hello/ | | | |__index.phtml |__public_html/ | |__index.php |__.htaccess ***public_html/index.php [#fc76c3d7] <?php require_once('Zend/Controller/Front.php'); Zend_Controller_Front::run('../ZendApp/controllers'); ?> ***public_html/.htaccess [#vb3e72d5] php_flag magic_quotes_gpc off RewriteEngine on RewriteBase / RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php ***ZenApp/controllers/HelloController.php [#xa2b725f] <?php require_once 'Zend/Controller/Action.php'; class HelloController extends Zend_Controller_Action { public function indexAction(){ $this->view->assign('hoge', 'Hello, World'); echo $this->render('index'); } } ?> ***ZenApp/scripts/hello/index.phtml [#ob556f99] <html> <head> <title>Hello, World!</title> </head> <body> <h1><?php echo $this->hoge; ?></h1> <pre> ZendFrameworkのテストです。 </pre> </body> </html> ***Webでアクセス [#te83667b] http://[IP や VirtualName]/helo/
テキスト整形のルールを表示する
ログインまたはアカウント作成