Hello, I just bought amember pro, I'm trying to create some custom php with mysql db access in the backend and using the admin panel for the front-end. Is there any documentation or a plugin template for v4? Thanks?
here you go application/default/plugins/misc/test.php PHP: <?phpclass Am_Plugin_Test extends Am_Plugin{ function init() { $this->getDi()->db->selectRow("SELECT * FROM ?_user LIMIT 1"); // look at DbSimple docs } function onInvoiceStarted(Am_Event $event) // catches Am_Event::INVOICE_STARTED { $invoice = $event->getInvoice(); // Invoice object $user = $event->getUser(); // User object }}
Here is the full code for a custom redirect after paying plugin I made for V4 which you might find useful http://www.amember.com/forum/threads/custom-thankyou-page-redirect-solution.14397/
Thanks for the responses! I feel dumb for not looking at the api samples before posting, sorry about that. That's a really good manual, thanks customcodegeek!