Ok, I've found the error. I've found a function, probably came from a tutorial, that causes the redirection:
function __call($action, $arguments){ $this->_redirect('/dl/admin/insertModel'); } Commented out the error disappears. Thanx 2009/7/19 Muhammad Ali <imjob....@live.com> > Hi Taliesin > > I am not sure but I would assume that you are looking at the right code and > "dl" is the basepath. > > I want to point that if you want to access insertModelAction() from your > browser you would need to goto /dl/admin/insert-Model/, if it worked you > also need to change this in your code. > > In brief : can you try visiting following page from your browser. > > */dl/admin/insert-Model/* > > Thanks > > > > *From:* Taliesin <druid.talie...@gmail.com> > *Sent:* Sunday, July 19, 2009 4:15 PM > *To:* Muhammad Ali <imjob....@live.com> > *Cc:* fw-general@lists.zend.com > *Subject:* Re: [fw-general] redirect infinitive loop > > I've doing it, but nothing change :-( > > 2009/7/19 Muhammad Ali <imjob.org@ <imjob....@live.com>live.com> > >> HI Taliesin >> >> comment this following line from your code, which at the very end. >> >> $this->_redirect('/dl/admin/insertModel'); >> >> Thanks >> >> *From:* Taliesin <druid.talie...@gmail.com> >> *Sent:* Sunday, July 19, 2009 9:03 AM >> *To:* fw-general@lists.zend.com >> *Subject:* [fw-general] redirect infinitive loop >> >> Hi to all. >> >> I have the following code: >> >> function insertModelAction(){ >> Zend_Loader::loadClass('DlModel'); >> Zend_Loader::loadClass('DlObject'); >> if(!$this->_isAllow){ >> $this->_redirect('/'); >> } >> >> if(!$this->_request->isPost()){ >> $DlObject = new DlObject(); >> $order = 'name'; >> $obj = $DlObject->fetchAll(null,$order); >> >> $this->view->obj = $obj; >> $this->view->form_title = 'Inserisci bene aziendale'; >> $this->view->step = 1; >> $this->view->title = "Odino::Dl::InsertModel"; >> }else{ >> $dlModel = new DlModel(); >> >> $dlObjectId = $this->_request->getPost('object'); >> $producer = $this->_request->getPost('producer'); >> $model = $this->_request->getPost('model'); >> >> $where = $dlModel->getAdapter()->quoteInto('producer like ?', >> $producer); >> $prod = $dlModel->fetchAll($where); >> if($prod->count() > 0){ >> $where = $dlModel->getAdapter()->quoteInto('model like ?', >> $model); >> $models = $dlModel->fetchAll($where); >> if($models->count() == 0){ >> $data = array('producer' => $producer, >> 'model' => $model, >> 'dl_object_id' => $dlObjectId); >> $dlModel->insert($data); >> } >> }else{ >> $data = array('producer' => $producer, >> 'model' => $model, >> 'dl_object_id' => $dlObjectId); >> $dlModel->insert($data); >> } >> >> $this->_redirect('/dl/admin/insertModel'); >> } >> } >> >> Thi is an action of one controller. If I try to open it (link: <a >> href="/dl/admin/insertModel" title="Inserisci Bene">Inserisci Bene</a>) >> firefox said it goes on an infinite loop of redirect. >> It gives me error even if redircet commands are commented. >> >> I've the problem only with this controller. The init fuction is the same >> of the other controllers that work. >> >> Nothing log by php or apache. >> >> Can you help me? >> >> Thanx >> > >