public function pending() { global $db; // make sure we have what we need. if (empty($this->params['id'])) { expQueue::flashAndFlow('error', 'Your subscriber ID was not supplied.'); } // find the subscriber and their pending subscriptions $ealerts = expeAlerts::getPendingBySubscriber($this->params['id']); $subscriber = new subscribers($this->params['id']); // render the template assign_to_template(array('subscriber' => $subscriber, 'ealerts' => $ealerts)); }