PHP Zend_View::headTitleの例

プログラミング言語: PHP
クラス/型: Zend_View
メソッド/関数: headTitle
hotexamples.comのコード掲載数: 30
Zend_View.headTitleは、Zend Frameworkのビューコンポーネントの一部であり、HTML文書のタグ内の要素に表示するタイトルを設定するためのクラスです。このクラスを使用することで、動的なタイトルの設定や多言語対応のタイトル表示などが簡単に実現できます。また、セキュリティ対策として、自動的にエスケープ処理が行われるため、XSS攻撃などから安全にタイトルを表示することができます。Zend_View.headTitleは、使いやすく柔軟なクラスであり、Webアプリケーション開発において非常に便利な機能です。</div> <strong>PHP Zend_View::headTitle - 30件のコード例が見つかりました</strong>。すべてオープンソースプロジェクトから抽出されたPHPの<strong>Zend_View::headTitle</strong>の実例で、最も評価が高いものを厳選しています。コード例の評価を行っていただくことで、より質の高いコード例が表示されるようになります。 </div> <div class="hidden-xs"> <div id="ezoic-pub-ad-placeholder-130"> </div> </div> </div> <div id="ezoic-pub-ad-placeholder-105"> <div style="text-align: center; margin-top: 10px"> <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <!-- after-description --> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-3697522372581514" data-ad-slot="5330879504" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> </div> <div class="visible-xs visible-sm visible-md"> <div class="bs-example thin" style="margin-top: 15px"> <div class="bs-example-title">よく使われるメソッド</div> <div class="fields-controls visible-sm visible-xs visible-md"> <a class="btn btn-default fields-show-btn" data-toggle="collapse" href="#fields-panel-mobile" aria-expanded="false" aria-controls="fields-panel">表示</a> <a class="btn btn-default fields-hide-btn" data-toggle="collapse" href="#fields-panel-mobile" aria-expanded="false" aria-controls="fields-panel">非表示</a> </div> </div> <figure class="highlight panel fields-panel collapse" id="fields-panel-mobile"> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/setEncoding/php-zend_view-setencoding-method-examples.html">setEncoding(30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/addHelperPath/php-zend_view-addhelperpath-method-examples.html">addHelperPath(30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/doctype/php-zend_view-doctype-method-examples.html">doctype(30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/setScriptPath/php-zend_view-setscriptpath-method-examples.html">setScriptPath(30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/render/php-zend_view-render-method-examples.html">render(30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/assign/php-zend_view-assign-method-examples.html">assign(30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/addScriptPath/php-zend_view-addscriptpath-method-examples.html">addScriptPath(30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/headTitle/php-zend_view-headtitle-method-examples.html">headTitle(30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/headMeta/php-zend_view-headmeta-method-examples.html">headMeta(30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/headLink/php-zend_view-headlink-method-examples.html">headLink(28)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/headScript/php-zend_view-headscript-method-examples.html">headScript(26)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/setBasePath/php-zend_view-setbasepath-method-examples.html">setBasePath(21)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/baseUrl/php-zend_view-baseurl-method-examples.html">baseUrl(18)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/setHelperPath/php-zend_view-sethelperpath-method-examples.html">setHelperPath(15)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/addBasePath/php-zend_view-addbasepath-method-examples.html">addBasePath(14)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/jQuery/php-zend_view-jquery-method-examples.html">jQuery(13)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/__construct/php-zend_view-__construct-method-examples.html">__construct(12)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/escape/php-zend_view-escape-method-examples.html">escape(12)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/baseurl/php-zend_view-baseurl-method-examples.html">baseurl(11)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/getHelper/php-zend_view-gethelper-method-examples.html">getHelper(10)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/getScriptPaths/php-zend_view-getscriptpaths-method-examples.html">getScriptPaths(8)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/navigation/php-zend_view-navigation-method-examples.html">navigation(8)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/serverUrl/php-zend_view-serverurl-method-examples.html">serverUrl(7)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/partial/php-zend_view-partial-method-examples.html">partial(7)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/url/php-zend_view-url-method-examples.html">url(6)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/translate/php-zend_view-translate-method-examples.html">translate(6)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/registerHelper/php-zend_view-registerhelper-method-examples.html">registerHelper(5)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/formSelect/php-zend_view-formselect-method-examples.html">formSelect(5)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/dojo/php-zend_view-dojo-method-examples.html">dojo(5)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/getHelperPaths/php-zend_view-gethelperpaths-method-examples.html">getHelperPaths(5)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/setEscape/php-zend_view-setescape-method-examples.html">setEscape(4)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/addFilterPath/php-zend_view-addfilterpath-method-examples.html">addFilterPath(4)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/getScriptPath/php-zend_view-getscriptpath-method-examples.html">getScriptPath(4)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/placeholder/php-zend_view-placeholder-method-examples.html">placeholder(4)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/strictVars/php-zend_view-strictvars-method-examples.html">strictVars(4)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/getFilterPaths/php-zend_view-getfilterpaths-method-examples.html">getFilterPaths(4)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/clearVars/php-zend_view-clearvars-method-examples.html">clearVars(4)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/__call/php-zend_view-__call-method-examples.html">__call(4)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/headStyle/php-zend_view-headstyle-method-examples.html">headStyle(3)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/setUseStreamWrapper/php-zend_view-setusestreamwrapper-method-examples.html">setUseStreamWrapper(3)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/getEncoding/php-zend_view-getencoding-method-examples.html">getEncoding(3)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/getAllPaths/php-zend_view-getallpaths-method-examples.html">getAllPaths(3)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/layout/php-zend_view-layout-method-examples.html">layout(3)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/getVars/php-zend_view-getvars-method-examples.html">getVars(3)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/init/php-zend_view-init-method-examples.html">init(3)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/nonexistantHelper/php-zend_view-nonexistanthelper-method-examples.html">nonexistantHelper(2)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/inlineScript/php-zend_view-inlinescript-method-examples.html">inlineScript(2)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/getPluginLoader/php-zend_view-getpluginloader-method-examples.html">getPluginLoader(2)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/__set/php-zend_view-__set-method-examples.html">__set(2)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/stubEmpty/php-zend_view-stubempty-method-examples.html">stubEmpty(2)</a> </div> </figure> </div> </div> <div class="page-content-container"> <div class="sidebar hidden-xs hidden-sm hidden-md" style="width:300px"> <div id="ezoic-pub-ad-placeholder-101"> <div style="text-align: center; margin-top: 10px"> <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <!-- left-sidebar-1 --> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-3697522372581514" data-ad-slot="7161345231" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> </div> <div class="bs-example thin"> <div class="bs-example-title"> よく使われるメソッド </div> </div> <figure class="highlight panel fields-panel " id="fields-panel"> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/setEncoding/php-zend_view-setencoding-method-examples.html">setEncoding (30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/addHelperPath/php-zend_view-addhelperpath-method-examples.html">addHelperPath (30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/doctype/php-zend_view-doctype-method-examples.html">doctype (30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/setScriptPath/php-zend_view-setscriptpath-method-examples.html">setScriptPath (30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/render/php-zend_view-render-method-examples.html">render (30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/assign/php-zend_view-assign-method-examples.html">assign (30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/addScriptPath/php-zend_view-addscriptpath-method-examples.html">addScriptPath (30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/headTitle/php-zend_view-headtitle-method-examples.html">headTitle (30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/headMeta/php-zend_view-headmeta-method-examples.html">headMeta (30)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/headLink/php-zend_view-headlink-method-examples.html">headLink (28)</a> </div> </figure> <div id="ezoic-pub-ad-placeholder-102"> <div style="text-align: center; margin-bottom: 10px"> <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <!-- left-sidebar-2 --> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-3697522372581514" data-ad-slot="7075206013" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> </div> <div class="bs-example thin"> <div class="bs-example-title"> よく使われるメソッド </div> </div> <figure class="highlight panel fields-panel " id="fields-panel"> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/headScript/php-zend_view-headscript-method-examples.html">headScript (26)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/setBasePath/php-zend_view-setbasepath-method-examples.html">setBasePath (21)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/baseUrl/php-zend_view-baseurl-method-examples.html">baseUrl (18)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/setHelperPath/php-zend_view-sethelperpath-method-examples.html">setHelperPath (15)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/addBasePath/php-zend_view-addbasepath-method-examples.html">addBasePath (14)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/jQuery/php-zend_view-jquery-method-examples.html">jQuery (13)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/__construct/php-zend_view-__construct-method-examples.html">__construct (12)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/escape/php-zend_view-escape-method-examples.html">escape (12)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/baseurl/php-zend_view-baseurl-method-examples.html">baseurl (11)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/getHelper/php-zend_view-gethelper-method-examples.html">getHelper (10)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/getScriptPaths/php-zend_view-getscriptpaths-method-examples.html">getScriptPaths (8)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/navigation/php-zend_view-navigation-method-examples.html">navigation (8)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/serverUrl/php-zend_view-serverurl-method-examples.html">serverUrl (7)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/partial/php-zend_view-partial-method-examples.html">partial (7)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/url/php-zend_view-url-method-examples.html">url (6)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/translate/php-zend_view-translate-method-examples.html">translate (6)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/registerHelper/php-zend_view-registerhelper-method-examples.html">registerHelper (5)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/formSelect/php-zend_view-formselect-method-examples.html">formSelect (5)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/dojo/php-zend_view-dojo-method-examples.html">dojo (5)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/getHelperPaths/php-zend_view-gethelperpaths-method-examples.html">getHelperPaths (5)</a> </div> </figure> <div id="ezoic-pub-ad-placeholder-117"> </div> <div class="bs-example thin"> <div class="bs-example-title"> よく使われるメソッド </div> </div> <figure class="highlight panel fields-panel " id="fields-panel"> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/getScriptPaths/php-zend_view-getscriptpaths-method-examples.html">getScriptPaths (8)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/navigation/php-zend_view-navigation-method-examples.html">navigation (8)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/serverUrl/php-zend_view-serverurl-method-examples.html">serverUrl (7)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/partial/php-zend_view-partial-method-examples.html">partial (7)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/url/php-zend_view-url-method-examples.html">url (6)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/translate/php-zend_view-translate-method-examples.html">translate (6)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/registerHelper/php-zend_view-registerhelper-method-examples.html">registerHelper (5)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/formSelect/php-zend_view-formselect-method-examples.html">formSelect (5)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/dojo/php-zend_view-dojo-method-examples.html">dojo (5)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/getHelperPaths/php-zend_view-gethelperpaths-method-examples.html">getHelperPaths (5)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/setEscape/php-zend_view-setescape-method-examples.html">setEscape (4)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/addFilterPath/php-zend_view-addfilterpath-method-examples.html">addFilterPath (4)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/getScriptPath/php-zend_view-getscriptpath-method-examples.html">getScriptPath (4)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/placeholder/php-zend_view-placeholder-method-examples.html">placeholder (4)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/strictVars/php-zend_view-strictvars-method-examples.html">strictVars (4)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/getFilterPaths/php-zend_view-getfilterpaths-method-examples.html">getFilterPaths (4)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/clearVars/php-zend_view-clearvars-method-examples.html">clearVars (4)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/__call/php-zend_view-__call-method-examples.html">__call (4)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/headStyle/php-zend_view-headstyle-method-examples.html">headStyle (3)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/setUseStreamWrapper/php-zend_view-setusestreamwrapper-method-examples.html">setUseStreamWrapper (3)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/getEncoding/php-zend_view-getencoding-method-examples.html">getEncoding (3)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/getAllPaths/php-zend_view-getallpaths-method-examples.html">getAllPaths (3)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/layout/php-zend_view-layout-method-examples.html">layout (3)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/getVars/php-zend_view-getvars-method-examples.html">getVars (3)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/init/php-zend_view-init-method-examples.html">init (3)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/nonexistantHelper/php-zend_view-nonexistanthelper-method-examples.html">nonexistantHelper (2)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/inlineScript/php-zend_view-inlinescript-method-examples.html">inlineScript (2)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/getPluginLoader/php-zend_view-getpluginloader-method-examples.html">getPluginLoader (2)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/__set/php-zend_view-__set-method-examples.html">__set (2)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/stubEmpty/php-zend_view-stubempty-method-examples.html">stubEmpty (2)</a> </div> </figure> <div id="ezoic-pub-ad-placeholder-116"> </div> <div class="hidden-xs hidden-sm"> <div class="bs-example thin"> <div class="bs-example-title">Related in langs</div> </div> <figure class="highlight panel"> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://csharp.hotexamples.com/jp/examples/DataAccess/Pais/-/php-pais-class-examples.html">Pais (C#)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://csharp.hotexamples.com/jp/examples/ImplantBuilder/Implant/-/php-implant-class-examples.html">Implant (C#)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://cpp.hotexamples.com/jp/examples/-/-/ticksGetTicks/cpp-ticksgetticks-function-examples.html">ticksGetTicks (C++)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://cpp.hotexamples.com/jp/examples/-/-/KSPSetFromOptions/cpp-kspsetfromoptions-function-examples.html">KSPSetFromOptions (C++)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://golang.hotexamples.com/jp/examples/github.com.rancherio.go-rancher.client/LaunchConfig/-/golang-launchconfig-class-examples.html">LaunchConfig (Go)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://golang.hotexamples.com/jp/examples/c/-/al_unlock_bitmap/golang-al_unlock_bitmap-function-examples.html">al_unlock_bitmap (Go)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://java.hotexamples.com/jp/examples/org.eclipse.equinox.p2.metadata/VersionRange/-/java-versionrange-class-examples.html">VersionRange (Java)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://python.hotexamples.com/jp/examples/HTTPServer/HTTPServer/-/python-httpserver-class-examples.html">HTTPServer (Python)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://python.hotexamples.com/jp/examples/flask_reveal.tools.cli/CLI/-/python-cli-class-examples.html">CLI (Python)</a> </div> </figure> </div> <div class="bs-example thin"> <div class="bs-example-title"> よく使われるメソッド </div> </div> <figure class="highlight panel fields-panel fields-panel-last" id="fields-panel"> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/setEscape/php-zend_view-setescape-method-examples.html">setEscape (4)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/addFilterPath/php-zend_view-addfilterpath-method-examples.html">addFilterPath (4)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/getScriptPath/php-zend_view-getscriptpath-method-examples.html">getScriptPath (4)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/placeholder/php-zend_view-placeholder-method-examples.html">placeholder (4)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/strictVars/php-zend_view-strictvars-method-examples.html">strictVars (4)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/getFilterPaths/php-zend_view-getfilterpaths-method-examples.html">getFilterPaths (4)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/clearVars/php-zend_view-clearvars-method-examples.html">clearVars (4)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/__call/php-zend_view-__call-method-examples.html">__call (4)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/headStyle/php-zend_view-headstyle-method-examples.html">headStyle (3)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/setUseStreamWrapper/php-zend_view-setusestreamwrapper-method-examples.html">setUseStreamWrapper (3)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/getEncoding/php-zend_view-getencoding-method-examples.html">getEncoding (3)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/getAllPaths/php-zend_view-getallpaths-method-examples.html">getAllPaths (3)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/layout/php-zend_view-layout-method-examples.html">layout (3)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/getVars/php-zend_view-getvars-method-examples.html">getVars (3)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/init/php-zend_view-init-method-examples.html">init (3)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/nonexistantHelper/php-zend_view-nonexistanthelper-method-examples.html">nonexistantHelper (2)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/inlineScript/php-zend_view-inlinescript-method-examples.html">inlineScript (2)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/getPluginLoader/php-zend_view-getpluginloader-method-examples.html">getPluginLoader (2)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/__set/php-zend_view-__set-method-examples.html">__set (2)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/stubEmpty/php-zend_view-stubempty-method-examples.html">stubEmpty (2)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/stub2/php-zend_view-stub2-method-examples.html">stub2 (2)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/stub1/php-zend_view-stub1-method-examples.html">stub1 (2)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/partialLoop/php-zend_view-partialloop-method-examples.html">partialLoop (1)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/setLfiProtection/php-zend_view-setlfiprotection-method-examples.html">setLfiProtection (1)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/setFilter/php-zend_view-setfilter-method-examples.html">setFilter (1)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/Doctype/php-zend_view-doctype-method-examples.html">Doctype (1)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/messagesFormatter/php-zend_view-messagesformatter-method-examples.html">messagesFormatter (1)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/formRadio/php-zend_view-formradio-method-examples.html">formRadio (1)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/JQuery/php-zend_view-jquery-method-examples.html">JQuery (1)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/_script/php-zend_view-_script-method-examples.html">_script (1)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/action/php-zend_view-action-method-examples.html">action (1)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/addFilter/php-zend_view-addfilter-method-examples.html">addFilter (1)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/baseThemeUrl/php-zend_view-basethemeurl-method-examples.html">baseThemeUrl (1)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/declareVars/php-zend_view-declarevars-method-examples.html">declareVars (1)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/docType/php-zend_view-doctype-method-examples.html">docType (1)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/formHidden/php-zend_view-formhidden-method-examples.html">formHidden (1)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/formMultiCheckbox/php-zend_view-formmulticheckbox-method-examples.html">formMultiCheckbox (1)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/formText/php-zend_view-formtext-method-examples.html">formText (1)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/jQueryReady/php-zend_view-jqueryready-method-examples.html">jQueryReady (1)</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Zend_View/formTextarea/php-zend_view-formtextarea-method-examples.html">formTextarea (1)</a> </div> </figure> <div class="hidden-xs hidden-sm"> <div class="bs-example thin"> <div class="bs-example-title">関連情報</div> </div> <figure class="highlight panel"> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/-/fn_get_product_data/php-fn_get_product_data-function-examples.html">fn_get_product_data</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/XFlickr/-/php-xflickr-class-examples.html">XFlickr</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/-/qtranxf_join_byline/php-qtranxf_join_byline-function-examples.html">qtranxf_join_byline</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/lembarek.core.role/Role/-/php-role-class-examples.html">Role</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/silverstripe.i18n/i18n/-/php-i18n-class-examples.html">i18n</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/-/saveMailLog/php-savemaillog-function-examples.html">saveMailLog</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/-/cron_installed/php-cron_installed-function-examples.html">cron_installed</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/Woops_Array_Utils/-/php-woops_array_utils-class-examples.html">Woops_Array_Utils</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/-/find_value/php-find_value-function-examples.html">find_value</a> </div> <div style="overflow: hidden;text-overflow: ellipsis;"> <a href="https://hotexamples.com/jp/examples/-/-/gdcontr/php-gdcontr-function-examples.html">gdcontr</a> </div> </figure> </div> </div> <div class="main-content"> <div class="addthis_inline_share_toolbox_o6yp"></div> <div id="ezoic-pub-ad-placeholder-106"> </div> <div class="example-item" id="0x15527aba1de1cd301362884fb50a6348236cc0757c5ae862163840310d4dcd35-12,,18,"> <div class="bs-example"> <div> <div class="bs-example-title">コード例 #1</div> <div style="position: absolute;right: 15px;top: 10px;" id="rating_1" data-hash="0x15527aba1de1cd301362884fb50a6348236cc0757c5ae862163840310d4dcd35" data-area="12,,18,"> <div class="rating-amount">0</div> <a title="この例に高評価をつける" href="javascript:app.addRating(1, '1')" class="rating-up btn btn-success" data-id="rating_1"><i class="icon-button icon-thumbs-up"></i></a> <a title="この例に低評価をつける" href="javascript:app.addRating(-1,'1')" class="rating-down btn btn-danger" data-id="rating_1"><i class="icon-button icon-thumbs-down"></i></a> </div> </div> <div style="display:flex;align-items: center;flex-wrap: wrap"> <div style="display: inline-block;margin-right: 10px"> <a class="btn btn-default" title="この例への直リンク" href="https://hotexamples.com/jp/examples/-/Zend_View/headTitle/php-zend_view-headtitle-method-examples.html#0x15527aba1de1cd301362884fb50a6348236cc0757c5ae862163840310d4dcd35-12,,18,"><i class="icon-button icon-link"></i></a> <a rel="nofollow" class="btn btn-default" href="javascript:app.open('https://hotexamples.com/jp/site/file?hash=0x15527aba1de1cd301362884fb50a6348236cc0757c5ae862163840310d4dcd35&fullName=alisson%2FBootstrap.php&project=alissonpirola%2Fsite-drandre')">ファイルを表示</a> </div> <div class="example-project-info"> <nobr> <span>ファイル:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Falissonpirola%2Fsite-drandre%2Fblob%2Fmaster%2Falisson%2FBootstrap.php">Bootstrap.php</a> </nobr> <nobr> <span>プロジェクト:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Falissonpirola%2Fsite-drandre">alissonpirola/site-drandre</a> </nobr> </div> </div> </div> <figure class="highlight"> <div class="example" data-id="1"> <pre class="line-numbers language-php" data-end="18" data-start="13" data-highlight="17,18"> public function _initView() { $title = "Clínica de Dermatologia - Dr. Andre Marinho"; $view = new Zend_View(); $view->headTitle($title); $view->headTitle()->setSeparator(" :: "); }</pre> </div> </figure> </div> <div id="ezoic-pub-ad-placeholder-107"> <div style="text-align: center;margin-bottom: 10px"> <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <!-- after-example-1 --> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-3697522372581514" data-ad-slot="4981531786" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> </div> <div class="example-item" id="0xd964f3a9af040f7c1d2730facac300b4aefce3de02308f0b226c05bc3e901904-4,,33,"> <div class="bs-example"> <div> <div class="bs-example-title">コード例 #2</div> <div style="position: absolute;right: 15px;top: 10px;" id="rating_2" data-hash="0xd964f3a9af040f7c1d2730facac300b4aefce3de02308f0b226c05bc3e901904" data-area="4,,33,"> <div class="rating-amount">0</div> <a title="この例に高評価をつける" href="javascript:app.addRating(1, '2')" class="rating-up btn btn-success" data-id="rating_2"><i class="icon-button icon-thumbs-up"></i></a> <a title="この例に低評価をつける" href="javascript:app.addRating(-1,'2')" class="rating-down btn btn-danger" data-id="rating_2"><i class="icon-button icon-thumbs-down"></i></a> </div> </div> <div style="display:flex;align-items: center;flex-wrap: wrap"> <div style="display: inline-block;margin-right: 10px"> <a class="btn btn-default" title="この例への直リンク" href="https://hotexamples.com/jp/examples/-/Zend_View/headTitle/php-zend_view-headtitle-method-examples.html#0xd964f3a9af040f7c1d2730facac300b4aefce3de02308f0b226c05bc3e901904-4,,33,"><i class="icon-button icon-link"></i></a> <a rel="nofollow" class="btn btn-default" href="javascript:app.open('https://hotexamples.com/jp/site/file?hash=0xd964f3a9af040f7c1d2730facac300b4aefce3de02308f0b226c05bc3e901904&fullName=library%2FApp%2FController%2FAction%2FLayoutLoader.php&project=harleyflh75%2FZF_Framework')">ファイルを表示</a> </div> <div class="example-project-info"> <nobr> <span>ファイル:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fharleyflh75%2FZF_Framework%2Fblob%2Fmaster%2Flibrary%2FApp%2FController%2FAction%2FLayoutLoader.php">LayoutLoader.php</a> </nobr> <nobr> <span>プロジェクト:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fharleyflh75%2FZF_Framework">harleyflh75/ZF_Framework</a> </nobr> </div> </div> </div> <figure class="highlight"> <div class="example" data-id="2"> <pre class="line-numbers language-php" data-end="33" data-start="5" data-highlight="29,30"> public function preDispatch() { $bootstrap = $this->getActionController()->getInvokeArg('bootstrap'); $config = $bootstrap->getOptions(); $module = $this->getRequest()->getModuleName(); if (isset($config[$module]['resources']['layout']['layout'])) { $layoutScript = $config[$module]['resources']['layout']['layout']; $this->getActionController()->getHelper('layout')->setLayout($layoutScript); } if (isset($config[$module]['site'])) { $headtitle = $config[$module]['site']['headtitle']; $keywords = $config[$module]['site']['keywords']; $description = $config[$module]['site']['description']; $layout = $module . '.css'; $favicon = $module . '/favicon.ico'; } else { $headtitle = $config['site']['headtitle']; $keywords = $config['site']['keywords']; $description = $config['site']['description']; $layout = 'default.css'; $favicon = 'favicon.ico'; } $view = new Zend_View(); $view->doctype('XHTML1_STRICT'); $view->headTitle($headtitle); $view->headTitle()->setSeparator(' | '); $view->headLink()->prependStylesheet('/css/' . $layout)->headLink(array('rel' => 'favicon', 'href' => '/images/' . $favicon), 'PREPEND')->prependStylesheet('/css/reset.css')->appendStylesheet('/css/menu.css'); $view->env = APPLICATION_ENV; $view->headMeta()->appendName('keyword', $keywords)->appendName('description', $description)->appendHttpEquiv('Content-Type', 'text/html; charset=UTF-8')->appendHttpEquiv('Content-Language', 'en-US'); }</pre> </div> </figure> </div> <div id="ezoic-pub-ad-placeholder-108"> <div style="text-align: center;"> <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <!-- after-example-2 --> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-3697522372581514" data-ad-slot="7155150962" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> </div> <div class="example-item" id="0x6057884f18d257c526ee1a20d76840e1de7badec940c07499dac2482689da6d4-66,,79,"> <div class="bs-example"> <div> <div class="bs-example-title">コード例 #3</div> <div style="position: absolute;right: 15px;top: 10px;" id="rating_3" data-hash="0x6057884f18d257c526ee1a20d76840e1de7badec940c07499dac2482689da6d4" data-area="66,,79,"> <div class="rating-amount">0</div> <a title="この例に高評価をつける" href="javascript:app.addRating(1, '3')" class="rating-up btn btn-success" data-id="rating_3"><i class="icon-button icon-thumbs-up"></i></a> <a title="この例に低評価をつける" href="javascript:app.addRating(-1,'3')" class="rating-down btn btn-danger" data-id="rating_3"><i class="icon-button icon-thumbs-down"></i></a> </div> </div> <div style="display:flex;align-items: center;flex-wrap: wrap"> <div style="display: inline-block;margin-right: 10px"> <a class="btn btn-default" title="この例への直リンク" href="https://hotexamples.com/jp/examples/-/Zend_View/headTitle/php-zend_view-headtitle-method-examples.html#0x6057884f18d257c526ee1a20d76840e1de7badec940c07499dac2482689da6d4-66,,79,"><i class="icon-button icon-link"></i></a> <a rel="nofollow" class="btn btn-default" href="javascript:app.open('https://hotexamples.com/jp/site/file?hash=0x6057884f18d257c526ee1a20d76840e1de7badec940c07499dac2482689da6d4&fullName=tests%2FRobo47%2FController%2FTitleTest.php&project=robo47%2Frobo47-components')">ファイルを表示</a> </div> <div class="example-project-info"> <nobr> <span>ファイル:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Frobo47%2Frobo47-components%2Fblob%2Fmaster%2Ftests%2FRobo47%2FController%2FTitleTest.php">TitleTest.php</a> </nobr> <nobr> <span>プロジェクト:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Frobo47%2Frobo47-components">robo47/robo47-components</a> </nobr> </div> </div> </div> <figure class="highlight"> <div class="example" data-id="3"> <pre class="line-numbers language-php" data-end="79" data-start="67" data-highlight="77,79"> /** * @covers Robo47_Controller_Plugin_Title::postDispatch */ public function testPostDispatch() { $request = new Zend_Controller_Request_Http('http://www.domain.tld'); $view = new Zend_View(); $append = 'foo'; $prepend = 'baa'; $plugin = new Robo47_Controller_Plugin_Title($view, $append, $prepend); $view->headTitle('blub'); $plugin->postDispatch($request); $this->assertEquals('<title>baablubfoo</title>', (string) $view->headTitle()); }</pre> </div> </figure> </div> <div id="ezoic-pub-ad-placeholder-109"> <div style="text-align: center;"> <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <!-- after-example-3 --> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-3697522372581514" data-ad-slot="8699811701" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> </div> <div class="example-item" id="0xbc296ed7d5aaeca64eb5e244c1b28f361bcb4314242d37202a35d5f64a2c4c9e-62,,120,"> <div class="bs-example"> <div> <div class="bs-example-title">コード例 #4</div> <div style="position: absolute;right: 15px;top: 10px;" id="rating_4" data-hash="0xbc296ed7d5aaeca64eb5e244c1b28f361bcb4314242d37202a35d5f64a2c4c9e" data-area="62,,120,"> <div class="rating-amount">0</div> <a title="この例に高評価をつける" href="javascript:app.addRating(1, '4')" class="rating-up btn btn-success" data-id="rating_4"><i class="icon-button icon-thumbs-up"></i></a> <a title="この例に低評価をつける" href="javascript:app.addRating(-1,'4')" class="rating-down btn btn-danger" data-id="rating_4"><i class="icon-button icon-thumbs-down"></i></a> </div> </div> <div style="display:flex;align-items: center;flex-wrap: wrap"> <div style="display: inline-block;margin-right: 10px"> <a class="btn btn-default" title="この例への直リンク" href="https://hotexamples.com/jp/examples/-/Zend_View/headTitle/php-zend_view-headtitle-method-examples.html#0xbc296ed7d5aaeca64eb5e244c1b28f361bcb4314242d37202a35d5f64a2c4c9e-62,,120,"><i class="icon-button icon-link"></i></a> <a rel="nofollow" class="btn btn-default" href="javascript:app.open('https://hotexamples.com/jp/site/file?hash=0xbc296ed7d5aaeca64eb5e244c1b28f361bcb4314242d37202a35d5f64a2c4c9e&fullName=library%2FPas%2FController%2FAction%2FCoinFormLoader.php&project=lesleyauk%2Ffindsorguk')">ファイルを表示</a> </div> <div class="example-project-info"> <nobr> <span>ファイル:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Flesleyauk%2Ffindsorguk%2Fblob%2Fmaster%2Flibrary%2FPas%2FController%2FAction%2FCoinFormLoader.php">CoinFormLoader.php</a> </nobr> <nobr> <span>プロジェクト:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Flesleyauk%2Ffindsorguk">lesleyauk/findsorguk</a> </nobr> </div> </div> </div> <figure class="highlight"> <div class="example" data-id="4"> <pre class="line-numbers language-php" data-end="120" data-start="63" data-highlight="26,76,83,90,97,104"> /** Load the form options based on the broadperiod provided * @access public * @param string $broadperiod * @return \GreekAndRomanCoinForm * @throws Exception */ public function loadForm($broadperiod) { switch ($broadperiod) { case 'ROMAN': $form = new RomanCoinForm(); $form->details->setLegend('Add Roman numismatic data'); $form->submit->setLabel('Add Roman data'); $this->_view->headTitle('Add a Roman coin\'s details'); $this->_view->jQuery()->addJavascriptFile($this->_view->baseUrl() . '/js/JQuery/coinslinkedinit.js', $type = 'text/javascript'); break; case 'IRON AGE': $form = new IronAgeCoinForm(); $form->details->setLegend('Add Iron Age numismatic data'); $form->submit->setLabel('Add Iron Age data'); $this->_view->headTitle('Add an Iron Age coin\'s details'); $this->_view->jQuery()->addJavascriptFile($this->_view->baseUrl() . '/js/JQuery/iacoinslinkedinit.js', $type = 'text/javascript'); break; case 'EARLY MEDIEVAL': $form = new EarlyMedievalCoinForm(); $form->details->setLegend('Add Early Medieval numismatic data'); $form->submit->setLabel('Add Early Medieval data'); $this->_view->headTitle('Add an Early Medieval coin\'s details'); $this->_view->jQuery()->addJavascriptFile($this->_view->baseUrl() . '/js/JQuery/coinslinkedinitearlymededit.js', $type = 'text/javascript'); break; case 'MEDIEVAL': $form = new MedievalCoinForm(); $form->details->setLegend('Add Medieval numismatic data'); $form->submit->setLabel('Add Medieval data'); $this->_view->headTitle('Add a Medieval coin\'s details'); $this->_view->jQuery()->addJavascriptFile($this->_view->baseUrl() . '/js/JQuery/coinslinkedinitmededit.js', $type = 'text/javascript'); break; case 'POST MEDIEVAL': $form = new PostMedievalCoinForm(); $form->details->setLegend('Add Post Medieval numismatic data'); $form->submit->setLabel('Add Post Medieval data'); $this->_view->headTitle('Add a Post Medieval coin\'s details'); $this->_view->jQuery()->addJavascriptFile($this->_view->baseUrl() . '/js/JQuery/coinslinkedinitpostmededit.js', $type = 'text/javascript'); break; case 'BYZANTINE': $form = new ByzantineCoinForm(); $form->details->setLegend('Add Byzantine numismatic data'); $form->submit->setLabel('Add Byzantine data'); break; case 'GREEK AND ROMAN PROVINCIAL': $form = new GreekAndRomanCoinForm(); $form->details->setLegend('Add Greek & Roman numismatic data'); $form->submit->setLabel('Add Greek & Roman data'); break; default: throw new Exception('You cannot have a coin for that period.'); } return $form; }</pre> </div> </figure> </div> <div id="ezoic-pub-ad-placeholder-110"> </div> <div class="example-item" id="0x85c95bac86430cb0267c4415123ffc1d9ab67cb5dbdb4493320652e647c9c14e-36,,61,"> <div class="bs-example"> <div> <div class="bs-example-title">コード例 #5</div> <div style="position: absolute;right: 15px;top: 10px;" id="rating_5" data-hash="0x85c95bac86430cb0267c4415123ffc1d9ab67cb5dbdb4493320652e647c9c14e" data-area="36,,61,"> <div class="rating-amount">0</div> <a title="この例に高評価をつける" href="javascript:app.addRating(1, '5')" class="rating-up btn btn-success" data-id="rating_5"><i class="icon-button icon-thumbs-up"></i></a> <a title="この例に低評価をつける" href="javascript:app.addRating(-1,'5')" class="rating-down btn btn-danger" data-id="rating_5"><i class="icon-button icon-thumbs-down"></i></a> </div> </div> <div style="display:flex;align-items: center;flex-wrap: wrap"> <div style="display: inline-block;margin-right: 10px"> <a class="btn btn-default" title="この例への直リンク" href="https://hotexamples.com/jp/examples/-/Zend_View/headTitle/php-zend_view-headtitle-method-examples.html#0x85c95bac86430cb0267c4415123ffc1d9ab67cb5dbdb4493320652e647c9c14e-36,,61,"><i class="icon-button icon-link"></i></a> <a rel="nofollow" class="btn btn-default" href="javascript:app.open('https://hotexamples.com/jp/site/file?hash=0x85c95bac86430cb0267c4415123ffc1d9ab67cb5dbdb4493320652e647c9c14e&fullName=Bootstrap.php&project=shevron%2Fzend-simplecal')">ファイルを表示</a> </div> <div class="example-project-info"> <nobr> <span>ファイル:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fshevron%2Fzend-simplecal%2Fblob%2Fmaster%2FBootstrap.php">Bootstrap.php</a> </nobr> <nobr> <span>プロジェクト:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fshevron%2Fzend-simplecal">shevron/zend-simplecal</a> </nobr> </div> </div> </div> <figure class="highlight"> <div class="example" data-id="5"> <pre class="line-numbers language-php" data-end="61" data-start="37" data-highlight="44"> protected function _initView() { $this->bootstrap(array('request')); // Initialize view $view = new Zend_View(); $view->setEncoding('UTF-8'); $view->doctype('XHTML1_STRICT'); $view->headTitle()->setSeparator(' » '); // Save the base URL $view->baseUrl = $this->getResource('request')->getBaseUrl(); // Add it to the ViewRenderer $viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('ViewRenderer'); $viewRenderer->setView($view); // Add some stylesheet $view->headLink()->appendStylesheet($view->baseUrl . '/css/default.css'); // Set user info /* $session = $this->getResource('session'); $view->userLoggedIn = $session->logged_in; $view->userInfo = $session->user; */ $view->addHelperPath(APPLICATION_PATH . '/views/helpers', 'SimpleCal_View_Helper_'); Zend_Dojo::enableView($view); // Return it, so that it can be stored by the bootstrap return $view; }</pre> </div> </figure> </div> <div id="ezoic-pub-ad-placeholder-111"> </div> <div class="example-item" id="0x4c4a0a22baacdf9da8c27d29dc975b8b8fc6da9376a49713c96404b61b64d214-13,,46,"> <div class="bs-example"> <div> <div class="bs-example-title">コード例 #6</div> <div style="position: absolute;right: 15px;top: 10px;" id="rating_6" data-hash="0x4c4a0a22baacdf9da8c27d29dc975b8b8fc6da9376a49713c96404b61b64d214" data-area="13,,46,"> <div class="rating-amount">0</div> <a title="この例に高評価をつける" href="javascript:app.addRating(1, '6')" class="rating-up btn btn-success" data-id="rating_6"><i class="icon-button icon-thumbs-up"></i></a> <a title="この例に低評価をつける" href="javascript:app.addRating(-1,'6')" class="rating-down btn btn-danger" data-id="rating_6"><i class="icon-button icon-thumbs-down"></i></a> </div> </div> <div style="display:flex;align-items: center;flex-wrap: wrap"> <div style="display: inline-block;margin-right: 10px"> <a class="btn btn-default" title="この例への直リンク" href="https://hotexamples.com/jp/examples/-/Zend_View/headTitle/php-zend_view-headtitle-method-examples.html#0x4c4a0a22baacdf9da8c27d29dc975b8b8fc6da9376a49713c96404b61b64d214-13,,46,"><i class="icon-button icon-link"></i></a> <a rel="nofollow" class="btn btn-default" href="javascript:app.open('https://hotexamples.com/jp/site/file?hash=0x4c4a0a22baacdf9da8c27d29dc975b8b8fc6da9376a49713c96404b61b64d214&fullName=public%2Fissues%2Fsecure%2Fattachment%2FBootstrap.php&project=Tony133%2Fzf-web')">ファイルを表示</a> </div> <div class="example-project-info"> <nobr> <span>ファイル:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2FTony133%2Fzf-web%2Fblob%2Fmaster%2Fpublic%2Fissues%2Fsecure%2Fattachment%2FBootstrap.php">Bootstrap.php</a> </nobr> <nobr> <span>プロジェクト:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2FTony133%2Fzf-web">Tony133/zf-web</a> </nobr> </div> </div> </div> <figure class="highlight"> <div class="example" data-id="6"> <pre class="line-numbers language-php" data-end="46" data-start="14" data-highlight="31"> protected function _initView() { $options = $this->getOption('resources'); if (isset($options['view'])) { $view = new Zend_View($options['view']); } else { $view = new Zend_View(); } if (isset($options['view']['doctype'])) { $view->doctype($options['view']['doctype']); } if (isset($options['view']['contentType'])) { $view->headMeta()->appendHttpEquiv('Content-Type', $options['view']['contentType']); } /** * Default Title */ $view->headTitle('IPMCore')->setSeparator(' - '); $rev = $options['view']['version']; /** * JavaScript. Also see Layout.phtml in app/layouts */ $view->headScript()->appendFile('/js/jslibs.js', 'text/javascript')->appendFile('/js/ipmc/ipmcore.scripts_' . $rev . '.js', 'text/javascript'); /** * CSS. Also see Layout.phtml in app/layouts */ $view->headLink()->appendStylesheet('/css/print_' . $rev . '.css', 'print')->appendStylesheet('/css/screen_' . $rev . '.css', 'screen, projection')->appendStylesheet('/css/ie_' . $rev . '.css', 'screen, projection', 'IE')->appendStylesheet('/css/ipmcore_' . $rev . '.css'); if (APPLICATION_ENV != 'production') { Zend_Registry::set('version', $options['view']['version']); } $viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('ViewRenderer'); $viewRenderer->setView($view); return $view; }</pre> </div> </figure> </div> <div class="example-item" id="0x4599e42eb41f043114ef5749d4c1cfb8ce7af8e71958331264cbec46d8c24ba6-22,,52,"> <div class="bs-example"> <div> <div class="bs-example-title">コード例 #7</div> <div style="position: absolute;right: 15px;top: 10px;" id="rating_7" data-hash="0x4599e42eb41f043114ef5749d4c1cfb8ce7af8e71958331264cbec46d8c24ba6" data-area="22,,52,"> <div class="rating-amount">0</div> <a title="この例に高評価をつける" href="javascript:app.addRating(1, '7')" class="rating-up btn btn-success" data-id="rating_7"><i class="icon-button icon-thumbs-up"></i></a> <a title="この例に低評価をつける" href="javascript:app.addRating(-1,'7')" class="rating-down btn btn-danger" data-id="rating_7"><i class="icon-button icon-thumbs-down"></i></a> </div> </div> <div style="display:flex;align-items: center;flex-wrap: wrap"> <div style="display: inline-block;margin-right: 10px"> <a class="btn btn-default" title="この例への直リンク" href="https://hotexamples.com/jp/examples/-/Zend_View/headTitle/php-zend_view-headtitle-method-examples.html#0x4599e42eb41f043114ef5749d4c1cfb8ce7af8e71958331264cbec46d8c24ba6-22,,52,"><i class="icon-button icon-link"></i></a> <a rel="nofollow" class="btn btn-default" href="javascript:app.open('https://hotexamples.com/jp/site/file?hash=0x4599e42eb41f043114ef5749d4c1cfb8ce7af8e71958331264cbec46d8c24ba6&fullName=Bootstrap.php&project=necrogami%2FphpRackMonkey')">ファイルを表示</a> </div> <div class="example-project-info"> <nobr> <span>ファイル:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fnecrogami%2FphpRackMonkey%2Fblob%2Fmaster%2FBootstrap.php">Bootstrap.php</a> </nobr> <nobr> <span>プロジェクト:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fnecrogami%2FphpRackMonkey">necrogami/phpRackMonkey</a> </nobr> </div> </div> </div> <figure class="highlight"> <div class="example" data-id="7"> <pre class="line-numbers language-php" data-end="52" data-start="23" data-highlight="43"> /** * Init view */ protected function _initView() { $theme = 'default-ui'; if (isset($_COOKIE["theme"])) { $theme = $_COOKIE["theme"]; } elseif (isset($this->config->app->theme)) { $theme = $this->config->app->theme; } define('THEME', $theme); // Initialize view $_options = $this->getOptions(); $view = new Zend_View(); $view->doctype('HTML5'); $view->headMeta() ->appendHttpEquiv('Content-Type', 'text/html; charset=UTF-8') ->appendHttpEquiv('X-UA-Compatible', 'IE=Edge'); $view->headTitle($_options['app']['name'])->setSeparator(' - '); // Add it to the ViewRenderer $viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper( 'ViewRenderer' ); $viewRenderer->setView($view); // Return it, so that it can be stored by the bootstrap return $view; }</pre> </div> </figure> </div> <div class="example-item" id="0x9352e33874c68a1a39361d309147823ed51eb9471fc168c932fbe19f5e1b25eb-61,,95,"> <div class="bs-example"> <div> <div class="bs-example-title">コード例 #8</div> <div style="position: absolute;right: 15px;top: 10px;" id="rating_8" data-hash="0x9352e33874c68a1a39361d309147823ed51eb9471fc168c932fbe19f5e1b25eb" data-area="61,,95,"> <div class="rating-amount">0</div> <a title="この例に高評価をつける" href="javascript:app.addRating(1, '8')" class="rating-up btn btn-success" data-id="rating_8"><i class="icon-button icon-thumbs-up"></i></a> <a title="この例に低評価をつける" href="javascript:app.addRating(-1,'8')" class="rating-down btn btn-danger" data-id="rating_8"><i class="icon-button icon-thumbs-down"></i></a> </div> </div> <div style="display:flex;align-items: center;flex-wrap: wrap"> <div style="display: inline-block;margin-right: 10px"> <a class="btn btn-default" title="この例への直リンク" href="https://hotexamples.com/jp/examples/-/Zend_View/headTitle/php-zend_view-headtitle-method-examples.html#0x9352e33874c68a1a39361d309147823ed51eb9471fc168c932fbe19f5e1b25eb-61,,95,"><i class="icon-button icon-link"></i></a> <a rel="nofollow" class="btn btn-default" href="javascript:app.open('https://hotexamples.com/jp/site/file?hash=0x9352e33874c68a1a39361d309147823ed51eb9471fc168c932fbe19f5e1b25eb&fullName=library%2FSmallunch%2FBootstrap.php&project=jeremymoorecom%2FSmallunch')">ファイルを表示</a> </div> <div class="example-project-info"> <nobr> <span>ファイル:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fjeremymoorecom%2FSmallunch%2Fblob%2Fmaster%2Flibrary%2FSmallunch%2FBootstrap.php">Bootstrap.php</a> </nobr> <nobr> <span>プロジェクト:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fjeremymoorecom%2FSmallunch">jeremymoorecom/Smallunch</a> </nobr> </div> </div> </div> <figure class="highlight"> <div class="example" data-id="8"> <pre class="line-numbers language-php" data-end="95" data-start="62" data-highlight="77"> public function _initView() { // Initialize view $view = new Zend_View(); // Setup Helper Paths $view->setHelperPath(SM_LIB . DIRECTORY_SEPARATOR . 'View' . DIRECTORY_SEPARATOR . 'Helper', 'Smallunch_lib_View_Helper'); // Add Global Helper path (typically application/helpers $view->addHelperPath(GLOBAL_HELPER_DIR . DIRECTORY_SEPARATOR . 'View'); // add per application helper path (typically application/(backend, frontend)/helpers $view->addHelperPath(APPLICATION_DIRECTORY . DIRECTORY_SEPARATOR . 'Helper' . DIRECTORY_SEPARATOR . 'View'); // Setup layout if (isset($this->config->layout->doctype)) { $view->doctype($this->config->layout->doctype); } if (isset($this->config->default->title)) { $view->headTitle($this->config->default->title); } if (isset($this->config->default->meta_keywords)) { $view->headMeta($this->config->default->meta_keywords, 'keywords'); } if (isset($this->config->default->meta_description)) { $view->headMeta($this->config->default->meta_description, 'description'); } if (isset($this->config->layout->charset)) { $view->headMeta()->appendHttpEquiv('Content-Type', 'text/html; charset=' . $this->config->layout->charset); } if (isset($this->config->layout->content_language)) { $view->headMeta()->appendHttpEquiv('Content-Language', $this->config->layout->content_language); } // Add it to the ViewRenderer $viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('ViewRenderer'); $viewRenderer->setView($view); // Return it, so that it can be stored by the bootstrap return $view; }</pre> </div> </figure> </div> <div class="example-item" id="0x93df09057fc56c6e840d25ced18442a498969497ddd6b02e6259177e53b6d240-9,,39,"> <div class="bs-example"> <div> <div class="bs-example-title">コード例 #9</div> <div style="position: absolute;right: 15px;top: 10px;" id="rating_9" data-hash="0x93df09057fc56c6e840d25ced18442a498969497ddd6b02e6259177e53b6d240" data-area="9,,39,"> <div class="rating-amount">0</div> <a title="この例に高評価をつける" href="javascript:app.addRating(1, '9')" class="rating-up btn btn-success" data-id="rating_9"><i class="icon-button icon-thumbs-up"></i></a> <a title="この例に低評価をつける" href="javascript:app.addRating(-1,'9')" class="rating-down btn btn-danger" data-id="rating_9"><i class="icon-button icon-thumbs-down"></i></a> </div> </div> <div style="display:flex;align-items: center;flex-wrap: wrap"> <div style="display: inline-block;margin-right: 10px"> <a class="btn btn-default" title="この例への直リンク" href="https://hotexamples.com/jp/examples/-/Zend_View/headTitle/php-zend_view-headtitle-method-examples.html#0x93df09057fc56c6e840d25ced18442a498969497ddd6b02e6259177e53b6d240-9,,39,"><i class="icon-button icon-link"></i></a> <a rel="nofollow" class="btn btn-default" href="javascript:app.open('https://hotexamples.com/jp/site/file?hash=0x93df09057fc56c6e840d25ced18442a498969497ddd6b02e6259177e53b6d240&fullName=library%2FWebbers%2FApplication%2FView.php&project=jager%2Fcms')">ファイルを表示</a> </div> <div class="example-project-info"> <nobr> <span>ファイル:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fjager%2Fcms%2Fblob%2Fmaster%2Flibrary%2FWebbers%2FApplication%2FView.php">View.php</a> </nobr> <nobr> <span>プロジェクト:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fjager%2Fcms">jager/cms</a> </nobr> </div> </div> </div> <figure class="highlight"> <div class="example" data-id="9"> <pre class="line-numbers language-php" data-end="39" data-start="10" data-highlight="31"> public function getView() { if (null === $this->_view) { $options = $this->getOptions(); $title = ''; $doctype = ''; $contentType = 'text/html; charset=iso-8859-1'; if (array_key_exists('title', $options)) { $title = $options['title']; unset($options['title']); } if (isset($options['doctype'])) { $doctype = $options['doctype']; unset($options['doctype']); } if (isset($options['content-type'])) { $contentType = $options['content-type']; unset($options['content-type']); } $view = new Zend_View($options); $view->doctype($doctype); $view->headTitle($title); $view->headMeta()->setHttpEquiv('content-type', $contentType); $view->setHelperPath(LIBRARY_PATH . DS . 'Webbers/View/Helper', 'Webbers_View_Helper'); $viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('ViewRenderer'); $viewRenderer->setViewSuffix('inc'); $viewRenderer->setView($view); $this->_view = $view; } return $this->_view; }</pre> </div> </figure> </div> <div class="example-item" id="0x772ad982d0cf2cf9c0394c89ba6c1528a0bfeed58783b015246066a1c3733a9e-4,,10,"> <div class="bs-example"> <div> <div class="bs-example-title">コード例 #10</div> <div style="position: absolute;right: 15px;top: 10px;" id="rating_10" data-hash="0x772ad982d0cf2cf9c0394c89ba6c1528a0bfeed58783b015246066a1c3733a9e" data-area="4,,10,"> <div class="rating-amount">0</div> <a title="この例に高評価をつける" href="javascript:app.addRating(1, '10')" class="rating-up btn btn-success" data-id="rating_10"><i class="icon-button icon-thumbs-up"></i></a> <a title="この例に低評価をつける" href="javascript:app.addRating(-1,'10')" class="rating-down btn btn-danger" data-id="rating_10"><i class="icon-button icon-thumbs-down"></i></a> </div> </div> <div style="display:flex;align-items: center;flex-wrap: wrap"> <div style="display: inline-block;margin-right: 10px"> <a class="btn btn-default" title="この例への直リンク" href="https://hotexamples.com/jp/examples/-/Zend_View/headTitle/php-zend_view-headtitle-method-examples.html#0x772ad982d0cf2cf9c0394c89ba6c1528a0bfeed58783b015246066a1c3733a9e-4,,10,"><i class="icon-button icon-link"></i></a> <a rel="nofollow" class="btn btn-default" href="javascript:app.open('https://hotexamples.com/jp/site/file?hash=0x772ad982d0cf2cf9c0394c89ba6c1528a0bfeed58783b015246066a1c3733a9e&fullName=php%2Fzf%2Fsimukti-zf-db-sakila%2FBootstrap.php&project=vianziro%2Fsimuktiblogspot')">ファイルを表示</a> </div> <div class="example-project-info"> <nobr> <span>ファイル:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fvianziro%2Fsimuktiblogspot%2Fblob%2Fmaster%2Fphp%2Fzf%2Fsimukti-zf-db-sakila%2FBootstrap.php">Bootstrap.php</a> </nobr> <nobr> <span>プロジェクト:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fvianziro%2Fsimuktiblogspot">vianziro/simuktiblogspot</a> </nobr> </div> </div> </div> <figure class="highlight"> <div class="example" data-id="10"> <pre class="line-numbers language-php" data-end="10" data-start="5" data-highlight="8"> protected function _initView() { $view = new Zend_View(); $view->headTitle('test test'); $view->docType('XHTML1_STRICT'); Zend_Layout::startMvc(array('layoutPath' => APPLICATION_PATH . '/layouts')); }</pre> </div> </figure> </div> <div class="example-item" id="0x411a8ba0508a4d7e8ce4c787e72b57606feb7bcc8240bb7dc0903de0b6fd1490-4,,11,"> <div class="bs-example"> <div> <div class="bs-example-title">コード例 #11</div> <div style="position: absolute;right: 15px;top: 10px;" id="rating_11" data-hash="0x411a8ba0508a4d7e8ce4c787e72b57606feb7bcc8240bb7dc0903de0b6fd1490" data-area="4,,11,"> <div class="rating-amount">0</div> <a title="この例に高評価をつける" href="javascript:app.addRating(1, '11')" class="rating-up btn btn-success" data-id="rating_11"><i class="icon-button icon-thumbs-up"></i></a> <a title="この例に低評価をつける" href="javascript:app.addRating(-1,'11')" class="rating-down btn btn-danger" data-id="rating_11"><i class="icon-button icon-thumbs-down"></i></a> </div> </div> <div style="display:flex;align-items: center;flex-wrap: wrap"> <div style="display: inline-block;margin-right: 10px"> <a class="btn btn-default" title="この例への直リンク" href="https://hotexamples.com/jp/examples/-/Zend_View/headTitle/php-zend_view-headtitle-method-examples.html#0x411a8ba0508a4d7e8ce4c787e72b57606feb7bcc8240bb7dc0903de0b6fd1490-4,,11,"><i class="icon-button icon-link"></i></a> <a rel="nofollow" class="btn btn-default" href="javascript:app.open('https://hotexamples.com/jp/site/file?hash=0x411a8ba0508a4d7e8ce4c787e72b57606feb7bcc8240bb7dc0903de0b6fd1490&fullName=Bootstrap.php&project=TiMoChao%2Fkehuanedu')">ファイルを表示</a> </div> <div class="example-project-info"> <nobr> <span>ファイル:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2FTiMoChao%2Fkehuanedu%2Fblob%2Fmaster%2FBootstrap.php">Bootstrap.php</a> </nobr> <nobr> <span>プロジェクト:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2FTiMoChao%2Fkehuanedu">TiMoChao/kehuanedu</a> </nobr> </div> </div> </div> <figure class="highlight"> <div class="example" data-id="11"> <pre class="line-numbers language-php" data-end="11" data-start="5" data-highlight="10"> protected function _initView() { $view = new Zend_View(); //实例化两个资源 $view->doctype('XHTML1_STRICT'); $view->headTitle('可幻教育'); return $view; }</pre> </div> </figure> </div> <div class="example-item" id="0x40e4ec8991016fb33ae8080df7773e1c6ed34759372aa01bd5bc4523e3d3c807-279,,291,"> <div class="bs-example"> <div> <div class="bs-example-title">コード例 #12</div> <div style="position: absolute;right: 15px;top: 10px;" id="rating_12" data-hash="0x40e4ec8991016fb33ae8080df7773e1c6ed34759372aa01bd5bc4523e3d3c807" data-area="279,,291,"> <div class="rating-amount">0</div> <a title="この例に高評価をつける" href="javascript:app.addRating(1, '12')" class="rating-up btn btn-success" data-id="rating_12"><i class="icon-button icon-thumbs-up"></i></a> <a title="この例に低評価をつける" href="javascript:app.addRating(-1,'12')" class="rating-down btn btn-danger" data-id="rating_12"><i class="icon-button icon-thumbs-down"></i></a> </div> </div> <div style="display:flex;align-items: center;flex-wrap: wrap"> <div style="display: inline-block;margin-right: 10px"> <a class="btn btn-default" title="この例への直リンク" href="https://hotexamples.com/jp/examples/-/Zend_View/headTitle/php-zend_view-headtitle-method-examples.html#0x40e4ec8991016fb33ae8080df7773e1c6ed34759372aa01bd5bc4523e3d3c807-279,,291,"><i class="icon-button icon-link"></i></a> <a rel="nofollow" class="btn btn-default" href="javascript:app.open('https://hotexamples.com/jp/site/file?hash=0x40e4ec8991016fb33ae8080df7773e1c6ed34759372aa01bd5bc4523e3d3c807&fullName=trunk%2Flibrary%2FZLayer%2FController%2FPlugin%2FAbstract.php&project=BGCX261%2Fzlayer-svn-to-git')">ファイルを表示</a> </div> <div class="example-project-info"> <nobr> <span>ファイル:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2FBGCX261%2Fzlayer-svn-to-git%2Fblob%2Fmaster%2Ftrunk%2Flibrary%2FZLayer%2FController%2FPlugin%2FAbstract.php">Abstract.php</a> </nobr> <nobr> <span>プロジェクト:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2FBGCX261%2Fzlayer-svn-to-git">BGCX261/zlayer-svn-to-git</a> </nobr> </div> </div> </div> <figure class="highlight"> <div class="example" data-id="12"> <pre class="line-numbers language-php" data-end="291" data-start="280" data-highlight="53,288"> /** * _responseHtml * * @return void */ private function _responseHtml() { $body = $this->_viewRenderer->getResponse()->getBody(); $respHeader = "{$this->_view->doctype()}\n <html>\n <head>\n {$this->_view->headMeta()}\n {$this->_view->headTitle()}\n {$this->_view->headStyle()}\n {$this->_view->headLink()}\n {$this->_view->headScript()}\n {$this->_view->dojo()}\n </head>"; $respBody = "<body>{$body}</body>"; $respFooter = "</html>"; $this->_viewRenderer->getResponse()->setBody($respHeader . $respBody . $respFooter); }</pre> </div> </figure> </div> <div class="example-item" id="0xafacd4f5a14b9f3e58841d96bc79efec6cf521ec84722079156248f94e1e0564-35,,42,"> <div class="bs-example"> <div> <div class="bs-example-title">コード例 #13</div> <div style="position: absolute;right: 15px;top: 10px;" id="rating_13" data-hash="0xafacd4f5a14b9f3e58841d96bc79efec6cf521ec84722079156248f94e1e0564" data-area="35,,42,"> <div class="rating-amount">0</div> <a title="この例に高評価をつける" href="javascript:app.addRating(1, '13')" class="rating-up btn btn-success" data-id="rating_13"><i class="icon-button icon-thumbs-up"></i></a> <a title="この例に低評価をつける" href="javascript:app.addRating(-1,'13')" class="rating-down btn btn-danger" data-id="rating_13"><i class="icon-button icon-thumbs-down"></i></a> </div> </div> <div style="display:flex;align-items: center;flex-wrap: wrap"> <div style="display: inline-block;margin-right: 10px"> <a class="btn btn-default" title="この例への直リンク" href="https://hotexamples.com/jp/examples/-/Zend_View/headTitle/php-zend_view-headtitle-method-examples.html#0xafacd4f5a14b9f3e58841d96bc79efec6cf521ec84722079156248f94e1e0564-35,,42,"><i class="icon-button icon-link"></i></a> <a rel="nofollow" class="btn btn-default" href="javascript:app.open('https://hotexamples.com/jp/site/file?hash=0xafacd4f5a14b9f3e58841d96bc79efec6cf521ec84722079156248f94e1e0564&fullName=sso%2FBootstrap.php&project=seedbank%2Fold-repo')">ファイルを表示</a> </div> <div class="example-project-info"> <nobr> <span>ファイル:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fseedbank%2Fold-repo%2Fblob%2Fmaster%2Fsso%2FBootstrap.php">Bootstrap.php</a> </nobr> <nobr> <span>プロジェクト:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fseedbank%2Fold-repo">seedbank/old-repo</a> </nobr> </div> </div> </div> <figure class="highlight"> <div class="example" data-id="13"> <pre class="line-numbers language-php" data-end="42" data-start="36" data-highlight="40"> protected function _initView() { $view = new Zend_View(); $viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('ViewRenderer'); $view->headTitle('Practical Plants SSO')->setSeparator(' - '); $viewRenderer->setView($view); return $view; }</pre> </div> </figure> </div> <div class="example-item" id="0x0637ed09e7a34f2d6abcad9376184a59c9884374cf3c50dc9a967543a24908e1-44,,60,"> <div class="bs-example"> <div> <div class="bs-example-title">コード例 #14</div> <div style="position: absolute;right: 15px;top: 10px;" id="rating_14" data-hash="0x0637ed09e7a34f2d6abcad9376184a59c9884374cf3c50dc9a967543a24908e1" data-area="44,,60,"> <div class="rating-amount">0</div> <a title="この例に高評価をつける" href="javascript:app.addRating(1, '14')" class="rating-up btn btn-success" data-id="rating_14"><i class="icon-button icon-thumbs-up"></i></a> <a title="この例に低評価をつける" href="javascript:app.addRating(-1,'14')" class="rating-down btn btn-danger" data-id="rating_14"><i class="icon-button icon-thumbs-down"></i></a> </div> </div> <div style="display:flex;align-items: center;flex-wrap: wrap"> <div style="display: inline-block;margin-right: 10px"> <a class="btn btn-default" title="この例への直リンク" href="https://hotexamples.com/jp/examples/-/Zend_View/headTitle/php-zend_view-headtitle-method-examples.html#0x0637ed09e7a34f2d6abcad9376184a59c9884374cf3c50dc9a967543a24908e1-44,,60,"><i class="icon-button icon-link"></i></a> <a rel="nofollow" class="btn btn-default" href="javascript:app.open('https://hotexamples.com/jp/site/file?hash=0x0637ed09e7a34f2d6abcad9376184a59c9884374cf3c50dc9a967543a24908e1&fullName=Bootstrap.php&project=agenciaaeh%2Fkahina')">ファイルを表示</a> </div> <div class="example-project-info"> <nobr> <span>ファイル:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fagenciaaeh%2Fkahina%2Fblob%2Fmaster%2FBootstrap.php">Bootstrap.php</a> </nobr> <nobr> <span>プロジェクト:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fagenciaaeh%2Fkahina">agenciaaeh/kahina</a> </nobr> </div> </div> </div> <figure class="highlight"> <div class="example" data-id="14"> <pre class="line-numbers language-php" data-end="60" data-start="45" data-highlight="52,53"> protected function _initView() { $view = new Zend_View(); $cfg = $this->getOptions(); $site = $cfg['site']; $view->doctype('HTML5'); // $view->headMeta()->appendHttpEquiv('Content-Type', 'text/html;charset=utf-8'); $view->headTitle()->prepend($site['name']); $view->headTitle()->setSeparator(' - '); $view->headMeta()->appendName('description', $site['meta']['description']); $view->headMeta()->appendName('keywords', $site['meta']['keywords']); $view->headMeta()->appendName('author', $site['meta']['author']); $view->env = APPLICATION_ENV; $viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('viewRenderer'); $viewRenderer->init(); $viewRenderer->view->addHelperPath('My' . DS . 'View' . DS . 'Helper', 'My_View_Helper'); }</pre> </div> </figure> </div> <div class="example-item" id="0x04a443404b991fe8004e211418b9d357391cb3af1f3abe74ddeb7a5320a763aa-39,,48,"> <div class="bs-example"> <div> <div class="bs-example-title">コード例 #15</div> <div style="position: absolute;right: 15px;top: 10px;" id="rating_15" data-hash="0x04a443404b991fe8004e211418b9d357391cb3af1f3abe74ddeb7a5320a763aa" data-area="39,,48,"> <div class="rating-amount">0</div> <a title="この例に高評価をつける" href="javascript:app.addRating(1, '15')" class="rating-up btn btn-success" data-id="rating_15"><i class="icon-button icon-thumbs-up"></i></a> <a title="この例に低評価をつける" href="javascript:app.addRating(-1,'15')" class="rating-down btn btn-danger" data-id="rating_15"><i class="icon-button icon-thumbs-down"></i></a> </div> </div> <div style="display:flex;align-items: center;flex-wrap: wrap"> <div style="display: inline-block;margin-right: 10px"> <a class="btn btn-default" title="この例への直リンク" href="https://hotexamples.com/jp/examples/-/Zend_View/headTitle/php-zend_view-headtitle-method-examples.html#0x04a443404b991fe8004e211418b9d357391cb3af1f3abe74ddeb7a5320a763aa-39,,48,"><i class="icon-button icon-link"></i></a> <a rel="nofollow" class="btn btn-default" href="javascript:app.open('https://hotexamples.com/jp/site/file?hash=0x04a443404b991fe8004e211418b9d357391cb3af1f3abe74ddeb7a5320a763aa&fullName=Bootstrap.php&project=Rademade%2FMedOptima')">ファイルを表示</a> </div> <div class="example-project-info"> <nobr> <span>ファイル:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2FRademade%2FMedOptima%2Fblob%2Fmaster%2FBootstrap.php">Bootstrap.php</a> </nobr> <nobr> <span>プロジェクト:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2FRademade%2FMedOptima">Rademade/MedOptima</a> </nobr> </div> </div> </div> <figure class="highlight"> <div class="example" data-id="15"> <pre class="line-numbers language-php" data-end="48" data-start="40" data-highlight="44"> protected function _initView() { $view = new Zend_View(); $view->doctype('HTML5'); $view->headTitle()->setSeparator(' | '); $view->headMeta()->appendHttpEquiv('Content-Type', 'text/html; charset=utf-8'); $view->setHelperPath(APPLICATION_PATH . '/modules/admin/views/helpers/'); $view->addHelperPath(APPLICATION_PATH . '/modules/public/views/helpers/'); Zend_Controller_Action_HelperBroker::getStaticHelper('ViewRenderer')->setView($view); }</pre> </div> </figure> </div> <div class="example-item" id="0x810ad11216334bdd08ae50a4cb06fee6245616cfabc70fc6f15dcfe04e963a51-27,,37,"> <div class="bs-example"> <div> <div class="bs-example-title">コード例 #16</div> <div style="position: absolute;right: 15px;top: 10px;" id="rating_16" data-hash="0x810ad11216334bdd08ae50a4cb06fee6245616cfabc70fc6f15dcfe04e963a51" data-area="27,,37,"> <div class="rating-amount">0</div> <a title="この例に高評価をつける" href="javascript:app.addRating(1, '16')" class="rating-up btn btn-success" data-id="rating_16"><i class="icon-button icon-thumbs-up"></i></a> <a title="この例に低評価をつける" href="javascript:app.addRating(-1,'16')" class="rating-down btn btn-danger" data-id="rating_16"><i class="icon-button icon-thumbs-down"></i></a> </div> </div> <div style="display:flex;align-items: center;flex-wrap: wrap"> <div style="display: inline-block;margin-right: 10px"> <a class="btn btn-default" title="この例への直リンク" href="https://hotexamples.com/jp/examples/-/Zend_View/headTitle/php-zend_view-headtitle-method-examples.html#0x810ad11216334bdd08ae50a4cb06fee6245616cfabc70fc6f15dcfe04e963a51-27,,37,"><i class="icon-button icon-link"></i></a> <a rel="nofollow" class="btn btn-default" href="javascript:app.open('https://hotexamples.com/jp/site/file?hash=0x810ad11216334bdd08ae50a4cb06fee6245616cfabc70fc6f15dcfe04e963a51&fullName=Bootstrap.php&project=RealTimeApps%2Fchargify-sample-app')">ファイルを表示</a> </div> <div class="example-project-info"> <nobr> <span>ファイル:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2FRealTimeApps%2Fchargify-sample-app%2Fblob%2Fmaster%2FBootstrap.php">Bootstrap.php</a> </nobr> <nobr> <span>プロジェクト:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2FRealTimeApps%2Fchargify-sample-app">RealTimeApps/chargify-sample-app</a> </nobr> </div> </div> </div> <figure class="highlight"> <div class="example" data-id="16"> <pre class="line-numbers language-php" data-end="37" data-start="28" data-highlight="34"> protected function _initView() { $view = new Zend_View(); $view->doctype('XHTML1_TRANSITIONAL'); $view->setEncoding('UTF-8'); $view->headMeta()->appendHttpEquiv('Content-Type', 'text/html; charset=UTF-8')->appendHttpEquiv('Content-Language', 'en-US'); $view->headTitle('Chargify Sample App')->setSeparator(' | '); $view->addHelperPath('Crucial/View/Helper/', 'Crucial_View_Helper'); $viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('ViewRenderer'); $viewRenderer->setView($view); }</pre> </div> </figure> </div> <div class="example-item" id="0x6c3d866c47557beabd215192a53743b3afe8333721f38cde1837cc3483ef2a22-22,,32,"> <div class="bs-example"> <div> <div class="bs-example-title">コード例 #17</div> <div style="position: absolute;right: 15px;top: 10px;" id="rating_17" data-hash="0x6c3d866c47557beabd215192a53743b3afe8333721f38cde1837cc3483ef2a22" data-area="22,,32,"> <div class="rating-amount">0</div> <a title="この例に高評価をつける" href="javascript:app.addRating(1, '17')" class="rating-up btn btn-success" data-id="rating_17"><i class="icon-button icon-thumbs-up"></i></a> <a title="この例に低評価をつける" href="javascript:app.addRating(-1,'17')" class="rating-down btn btn-danger" data-id="rating_17"><i class="icon-button icon-thumbs-down"></i></a> </div> </div> <div style="display:flex;align-items: center;flex-wrap: wrap"> <div style="display: inline-block;margin-right: 10px"> <a class="btn btn-default" title="この例への直リンク" href="https://hotexamples.com/jp/examples/-/Zend_View/headTitle/php-zend_view-headtitle-method-examples.html#0x6c3d866c47557beabd215192a53743b3afe8333721f38cde1837cc3483ef2a22-22,,32,"><i class="icon-button icon-link"></i></a> <a rel="nofollow" class="btn btn-default" href="javascript:app.open('https://hotexamples.com/jp/site/file?hash=0x6c3d866c47557beabd215192a53743b3afe8333721f38cde1837cc3483ef2a22&fullName=Bootstrap.php&project=varrbor%2Fhanuka.lviv.ua')">ファイルを表示</a> </div> <div class="example-project-info"> <nobr> <span>ファイル:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fvarrbor%2Fhanuka.lviv.ua%2Fblob%2Fmaster%2FBootstrap.php">Bootstrap.php</a> </nobr> <nobr> <span>プロジェクト:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fvarrbor%2Fhanuka.lviv.ua">varrbor/hanuka.lviv.ua</a> </nobr> </div> </div> </div> <figure class="highlight"> <div class="example" data-id="17"> <pre class="line-numbers language-php" data-end="32" data-start="23" data-highlight="28"> protected function _initView() { $config = $this->getOptions(); $view = new Zend_View($config); // set title $view->headTitle()->setSeparator(' :: '); //$view->headTitle($config['appName']); $viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('ViewRenderer'); $viewRenderer->setView($view); return $view; }</pre> </div> </figure> </div> <div class="example-item" id="0x0a77e59d25f43d122580e5f28f2e5c1dc303045bdcba9ba3b9a1a19d78ef754b-15,,26,"> <div class="bs-example"> <div> <div class="bs-example-title">コード例 #18</div> <div style="position: absolute;right: 15px;top: 10px;" id="rating_18" data-hash="0x0a77e59d25f43d122580e5f28f2e5c1dc303045bdcba9ba3b9a1a19d78ef754b" data-area="15,,26,"> <div class="rating-amount">0</div> <a title="この例に高評価をつける" href="javascript:app.addRating(1, '18')" class="rating-up btn btn-success" data-id="rating_18"><i class="icon-button icon-thumbs-up"></i></a> <a title="この例に低評価をつける" href="javascript:app.addRating(-1,'18')" class="rating-down btn btn-danger" data-id="rating_18"><i class="icon-button icon-thumbs-down"></i></a> </div> </div> <div style="display:flex;align-items: center;flex-wrap: wrap"> <div style="display: inline-block;margin-right: 10px"> <a class="btn btn-default" title="この例への直リンク" href="https://hotexamples.com/jp/examples/-/Zend_View/headTitle/php-zend_view-headtitle-method-examples.html#0x0a77e59d25f43d122580e5f28f2e5c1dc303045bdcba9ba3b9a1a19d78ef754b-15,,26,"><i class="icon-button icon-link"></i></a> <a rel="nofollow" class="btn btn-default" href="javascript:app.open('https://hotexamples.com/jp/site/file?hash=0x0a77e59d25f43d122580e5f28f2e5c1dc303045bdcba9ba3b9a1a19d78ef754b&fullName=Bootstrap.php&project=rodrigoferrari%2Fbrasilyacht')">ファイルを表示</a> </div> <div class="example-project-info"> <nobr> <span>ファイル:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Frodrigoferrari%2Fbrasilyacht%2Fblob%2Fmaster%2FBootstrap.php">Bootstrap.php</a> </nobr> <nobr> <span>プロジェクト:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Frodrigoferrari%2Fbrasilyacht">rodrigoferrari/brasilyacht</a> </nobr> </div> </div> </div> <figure class="highlight"> <div class="example" data-id="18"> <pre class="line-numbers language-php" data-end="26" data-start="16" data-highlight="21"> protected function _initView() { // Initialize view $view = new Zend_View(); $view->doctype('XHTML1_STRICT'); $view->headTitle('ZF Secure Login'); // Add it to the ViewRenderer $viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('ViewRenderer'); $viewRenderer->setView($view); // Return it, so that it can be stored by the bootstrap return $view; }</pre> </div> </figure> </div> <div class="example-item" id="0x0c315f1244ee8e0230a5351013aa9ca36b4ff7bd297280a13543fcfa9d58c187-28,,39,"> <div class="bs-example"> <div> <div class="bs-example-title">コード例 #19</div> <div style="position: absolute;right: 15px;top: 10px;" id="rating_19" data-hash="0x0c315f1244ee8e0230a5351013aa9ca36b4ff7bd297280a13543fcfa9d58c187" data-area="28,,39,"> <div class="rating-amount">0</div> <a title="この例に高評価をつける" href="javascript:app.addRating(1, '19')" class="rating-up btn btn-success" data-id="rating_19"><i class="icon-button icon-thumbs-up"></i></a> <a title="この例に低評価をつける" href="javascript:app.addRating(-1,'19')" class="rating-down btn btn-danger" data-id="rating_19"><i class="icon-button icon-thumbs-down"></i></a> </div> </div> <div style="display:flex;align-items: center;flex-wrap: wrap"> <div style="display: inline-block;margin-right: 10px"> <a class="btn btn-default" title="この例への直リンク" href="https://hotexamples.com/jp/examples/-/Zend_View/headTitle/php-zend_view-headtitle-method-examples.html#0x0c315f1244ee8e0230a5351013aa9ca36b4ff7bd297280a13543fcfa9d58c187-28,,39,"><i class="icon-button icon-link"></i></a> <a rel="nofollow" class="btn btn-default" href="javascript:app.open('https://hotexamples.com/jp/site/file?hash=0x0c315f1244ee8e0230a5351013aa9ca36b4ff7bd297280a13543fcfa9d58c187&fullName=Bootstrap.php&project=esandre%2FCoeurDeTruffes')">ファイルを表示</a> </div> <div class="example-project-info"> <nobr> <span>ファイル:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fesandre%2FCoeurDeTruffes%2Fblob%2Fmaster%2FBootstrap.php">Bootstrap.php</a> </nobr> <nobr> <span>プロジェクト:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fesandre%2FCoeurDeTruffes">esandre/CoeurDeTruffes</a> </nobr> </div> </div> </div> <figure class="highlight"> <div class="example" data-id="19"> <pre class="line-numbers language-php" data-end="39" data-start="29" data-highlight="33"> protected function _initView() { $view = new Zend_View(); $view->doctype('XHTML1_STRICT'); $view->headTitle('Truffes'); $view->headLink()->appendStylesheet('/css/main.css'); $view->addHelperPath(APPLICATION_PATH . '/helpers', 'View_Helper'); $view->addHelperPath(APPLICATION_PATH . '/modules/frontend/views/helpers', 'View_Helper'); $viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('ViewRenderer'); $viewRenderer->setView($view); return $view; }</pre> </div> </figure> </div> <div class="example-item" id="0xeedc50656a070764fe6041efef47608aceb52588d8fc82e8fe380056abf97fe8-4,,16,"> <div class="bs-example"> <div> <div class="bs-example-title">コード例 #20</div> <div style="position: absolute;right: 15px;top: 10px;" id="rating_20" data-hash="0xeedc50656a070764fe6041efef47608aceb52588d8fc82e8fe380056abf97fe8" data-area="4,,16,"> <div class="rating-amount">0</div> <a title="この例に高評価をつける" href="javascript:app.addRating(1, '20')" class="rating-up btn btn-success" data-id="rating_20"><i class="icon-button icon-thumbs-up"></i></a> <a title="この例に低評価をつける" href="javascript:app.addRating(-1,'20')" class="rating-down btn btn-danger" data-id="rating_20"><i class="icon-button icon-thumbs-down"></i></a> </div> </div> <div style="display:flex;align-items: center;flex-wrap: wrap"> <div style="display: inline-block;margin-right: 10px"> <a class="btn btn-default" title="この例への直リンク" href="https://hotexamples.com/jp/examples/-/Zend_View/headTitle/php-zend_view-headtitle-method-examples.html#0xeedc50656a070764fe6041efef47608aceb52588d8fc82e8fe380056abf97fe8-4,,16,"><i class="icon-button icon-link"></i></a> <a rel="nofollow" class="btn btn-default" href="javascript:app.open('https://hotexamples.com/jp/site/file?hash=0xeedc50656a070764fe6041efef47608aceb52588d8fc82e8fe380056abf97fe8&fullName=Bootstrap.php&project=Neozeratul%2FIntermodels')">ファイルを表示</a> </div> <div class="example-project-info"> <nobr> <span>ファイル:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2FNeozeratul%2FIntermodels%2Fblob%2Fmaster%2FBootstrap.php">Bootstrap.php</a> </nobr> <nobr> <span>プロジェクト:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2FNeozeratul%2FIntermodels">Neozeratul/Intermodels</a> </nobr> </div> </div> </div> <figure class="highlight"> <div class="example" data-id="20"> <pre class="line-numbers language-php" data-end="16" data-start="5" data-highlight="10"> protected function _initView() { $view = new Zend_View(); $view->doctype('XHTML1_TRANSITIONAL'); $view->headMeta()->appendHttpEquiv('Content-type', 'text/html;charset=utf-8'); $view->headTitle('· Intermodels · Un deseo...hecho realidad · Modelos · Gogós · Azafatas · Agencia · Barcelona ·')->setSeparator(' - '); $view->headScript()->prependFile('http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js'); $view->addHelperPath('Neo/View/Helper', 'Neo_View_Helper'); $view->addHelperPath('ZendX/JQuery/View/Helper/', 'ZendX_JQuery_View_Helper'); $viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('ViewRenderer'); $viewRenderer->setView($view); return $view; }</pre> </div> </figure> </div> <div class="example-item" id="0xed0864efc5b8b9278e8146813dd1efb02b79e5831c08a97be7d6f15e4285e97e-10,,22,"> <div class="bs-example"> <div> <div class="bs-example-title">コード例 #21</div> <div style="position: absolute;right: 15px;top: 10px;" id="rating_21" data-hash="0xed0864efc5b8b9278e8146813dd1efb02b79e5831c08a97be7d6f15e4285e97e" data-area="10,,22,"> <div class="rating-amount">0</div> <a title="この例に高評価をつける" href="javascript:app.addRating(1, '21')" class="rating-up btn btn-success" data-id="rating_21"><i class="icon-button icon-thumbs-up"></i></a> <a title="この例に低評価をつける" href="javascript:app.addRating(-1,'21')" class="rating-down btn btn-danger" data-id="rating_21"><i class="icon-button icon-thumbs-down"></i></a> </div> </div> <div style="display:flex;align-items: center;flex-wrap: wrap"> <div style="display: inline-block;margin-right: 10px"> <a class="btn btn-default" title="この例への直リンク" href="https://hotexamples.com/jp/examples/-/Zend_View/headTitle/php-zend_view-headtitle-method-examples.html#0xed0864efc5b8b9278e8146813dd1efb02b79e5831c08a97be7d6f15e4285e97e-10,,22,"><i class="icon-button icon-link"></i></a> <a rel="nofollow" class="btn btn-default" href="javascript:app.open('https://hotexamples.com/jp/site/file?hash=0xed0864efc5b8b9278e8146813dd1efb02b79e5831c08a97be7d6f15e4285e97e&fullName=Bootstrap.php&project=swastikit%2Fdevotees')">ファイルを表示</a> </div> <div class="example-project-info"> <nobr> <span>ファイル:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fswastikit%2Fdevotees%2Fblob%2Fmaster%2FBootstrap.php">Bootstrap.php</a> </nobr> <nobr> <span>プロジェクト:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fswastikit%2Fdevotees">swastikit/devotees</a> </nobr> </div> </div> </div> <figure class="highlight"> <div class="example" data-id="21"> <pre class="line-numbers language-php" data-end="22" data-start="11" data-highlight="16"> protected function _initViewHelpers() { $view = new Zend_View(); $view->doctype('XHTML1_STRICT'); $view->headMeta()->appendHttpEquiv('content-type', 'text/html:charset=utf-8')->appendName('description', 'ISKCON Congregation Database-Mumbai Chowpatty'); $view->headTitle('Radha Gopinath Mandir'); // Create new view object if not already instantiated //$view = new Zend_View(); Zend_Dojo::enableView($view); $view->dojo()->addStyleSheetModule('dijit.themes.tundra')->setDjConfigOption('usePlainJson', true)->disable(); $viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('ViewRenderer'); $viewRenderer->setView($view); }</pre> </div> </figure> </div> <div class="example-item" id="0xe211346423c537f1a46e7ae0060a905a247755c17fd2325cd7d70c2e6c21365a-11,,23,"> <div class="bs-example"> <div> <div class="bs-example-title">コード例 #22</div> <div style="position: absolute;right: 15px;top: 10px;" id="rating_22" data-hash="0xe211346423c537f1a46e7ae0060a905a247755c17fd2325cd7d70c2e6c21365a" data-area="11,,23,"> <div class="rating-amount">0</div> <a title="この例に高評価をつける" href="javascript:app.addRating(1, '22')" class="rating-up btn btn-success" data-id="rating_22"><i class="icon-button icon-thumbs-up"></i></a> <a title="この例に低評価をつける" href="javascript:app.addRating(-1,'22')" class="rating-down btn btn-danger" data-id="rating_22"><i class="icon-button icon-thumbs-down"></i></a> </div> </div> <div style="display:flex;align-items: center;flex-wrap: wrap"> <div style="display: inline-block;margin-right: 10px"> <a class="btn btn-default" title="この例への直リンク" href="https://hotexamples.com/jp/examples/-/Zend_View/headTitle/php-zend_view-headtitle-method-examples.html#0xe211346423c537f1a46e7ae0060a905a247755c17fd2325cd7d70c2e6c21365a-11,,23,"><i class="icon-button icon-link"></i></a> <a rel="nofollow" class="btn btn-default" href="javascript:app.open('https://hotexamples.com/jp/site/file?hash=0xe211346423c537f1a46e7ae0060a905a247755c17fd2325cd7d70c2e6c21365a&fullName=Bootstrap.php&project=pietka%2Ffedit')">ファイルを表示</a> </div> <div class="example-project-info"> <nobr> <span>ファイル:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fpietka%2Ffedit%2Fblob%2Fmaster%2FBootstrap.php">Bootstrap.php</a> </nobr> <nobr> <span>プロジェクト:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fpietka%2Ffedit">pietka/fedit</a> </nobr> </div> </div> </div> <figure class="highlight"> <div class="example" data-id="22"> <pre class="line-numbers language-php" data-end="23" data-start="12" data-highlight="17"> protected function _initView() { // Initialize view $view = new Zend_View(); $view->doctype('XHTML1_STRICT'); $view->headTitle()->setSeparator(' - ')->append('Fedit'); $view->headMeta()->appendHttpEquiv('Content-Type', 'text/html; charset=utf-8'); // Add it to the ViewRenderer $viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('ViewRenderer'); $viewRenderer->setView($view); // Return it, so that it can be stored by the bootstrap return $view; }</pre> </div> </figure> </div> <div class="example-item" id="0x0cafd0eec5860866bed1b0b34529e5798a9ac8efce5b83d3b567eb66924cd3e6-4,,20,"> <div class="bs-example"> <div> <div class="bs-example-title">コード例 #23</div> <div style="position: absolute;right: 15px;top: 10px;" id="rating_23" data-hash="0x0cafd0eec5860866bed1b0b34529e5798a9ac8efce5b83d3b567eb66924cd3e6" data-area="4,,20,"> <div class="rating-amount">0</div> <a title="この例に高評価をつける" href="javascript:app.addRating(1, '23')" class="rating-up btn btn-success" data-id="rating_23"><i class="icon-button icon-thumbs-up"></i></a> <a title="この例に低評価をつける" href="javascript:app.addRating(-1,'23')" class="rating-down btn btn-danger" data-id="rating_23"><i class="icon-button icon-thumbs-down"></i></a> </div> </div> <div style="display:flex;align-items: center;flex-wrap: wrap"> <div style="display: inline-block;margin-right: 10px"> <a class="btn btn-default" title="この例への直リンク" href="https://hotexamples.com/jp/examples/-/Zend_View/headTitle/php-zend_view-headtitle-method-examples.html#0x0cafd0eec5860866bed1b0b34529e5798a9ac8efce5b83d3b567eb66924cd3e6-4,,20,"><i class="icon-button icon-link"></i></a> <a rel="nofollow" class="btn btn-default" href="javascript:app.open('https://hotexamples.com/jp/site/file?hash=0x0cafd0eec5860866bed1b0b34529e5798a9ac8efce5b83d3b567eb66924cd3e6&fullName=src%2FApplication%2FView.php&project=luismayta%2Fzrt')">ファイルを表示</a> </div> <div class="example-project-info"> <nobr> <span>ファイル:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fluismayta%2Fzrt%2Fblob%2Fmaster%2Fsrc%2FApplication%2FView.php">View.php</a> </nobr> <nobr> <span>プロジェクト:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fluismayta%2Fzrt">luismayta/zrt</a> </nobr> </div> </div> </div> <figure class="highlight"> <div class="example" data-id="23"> <pre class="line-numbers language-php" data-end="20" data-start="5" data-highlight="15"> /** * @author slovacus * @return type */ public function getView() { $this->_view = parent::getView(); if (null === $this->_view) { $options = $this->getOptions(); $view = new Zend_View(); $view->headTitle($options['title']); $viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('ViewRenderer'); $viewRenderer->setView($view); $this->_view = $view; } return $this->_view; }</pre> </div> </figure> </div> <div class="example-item" id="0xa1c355bfdce679d7b08b041b63035c855072be0557520607bc983bb4ae9c4764-4,,16,"> <div class="bs-example"> <div> <div class="bs-example-title">コード例 #24</div> <div style="position: absolute;right: 15px;top: 10px;" id="rating_24" data-hash="0xa1c355bfdce679d7b08b041b63035c855072be0557520607bc983bb4ae9c4764" data-area="4,,16,"> <div class="rating-amount">0</div> <a title="この例に高評価をつける" href="javascript:app.addRating(1, '24')" class="rating-up btn btn-success" data-id="rating_24"><i class="icon-button icon-thumbs-up"></i></a> <a title="この例に低評価をつける" href="javascript:app.addRating(-1,'24')" class="rating-down btn btn-danger" data-id="rating_24"><i class="icon-button icon-thumbs-down"></i></a> </div> </div> <div style="display:flex;align-items: center;flex-wrap: wrap"> <div style="display: inline-block;margin-right: 10px"> <a class="btn btn-default" title="この例への直リンク" href="https://hotexamples.com/jp/examples/-/Zend_View/headTitle/php-zend_view-headtitle-method-examples.html#0xa1c355bfdce679d7b08b041b63035c855072be0557520607bc983bb4ae9c4764-4,,16,"><i class="icon-button icon-link"></i></a> <a rel="nofollow" class="btn btn-default" href="javascript:app.open('https://hotexamples.com/jp/site/file?hash=0xa1c355bfdce679d7b08b041b63035c855072be0557520607bc983bb4ae9c4764&fullName=Bootstrap.php&project=Aktubius%2Fzendframeworkmodification')">ファイルを表示</a> </div> <div class="example-project-info"> <nobr> <span>ファイル:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2FAktubius%2Fzendframeworkmodification%2Fblob%2Fmaster%2FBootstrap.php">Bootstrap.php</a> </nobr> <nobr> <span>プロジェクト:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2FAktubius%2Fzendframeworkmodification">Aktubius/zendframeworkmodification</a> </nobr> </div> </div> </div> <figure class="highlight"> <div class="example" data-id="24"> <pre class="line-numbers language-php" data-end="16" data-start="5" data-highlight="9"> protected function _initView() { $view = new Zend_View(); $view->doctype('XHTML1_STRICT'); $view->headTitle('My First Zend Framework Application'); // ViewRenderer $viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('ViewRenderer'); $viewRenderer->setView($view); $view->headMeta()->appendHttpEquiv('Content-Type', 'text/html; charset=UTF-8'); // $view->headLink()->appendStylesheet( 'http://zquick.vpak.dv.rbc.ru/Auto/public/css/style.css' ); // save return $view; }</pre> </div> </figure> </div> <div class="example-item" id="0xb6d4d07d30149d721d7fe28850241d1d42493c2bf3e205886ec85e0fbeedbb8d-4,,17,"> <div class="bs-example"> <div> <div class="bs-example-title">コード例 #25</div> <div style="position: absolute;right: 15px;top: 10px;" id="rating_25" data-hash="0xb6d4d07d30149d721d7fe28850241d1d42493c2bf3e205886ec85e0fbeedbb8d" data-area="4,,17,"> <div class="rating-amount">0</div> <a title="この例に高評価をつける" href="javascript:app.addRating(1, '25')" class="rating-up btn btn-success" data-id="rating_25"><i class="icon-button icon-thumbs-up"></i></a> <a title="この例に低評価をつける" href="javascript:app.addRating(-1,'25')" class="rating-down btn btn-danger" data-id="rating_25"><i class="icon-button icon-thumbs-down"></i></a> </div> </div> <div style="display:flex;align-items: center;flex-wrap: wrap"> <div style="display: inline-block;margin-right: 10px"> <a class="btn btn-default" title="この例への直リンク" href="https://hotexamples.com/jp/examples/-/Zend_View/headTitle/php-zend_view-headtitle-method-examples.html#0xb6d4d07d30149d721d7fe28850241d1d42493c2bf3e205886ec85e0fbeedbb8d-4,,17,"><i class="icon-button icon-link"></i></a> <a rel="nofollow" class="btn btn-default" href="javascript:app.open('https://hotexamples.com/jp/site/file?hash=0xb6d4d07d30149d721d7fe28850241d1d42493c2bf3e205886ec85e0fbeedbb8d&fullName=weboa%2FBootstrap.php&project=laiello%2Fmyopensources')">ファイルを表示</a> </div> <div class="example-project-info"> <nobr> <span>ファイル:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Flaiello%2Fmyopensources%2Fblob%2Fmaster%2Fweboa%2FBootstrap.php">Bootstrap.php</a> </nobr> <nobr> <span>プロジェクト:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Flaiello%2Fmyopensources">laiello/myopensources</a> </nobr> </div> </div> </div> <figure class="highlight"> <div class="example" data-id="25"> <pre class="line-numbers language-php" data-end="17" data-start="5" data-highlight="10"> protected function _initView() { // Initialize view $view = new Zend_View(); $view->doctype('XHTML1_STRICT'); $view->headTitle('My First Zend Framework Application'); // Add it to the ViewRenderer $viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('ViewRenderer'); $view->addHelperPath('Zend/Dojo/View/Helper/', 'Zend_Dojo_View_Helper'); $viewRenderer->setView($view); Zend_Dojo::enableView($view); // Return it, so that it can be stored by the bootstrap return $view; }</pre> </div> </figure> </div> <div class="example-item" id="0xe4d729b94ba7260d006b5a35aa218c4418ac2f06f117c6685a50d91825bad944-195,,212,"> <div class="bs-example"> <div> <div class="bs-example-title">コード例 #26</div> <div style="position: absolute;right: 15px;top: 10px;" id="rating_26" data-hash="0xe4d729b94ba7260d006b5a35aa218c4418ac2f06f117c6685a50d91825bad944" data-area="195,,212,"> <div class="rating-amount">0</div> <a title="この例に高評価をつける" href="javascript:app.addRating(1, '26')" class="rating-up btn btn-success" data-id="rating_26"><i class="icon-button icon-thumbs-up"></i></a> <a title="この例に低評価をつける" href="javascript:app.addRating(-1,'26')" class="rating-down btn btn-danger" data-id="rating_26"><i class="icon-button icon-thumbs-down"></i></a> </div> </div> <div style="display:flex;align-items: center;flex-wrap: wrap"> <div style="display: inline-block;margin-right: 10px"> <a class="btn btn-default" title="この例への直リンク" href="https://hotexamples.com/jp/examples/-/Zend_View/headTitle/php-zend_view-headtitle-method-examples.html#0xe4d729b94ba7260d006b5a35aa218c4418ac2f06f117c6685a50d91825bad944-195,,212,"><i class="icon-button icon-link"></i></a> <a rel="nofollow" class="btn btn-default" href="javascript:app.open('https://hotexamples.com/jp/site/file?hash=0xe4d729b94ba7260d006b5a35aa218c4418ac2f06f117c6685a50d91825bad944&fullName=library%2FApplication.php&project=victorli%2FShrimpProject')">ファイルを表示</a> </div> <div class="example-project-info"> <nobr> <span>ファイル:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fvictorli%2FShrimpProject%2Fblob%2Fmaster%2Flibrary%2FApplication.php">Application.php</a> </nobr> <nobr> <span>プロジェクト:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fvictorli%2FShrimpProject">victorli/ShrimpProject</a> </nobr> </div> </div> </div> <figure class="highlight"> <div class="example" data-id="26"> <pre class="line-numbers language-php" data-end="212" data-start="196" data-highlight="58,206"> /** * set view */ protected function _setView() { if (null === self::$_view) { self::$_view = new Zend_View(); $title = "Shrimp Project"; self::$_view->setScriptPath(SP_APP_PATH . '/modules/default/views')->setEncoding('UTF-8')->strictVars(false)->addHelperPath('SP/View/Helper', 'SP_View_Helper_'); self::$_view->doctype('XHTML1_STRICT'); self::$_view->headTitle($title); self::$_view->headLink()->appendStylesheet('/theme/default/main.css'); self::$_view->headScript()->appendFile('/js/jquery-1.4.2.min.js'); self::$_view->headScript()->appendFile('/js/jquery.cookie.js'); self::$_view->headScript()->appendFile('/js/sorttable.js'); //self::$_view->htmlTable(); } }</pre> </div> </figure> </div> <div class="example-item" id="0xc63668f1eff56f2233acdc80de4ba0d84a5ce87d0f4c330807700f1d5270d058-26,,40,"> <div class="bs-example"> <div> <div class="bs-example-title">コード例 #27</div> <div style="position: absolute;right: 15px;top: 10px;" id="rating_27" data-hash="0xc63668f1eff56f2233acdc80de4ba0d84a5ce87d0f4c330807700f1d5270d058" data-area="26,,40,"> <div class="rating-amount">0</div> <a title="この例に高評価をつける" href="javascript:app.addRating(1, '27')" class="rating-up btn btn-success" data-id="rating_27"><i class="icon-button icon-thumbs-up"></i></a> <a title="この例に低評価をつける" href="javascript:app.addRating(-1,'27')" class="rating-down btn btn-danger" data-id="rating_27"><i class="icon-button icon-thumbs-down"></i></a> </div> </div> <div style="display:flex;align-items: center;flex-wrap: wrap"> <div style="display: inline-block;margin-right: 10px"> <a class="btn btn-default" title="この例への直リンク" href="https://hotexamples.com/jp/examples/-/Zend_View/headTitle/php-zend_view-headtitle-method-examples.html#0xc63668f1eff56f2233acdc80de4ba0d84a5ce87d0f4c330807700f1d5270d058-26,,40,"><i class="icon-button icon-link"></i></a> <a rel="nofollow" class="btn btn-default" href="javascript:app.open('https://hotexamples.com/jp/site/file?hash=0xc63668f1eff56f2233acdc80de4ba0d84a5ce87d0f4c330807700f1d5270d058&fullName=Bootstrap.php&project=rapsli%2F404crawler')">ファイルを表示</a> </div> <div class="example-project-info"> <nobr> <span>ファイル:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Frapsli%2F404crawler%2Fblob%2Fmaster%2FBootstrap.php">Bootstrap.php</a> </nobr> <nobr> <span>プロジェクト:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Frapsli%2F404crawler">rapsli/404crawler</a> </nobr> </div> </div> </div> <figure class="highlight"> <div class="example" data-id="27"> <pre class="line-numbers language-php" data-end="40" data-start="27" data-highlight="32"> protected function _initView() { // Initialize view $view = new Zend_View(); $view->doctype('XHTML5'); $view->headTitle('404 Logger'); //$view->addHelperPath('views/helpers', 'Zend_View_Helper_Table'); //Initialize and/or retrieve a ViewRenderer object on demand via the helper broker $viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('viewRenderer'); $viewRenderer->initView(); //add the global helper directory path //viewRenderer->view->addHelperPath('/var/www/quickstart/application/GlobalViewHelpers'); // Return it, so that it can be stored by the bootstrap return $view; }</pre> </div> </figure> </div> <div class="example-item" id="0x2d2a8b574c8b8faac66847caef1ffd3d8fc45522ae662bef8c01a58f2a90d5cc-19,,34,"> <div class="bs-example"> <div> <div class="bs-example-title">コード例 #28</div> <div style="position: absolute;right: 15px;top: 10px;" id="rating_28" data-hash="0x2d2a8b574c8b8faac66847caef1ffd3d8fc45522ae662bef8c01a58f2a90d5cc" data-area="19,,34,"> <div class="rating-amount">0</div> <a title="この例に高評価をつける" href="javascript:app.addRating(1, '28')" class="rating-up btn btn-success" data-id="rating_28"><i class="icon-button icon-thumbs-up"></i></a> <a title="この例に低評価をつける" href="javascript:app.addRating(-1,'28')" class="rating-down btn btn-danger" data-id="rating_28"><i class="icon-button icon-thumbs-down"></i></a> </div> </div> <div style="display:flex;align-items: center;flex-wrap: wrap"> <div style="display: inline-block;margin-right: 10px"> <a class="btn btn-default" title="この例への直リンク" href="https://hotexamples.com/jp/examples/-/Zend_View/headTitle/php-zend_view-headtitle-method-examples.html#0x2d2a8b574c8b8faac66847caef1ffd3d8fc45522ae662bef8c01a58f2a90d5cc-19,,34,"><i class="icon-button icon-link"></i></a> <a rel="nofollow" class="btn btn-default" href="javascript:app.open('https://hotexamples.com/jp/site/file?hash=0x2d2a8b574c8b8faac66847caef1ffd3d8fc45522ae662bef8c01a58f2a90d5cc&fullName=Bootstrap.php&project=shevron%2FHumanHelp')">ファイルを表示</a> </div> <div class="example-project-info"> <nobr> <span>ファイル:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fshevron%2FHumanHelp%2Fblob%2Fmaster%2FBootstrap.php">Bootstrap.php</a> </nobr> <nobr> <span>プロジェクト:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fshevron%2FHumanHelp">shevron/HumanHelp</a> </nobr> </div> </div> </div> <figure class="highlight"> <div class="example" data-id="28"> <pre class="line-numbers language-php" data-end="34" data-start="20" data-highlight="26"> protected function _initView() { $this->bootstrap('request'); // Initialize view $view = new Zend_View(); $view->doctype('XHTML1_STRICT'); $view->headTitle()->setSeparator(' » '); // Save the base URL $view->baseUrl = $this->getResource('request')->getBaseUrl(); // Add it to the ViewRenderer $viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('ViewRenderer'); $viewRenderer->setView($view); $view->addHelperPath(APPLICATION_PATH . '/views/helpers', 'HumanHelp_View_Helper_'); // Return it, so that it can be stored by the bootstrap return $view; }</pre> </div> </figure> </div> <div class="example-item" id="0x60dc106e1181f01dabebd9d18010e2e4c291f837ebfff7ac7c0acc17ae0a329e-45,,63,"> <div class="bs-example"> <div> <div class="bs-example-title">コード例 #29</div> <div style="position: absolute;right: 15px;top: 10px;" id="rating_29" data-hash="0x60dc106e1181f01dabebd9d18010e2e4c291f837ebfff7ac7c0acc17ae0a329e" data-area="45,,63,"> <div class="rating-amount">0</div> <a title="この例に高評価をつける" href="javascript:app.addRating(1, '29')" class="rating-up btn btn-success" data-id="rating_29"><i class="icon-button icon-thumbs-up"></i></a> <a title="この例に低評価をつける" href="javascript:app.addRating(-1,'29')" class="rating-down btn btn-danger" data-id="rating_29"><i class="icon-button icon-thumbs-down"></i></a> </div> </div> <div style="display:flex;align-items: center;flex-wrap: wrap"> <div style="display: inline-block;margin-right: 10px"> <a class="btn btn-default" title="この例への直リンク" href="https://hotexamples.com/jp/examples/-/Zend_View/headTitle/php-zend_view-headtitle-method-examples.html#0x60dc106e1181f01dabebd9d18010e2e4c291f837ebfff7ac7c0acc17ae0a329e-45,,63,"><i class="icon-button icon-link"></i></a> <a rel="nofollow" class="btn btn-default" href="javascript:app.open('https://hotexamples.com/jp/site/file?hash=0x60dc106e1181f01dabebd9d18010e2e4c291f837ebfff7ac7c0acc17ae0a329e&fullName=Bootstrap.php&project=abdulhadikaryana%2Fkebudayaan')">ファイルを表示</a> </div> <div class="example-project-info"> <nobr> <span>ファイル:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fabdulhadikaryana%2Fkebudayaan%2Fblob%2Fmaster%2FBootstrap.php">Bootstrap.php</a> </nobr> <nobr> <span>プロジェクト:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2Fabdulhadikaryana%2Fkebudayaan">abdulhadikaryana/kebudayaan</a> </nobr> </div> </div> </div> <figure class="highlight"> <div class="example" data-id="29"> <pre class="line-numbers language-php" data-end="63" data-start="46" data-highlight="53"> /** * Fungsi untuk inisialisasi view */ protected function _initView() { // Initialize view $view = new Zend_View(); $view->headTitle('Budpar 2010'); /* ZendX_JQuery::enableView($view); $view->addHelperPath('ZendX/JQuery/View/Helper', 'ZendX_JQuery_View_Helper'); */ $view->addHelperPath(APPLICATION_PATH . '/../library/Budpar/View/Helper/', 'Budpar_View_Helper'); // Add it to the ViewRenderer $viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('ViewRenderer'); $viewRenderer->setView($view); // Return it, so that it can be stored by the bootstrap return $view; }</pre> </div> </figure> </div> <div class="example-item" id="0x1d8b9967af99a377adedb4d8ad4ef634efb23e5172ff0ecf1c6ac3455585c0aa-36,,57,"> <div class="bs-example"> <div> <div class="bs-example-title">コード例 #30</div> <div style="position: absolute;right: 15px;top: 10px;" id="rating_30" data-hash="0x1d8b9967af99a377adedb4d8ad4ef634efb23e5172ff0ecf1c6ac3455585c0aa" data-area="36,,57,"> <div class="rating-amount">0</div> <a title="この例に高評価をつける" href="javascript:app.addRating(1, '30')" class="rating-up btn btn-success" data-id="rating_30"><i class="icon-button icon-thumbs-up"></i></a> <a title="この例に低評価をつける" href="javascript:app.addRating(-1,'30')" class="rating-down btn btn-danger" data-id="rating_30"><i class="icon-button icon-thumbs-down"></i></a> </div> </div> <div style="display:flex;align-items: center;flex-wrap: wrap"> <div style="display: inline-block;margin-right: 10px"> <a class="btn btn-default" title="この例への直リンク" href="https://hotexamples.com/jp/examples/-/Zend_View/headTitle/php-zend_view-headtitle-method-examples.html#0x1d8b9967af99a377adedb4d8ad4ef634efb23e5172ff0ecf1c6ac3455585c0aa-36,,57,"><i class="icon-button icon-link"></i></a> <a rel="nofollow" class="btn btn-default" href="javascript:app.open('https://hotexamples.com/jp/site/file?hash=0x1d8b9967af99a377adedb4d8ad4ef634efb23e5172ff0ecf1c6ac3455585c0aa&fullName=library%2FZ%2FController%2FPlugin%2FAdminPanel%2FSeo.php&project=Konstnantin%2Fzf-app')">ファイルを表示</a> </div> <div class="example-project-info"> <nobr> <span>ファイル:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2FKonstnantin%2Fzf-app%2Fblob%2Fmaster%2Flibrary%2FZ%2FController%2FPlugin%2FAdminPanel%2FSeo.php">Seo.php</a> </nobr> <nobr> <span>プロジェクト:</span> <a target="_blank" rel="nofollow" href="https://hotexamples.com/jp/site/redirect?url=https%3A%2F%2Fgithub.com%2FKonstnantin%2Fzf-app">Konstnantin/zf-app</a> </nobr> </div> </div> </div> <figure class="highlight"> <div class="example" data-id="30"> <pre class="line-numbers language-php" data-end="57" data-start="37" data-highlight="57"> /** * Gets content panel for the Debugbar * * @return string */ public function getPanel() { if (!Z_Acl::getInstance()->isAllowed(Z_Auth::getInstance()->getUser()->getRole(), $this->_z_resourceId)) { return; } $view = new Zend_View(); $modelSeo = new Z_Model_Titles(); $currentItem = $modelSeo->fetchRow(array('uri=?' => $_SERVER['REQUEST_URI'])); if ($currentItem) { $adminUrl = '/admin/z_seo/edit/id/' . $currentItem->id; $adminLinkText = 'Изменить'; } else { $adminUrl = '/admin/z_seo/add/uri/' . base64_encode($_SERVER['REQUEST_URI']); $adminLinkText = 'Добавить'; } return '<h4>Текущие значения:</h4>' . '<strong>URI:</strong> ' . $_SERVER['REQUEST_URI'] . '<br />' . '<strong>Заголовок:</strong> ' . strip_tags($view->headTitle()) . '<br />' . '<strong>Мета:</strong> <br />' . nl2br($view->escape($view->headMeta())) . '<br />' . '<br /><a href="' . $adminUrl . '" target="_blank">' . $adminLinkText . '</a>'; }</pre> </div> </figure> </div> <div id="all-examples"></div> </div> </div> </div> <div class="page-side-banner hidden-xs hidden-sm hidden-md" style="width:300px"> <div id="ezoic-pub-ad-placeholder-131"> <div class="fx" style="width:300px"> <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> <!-- right-sidebar-fx --> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-3697522372581514" data-ad-slot="8968655429" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> </div> </div> </div> </div> </div> <footer class="footer"> <div class="container"> <div class="row"> <div class="col-md-12" style="text-align: center"> <a href="https://hotexamples.com/jp/site/trends?type=php%7Cf">上位の関数</a> | <a href="https://hotexamples.com/jp/site/trends?type=php%7Cc"> 上位のクラス </a> | <a href="https://doc.hotexamples.com/jp/doc/map">ドキュメント</a> | <a href="/site/privacy">個人情報保護方針</a> | <a href="https://cpp.hotexamples.com/direct-sales.html">Advertise with us</a> </div> </div> <div class="row"> <div class="col-md-12" style="text-align: center"> <a href="https://hotexamples.com/jp/">PHP</a> | <a href="https://csharp.hotexamples.com/jp/">C# (CSharp)</a> | <a href="https://java.hotexamples.com/jp/">Java</a> | <a href="https://golang.hotexamples.com/jp/">Golang</a> | <a href="https://cpp.hotexamples.com/jp/">C++ (Cpp)</a> | <a href="https://python.hotexamples.com/jp/">Python</a> | <a href="https://javascript.hotexamples.com/jp/">JavaScript</a> | <a href="https://typescript.hotexamples.com/jp/">TypeScript</a> </div> </div> <div class="row"> <div class="col-md-12" style="text-align: center"> <a href="https://hotexamples.com/examples/-/Zend_View/headTitle/php-zend_view-headtitle-method-examples.html">EN</a> | <a href="https://hotexamples.com/ru/examples/-/Zend_View/headTitle/php-zend_view-headtitle-method-examples.html">RU</a> | <a href="https://hotexamples.com/de/examples/-/Zend_View/headTitle/php-zend_view-headtitle-method-examples.html">DE</a> | <a href="https://hotexamples.com/fr/examples/-/Zend_View/headTitle/php-zend_view-headtitle-method-examples.html">FR</a> | <a href="https://hotexamples.com/es/examples/-/Zend_View/headTitle/php-zend_view-headtitle-method-examples.html">ES</a> | <a href="https://hotexamples.com/pt/examples/-/Zend_View/headTitle/php-zend_view-headtitle-method-examples.html">PT</a> | <a href="https://hotexamples.com/it/examples/-/Zend_View/headTitle/php-zend_view-headtitle-method-examples.html">IT</a> | <a href="https://hotexamples.com/jp/examples/-/Zend_View/headTitle/php-zend_view-headtitle-method-examples.html">JP</a> | <a href="https://hotexamples.com/zh/examples/-/Zend_View/headTitle/php-zend_view-headtitle-method-examples.html">ZH</a> | <a href="https://hotexamples.com/ko/examples/-/Zend_View/headTitle/php-zend_view-headtitle-method-examples.html">KO</a> </div> </div> <div class="row"> <div class="col-md-10 col-md-offset-1"> </div> <div class="col-md-1"> <!--LiveInternet counter--> <script type="text/javascript"><!-- document.write("<a href='//www.liveinternet.ru/click' " + "target=_blank><img src='//counter.yadro.ru/hit?t44.6;r" + escape(document.referrer) + ((typeof (screen) == "undefined") ? "" : ";s" + screen.width + "*" + screen.height + "*" + (screen.colorDepth ? screen.colorDepth : screen.pixelDepth)) + ";u" + escape(document.URL) + ";" + Math.random() + "' alt='' title='LiveInternet' " + "border='0' width='31' height='31'><\/a>"); //--></script><!--/LiveInternet--> </div> </div> </div> </footer> <script src="//ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script src="/assets/30dd86a6f06b64184847037c52c63e07aa3c9a26.js"></script> <script>jQuery(function ($) { jQuery('#search-form').yiiActiveForm([{"id":"searchform-lang","name":"lang","container":".field-searchform-lang","input":"#searchform-lang","enableAjaxValidation":true},{"id":"searchform-search","name":"search","container":".field-searchform-search","input":"#searchform-search","enableAjaxValidation":true,"validate":function (attribute, value, messages, deferred, $form) {yii.validation.required(value, messages, {"message":"Search cannot be blank."});}}], []); });</script></body> </html>