How to start Cakephp3.x

Asked

Viewed 22 times

1

I’m getting agr with the cakephp, I followed the bookmarker tutorial, but is there any material with a simple didactic, explaining the concepts, which are used in cake? I see youtuber using the Authcomponent, but they don’t say what it’s for, what are the main methods/functions/actions, what is the difference between find pro get, what is the Entity and the Table present in the Model folder and so on... or just reading and rereading the official documentation? Because it uses a lot of jargon, and for those who are starting it is even more difficult.

From now on, thank you!

1 answer

1


The best material is the Cakephp manual. This material is quite complete and very explanatory Something that complicates it is that when you go deeper into the Framework much of this documentation is only available in English.

I advise to initially use the tutorials of Cookbook

Authcomponent - It’s a cakephp component for session management and user permissions, providing login functions, user profile access control. Conytrola identification and authorisation.

find pro get, what is Entity and Table

Entity and table are the components of the model In the table you define methods and properties for the table model, data validation and object creation. In Entity you model how the entity of the table will be treated itself for example we can define in Entity which properties of the object will be sent

get e find depends on the class definition but here I understood that it refers to the methods provided by cake ORM for bank search. get does the ID-only search. ie always returns a template-specific object. find allows the implementation of a search method, and can search for other properties of the object other than id.

I hope I’ve helped

Browser other questions tagged

You are not signed in. Login or sign up in order to post.