问题
Background:
I am a Laravel developer and now we're shifting to typo3 development. We are using version 9. I am struggling in the middle because of the lack of resources, except official documentation.
Where I stand:
I installed the bootstrap extension which is a package from Benjamin Knott. I successfully designed forms in the front-end and it's working fine. That's it with my progress.
Requirement:
My requirement is to create a front-end signup and login page for users. If the user logged in, I need to show their personal details in the front-end page. For example, his bio.
Questions I need answers
Just assume I have created tables using uid and pid.
How could I access the name arrays in the POST?
Now how/where should I create custom model/controllers?
Is it ok to create my controllers in bootstrap package itself?
typo3conf\ext\bootstrap_package\Classes
(or)
Do I need to create my own extension for user registration?
How could I render views like in Laravel?
For e.g., return view('', Array);
How could I manage routes using pid and uid?
回答1:
I would recommend to read https://docs.typo3.org/m/typo3/book-extbasefluid/master/en-us/. That tutorial guides you through the creation of own extensions with custom controllers. This "book" focues on the developer part and how concepts like MVC, Repositories and Domain Model Design work within TYPO3 context.
https://docs.typo3.org/m/typo3/reference-coreapi/master/en-us/ contains further resources about PHP API and other stuff in general. E.g. plain queries, sending mails, logging, etc.
来源:https://stackoverflow.com/questions/60321060/how-do-i-approach-typo3-in-general-i-mean-basic-crud-operations-like-laravel