/** * The start action, it shows the "search" view */ public function indexAction() { $searchParams = ['ping.batchId' => 'batchId', 'ping.proxyId' => 'proxyId', 'b.urlId' => 'urlId']; Tag::setDefaults(array('urlId' => $this->request->get('urlId'), 'proxyId' => $this->request->get('proxyId'), 'pingId' => $this->request->get('pingId'), 'batchId' => $this->request->get('batchId'))); $this->view->pings = $this->searchPings($searchParams); $this->view->proxies = Proxy::find(); $this->view->urls = Url::find(); $this->view->batches = Batch::find(); #$this->view->disable(); }
/** * Shows the view to create a "new" product */ public function newAction() { $reflection = new FormReflectionManager($this->flash); $this->view->name = $reflection->get('name'); $this->view->urls = Url::find() ?: array(); $this->view->proxies = Proxy::find() ?: array(); $this->view->reflected_proxyId = explode(',', $reflection->get('proxyId')); $this->view->reflected_address = explode(',', $reflection->get('address')); #$this->view->disable(); }
/** * The start action, it shows the "search" view */ public function indexAction() { $proxies = Proxy::find(); $this->view->proxies = $proxies; #$this->view->disable(); }