Some Notes about Phrase System from 4.5.0
- Deprecating function: Phpfox::getPhrase. On version 4.5.0, you can use this function, but it will be removed completely from 4.6.0.
- Have to define phrase before use.
- Define and use:
How to to define:
Add file phrase.json on root path of your apps.
...
It will show: Spanish Phrase text (If default language of users is es)
....
2. How to use
General:
Code Block | ||||
---|---|---|---|---|
| ||||
<?php _p('var_name', $attr) |
...
With $arrt is variables of phrase.
3. Use Phrase with variable
The variables can be included in a phrase. Example:
...