.. include:: /Includes.rst.txt .. index:: Extbase; Tea Tutorial; Tea Tutorial Tea .. _extbase_tutorial_tea: ================= Tea in a nutshell ================= The example extension :t3ext:`tea` was created as an example of best practises on automatic code checks. .. hint:: If you want to learn more about automatic code checks see the :doc:`documentation of tea ` and the chapter on :ref:`Testing ` in this manual. In this manual, however we will ignore the testing and just explain how this example extension works. The extension demonstrates basic functionality and is very well tested. .. attention:: The example extension tea should not be used as a kickstarter or template for your own extension. It is an example to be studied and copied from. Steps in this tutorial: .. rst-class:: bignums-xxl #. :ref:`Extension configuration and installation ` Create the files needed to have a minimal running extension and install it. #. :ref:`Directory structure ` Have a look at the directory structure of the example extension and learn which files should go where. #. :ref:`The model ` We define a database schema and make it visible to TYPO3. Then we create a PHP class as a model of the real-life tea flavour. #. :ref:`The Repository ` The repository helps us to fetch tea objects from the database. #. :ref:`The controller ` The controller controls the flow of data between the view and the data repository containing the model. .. note:: This tutorial is work in progress. As we want to prevent epic pull requests, we will create it step by step. Stay tuned. .. toctree:: :titlesonly: ExtensionConfiguration DirectoryStructure Model Repository Controller