But in order to ease the development we've already added some most used WordPress functions to Twig. Here is an example of a basic view, using Twig, stored inside the theme views folder: Īnd this view may be returned to the browser like so: Route::get('home', function ($post, $query) WordPress functionsīy default you can call any PHP and WordPress functions using our fn helper. In order to use the Twig engine, all your view files should use the. For more advanced topics regarding Twig, please refer to the official documentation. In this documentation, you'll find the basics operations on how to get started with the Twig engine as well as the Twig extension the Themosis framework has added in order to help you work with WordPress and its core functions within your views. For a more detailed presentation of the Twig engine, please check the official documentation: The Themosis framework now adds support to the Twig template engine.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |