Hooks Training Class

Wish to see a specific feature/change in future releases? Feel free to post it here, and if it gets enough "likes", we'd definitely include it in future releases!
Post Reply
rpierce
Veteran Member
Posts: 255
Joined: 2018-11-26 13:55
Location: Washington State

Hooks Training Class

Post by rpierce » 2024-02-09 00:03

It would be nice if Ahmed or one of the Superusers could put together a course that teaches us non-coder types the basics of writing useable hooks. I've had to borrow from what I can glean from this forum. Understanding how the hooks work would be nice for me. I'd gladly pay for the course.

Ray

User avatar
D Oliveira
AppGini Super Hero
AppGini Super Hero
Posts: 345
Joined: 2018-03-04 09:30
Location: Orlando, FL

Re: Hooks Training Class

Post by D Oliveira » 2024-02-13 16:49

There's no real mistery, hooks files dont get replaced on appgini auto gen and you can use php code to intercept events like before/after insertion/save to manipulate sql statements and create/update/delete database values. I'd suggest using chat gpt and code samples from this forum to make sense of the basics and after you master that you can move onto ajax calls, sanitizing parameters and using html+javascript to call back end php files.

There's no way a "no-coder" will write efficient, secure, user friendly code that performs well without a solid understanding of the underlying architecture and its implications, so ultimately there will be the need for you to chase information and learn independently without spoon fed solutions which is unfortunately what we all instinctively seek as humans.

A great starting point is here https://bigprof.com/appgini/help/advanced-topics

You can then look at the amazing js lib Jan has created and how to use it, and after that you will mostly edit tablename-dv.js files and a combinations of hooks + custom php files. I suggest not editing auto generated templates and just use javascript to mutate the html elements as needed.

The key point here is to identify repeated patterns and how to use them, that will ultimately make you a powerful developer within the appgini "framework"

Post Reply