如何学习TYPO3扩展编程? [英] How to learn TYPO3 extension programming?

查看:24
本文介绍了如何学习TYPO3扩展编程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很难在官方 TYPO3 文档中找到我需要的信息.例如 \TYPO3\CMS\Core\Utility\GeneralUtility\TYPO3\CMS\Backend\Utility\BackendUtility 提供了很多有用的功能,但是在 TYPO3 官方文档中这些功能没有很好地记录,或者我似乎找不到它们.我在哪里可以了解这些功能?

我也不太明白,怎么调用这些函数.那些是 extbase 函数还是 TYPO3-API 函数?

预先感谢我是初学者.

解决方案

好的,到目前为止,TYPO3 社区已经组织了精美的文档.但是,让我来帮助你更好地去吧!我假设您对 PHP 和 MVC 框架有很好的经验;)

从头开始,Extbase 参考文档用简单的话解释了扩展的结构.请参阅

现在,您将看到关于类、成员函数、属性等的每一条信息.

5.其他

extension_builder 为您提供了一个强大的扩展程序,它为您提供所有基本功能,例如创建、更新、删除记录以及列表和详细信息视图.

高级存储库和功能.

如果您需要一个复杂的结果集,或者您需要一个来自数据库记录的过滤器,那么您可以创建一个自定义存储库函数来与数据库进行交互.这是一个很好的文档,描述了仓库的强大功能,以及如何添加自己的仓库以及使用单个数据库查询的仓库功能!

看,

深入文档是唯一的关键!我尝试为您收集快速入门的文档,希望对您有所帮助.

TYPO3 社区欢迎编辑这篇文章;)

I am having a hard time to find in the official TYPO3 documentation information that i need. For example \TYPO3\CMS\Core\Utility\GeneralUtility and \TYPO3\CMS\Backend\Utility\BackendUtility provide many useful functions, but in the official TYPO3 documentation those functions are not documented very well or I can not seem to find them. Where could I learn about these functions?

I also did not quite understand, how to call these functions. Are those extbase functions or TYPO3-API functions?

Thanks in advance i am a beginner.

解决方案

Okay, TYPO3 community has beautifully organized documentation so far. But, let me help you to better go! I assume, you have pretty good experience with PHP and MVC framework ;)

From the scratch, Extbase reference documentation explains structure of the extension with a simple words. see here. Initially, how you can register frontend plugin and configure plugin manually.

1. Blog example

You will find detailed explained example of blog extension. It has basic required feature for blog. It's good to get started!

URL: https://docs.typo3.org/m/typo3/book-extbasefluid/master/en-us/3-BlogExample/Index.html

It has explained extension functionality and Domain of the extension. Also, you will find directory structure for the TYPO3 extension which is pretty same for all extensions.

Key point for Extension

  • Name your TYPO3 extension: Find rule for naming here.

  • folder structure and configuration files: here is detailed documentation.

You can read our nicely concluded blog at Official site.

2. Example extension: store inventory

Same as Blog example, You have another example extension available at official documentation. Check it out here

Nice thing is, Both demo extensions have code explained! How Domain modeling works, How Repository works, etc... That is super osm, isn't it?

3. Create with Ext:extension_builder

Also, you can go with extension called extension_builder that will provide all the required setup for the extension.

You can download from...

And, it has its own documentation for guideline. Check it out here and official community documentation here.

4. Extbase API documentation

This is the most useful part of the Extbase developer. I love it the most! As you have a question where you facing an issue with finding the Utility function which is provided by the TYPO3 core. You will find this easily and also you will have detailed information about use of functions and classes. Cool No?

Here you go!

For example

\TYPO3\CMS\Core\Utility\GeneralUtility, go to the document and search your class or method and select it.

Now, you will see each and every piece of information about class, member function, attributes, etc.

5. Other

extension_builder gives you a robust extension that gives you all the basic functionality like create, update, delete records, and listing and detail view for the same.

Advanced Repository and functions.

If you need a complex result set or you will need a filter from the database record then you can create a custom repository function to interact with a database. Here is nice documentation that describes powerful functions for a repository and also how you can add your own repository as well as repository functions using Individual Database Queries!

see,

Dive into documentation is the only key! I tried to collect quickly started documentation for you, hope this will help.

TYPO3 community welcome to edit this post ;)

这篇关于如何学习TYPO3扩展编程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆