flexy:nameuses="variable" (Previous) (Next) HTML_Template_IT

View this page in Last updated: Sun, 05 Oct 2008
English | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Plain HTML

<FLEXY:TOJAVASCRIPT JSVAR="PHPVAR"> ...

<FLEXY:TOJAVASCRIPT JSVAR="PHPVAR"> ... -- データを PHP から Javascript に簡単に渡せるようにする

説明

javascript のコードのせいで "何じゃこりゃ?" というようなことが起こり、 まるで flexy タグが壊れてしまったように見えることがあります。それを防ぐため、 Flexy は、script を含むコンテンツを扱う際にパーサを意図的に OFF にします (script タグ内での PHP の詳細については、設定オプションを参照ください)。

その結果、javascript コードブロックの中では flexy タグを使用することができなくなります。 flexy:tojavascript タグは、この問題を解決するためのもので、 javascript のテストをアプリケーションとは別にできるようになります。 また、きれいにコーディングできるようになります (つまり、わかりやすいコードを書けるようになります)。

この機能は PEAR の HTML_Javascript ライブラリに依存します。

flexy:nameuses="variable" (Previous) (Next) HTML_Template_IT

Download Documentation Last updated: Sun, 05 Oct 2008
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
Note by: nomatter@php.org
Are you people serious? This is one of the worst pieces of documentation I've seen, to date.

What are the attributes for this flexy tag? How do you populate a javascript variable with a PHP one? What scope issues exist?

Can somebody elaborate how this actually works? The examples given are useless.