I'm writing a module for a client; so far it creates a new content type (a test, which consists of a bunch of questions) and then stores the product ids that will allow access to the test (which seems like a problem in the future, as currently). I'm now working on the customer-facing views (the customer comes to the site, buys a subscription, and is able to take certain tests), and I'm trying to figure out the best place to make these test visible-- I'd like to display a list on the member / index view. Is the "right" way to do this just modifying the default/views/blocks/member-main-resources? Is it possible to do this in my template instead? Will it cause problems in the future to modify a file in the default module?
Sorry to post so soon, but in reading the contoller I found this: Code: $this->view->assign('left_member_links', $this->getDi()-> hook->call(Am_Event::GET_LEFT_MEMBER_LINKS, array('user' => $this->user)) ->getReturn()); I assume that I should be looking at the Am_Even Stuff for this kind of thing?
Sorry to ask such basic questions... I see now that you can just add an event handler in the bootstrap.php public function onGetLeftMemberLinks(Am_Event $event) { $event->addReturn('JAH!!!', 'testing_links'); }