[fw-general] Zend_Controller_Router_Route: Translating controller/action in URL's
Hi everyone: I'm working now with this URL pattern: http://dominio.com/lang/controller/action For example: http://dominio.com/es/servicios/habitaciones http://dominio.com/en/servicios/habitaciones http://dominio.com/fr/servicios/habitaciones http://dominio.com/de/servicios/habitaciones That is, the Controller and the Action are always in the same language. The language in ISO avoids duplication of URL's, as it is penalized by Google. The fact is that now I want to restructure the URLs of my projects for the Controller and the Action to be translated. That is, get this type of URL's: http://dominio.com/es/servicios/habitaciones http://dominio.com/en/services/rooms http://dominio.com/fr/services/chambres http://dominio.com/de/service/zimmer Although a better option would be the language in the domain, thus: http://es.dominio.com/servicios/habitaciones http://en.dominio.com/services/rooms http://fr.dominio.com/services/chambres http://de.dominio.com/service/zimmer ... but I leave it for later: That is, the idea would be to translate the names of the Controller and the Action to enhance the SEO in different languages. I don't have very clear the best way to do so. Nor can't find examples for this. Any idea would be appreciatted -- View this message in context: http://www.nabble.com/Zend_Controller_Router_Route%3A-Translating-controller-action-in-URL%27s-tp21165945p21165945.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] hidden form value null problem
Aniketto wrote: > > In below code detailAction() is called using _forward() from some other > action wiith id parameter set. delivery info id field is a hidden field. > My prblem is in updateAction the delivery_info_id field > is null so all succeeding code fails. How to retain its value? > > public function detailAction() > { > $mailDelivery = new MailDelivery(); > > $criteria = array(); > > $this->getFrontController()->setParam('noViewRenderer', TRUE); > $view = $this->getView(); > $form = $this->getForm('detail'); > $form->setAction('update'); > $view->form = $form; > > $request = $this->getRequest(); > $criteria['id'] = $request->getParam('id'); > $mailDataArray = $mailDelivery->findDetailMailData($criteria); > $view->detail = $mailDataArray; > > //hidden delivery info id field > $form->delivery_info_id->setValue($criteria['id'] ); > $res = $this->getResponse(); > $res->appendBody($view->render('maillist/detail.phtml')); > > } > > public function updateAction() > { > if ($_SERVER['REQUEST_METHOD'] != 'POST') { > return; > } > > $form = $this->getForm('detail'); > $this->view->form = $form; > $view->form = $form; > > $criteria = array(); > $criteria['id'] = $form->delivery_info_id->getValue(); > $criteria['browse_limit_date'] = $form->browse_limit_date->getValue(); > $mailDelivery = new MailDelivery(); > $rowset = $mailDelivery->find($criteria['id']); > $row = $rowset->current(); > $row->browse_limit_date = $criteria['browse_limit_date']; > $row->save(); > } > > In updateAction() I get the below errors Debug Strict (PHP 5): /mobile_mail/application/admin/controllers/MaillistController.php line 304 - Creating default object from empty value Debug Strict (PHP 5): /mobile_mail/application/admin/controllers/MaillistController.php line 312 - Creating default object from empty value Debug Error: /mobile_mail/application/admin/controllers/MaillistController.php line 313 - Call to undefined method stdClass::save() -- View this message in context: http://www.nabble.com/hidden-form-value-null-problem-tp21155700p21156981.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Zend_Dojo Problem
Am still in need of assistance passing layout variables to view scripts. Sounds trivial but dont know how ;) - dee -- View this message in context: http://www.nabble.com/Zend_Dojo-Problem-tp21136696p21156971.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Zend_Dojo Problem
Any help out there? - dee -- View this message in context: http://www.nabble.com/Zend_Dojo-Problem-tp21136696p21156968.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] hidden form value null problem
$criteria = array(); $this->getFrontController()->setParam('noViewRenderer', TRUE); $view = $this->getView(); $form = $this->getForm('detail'); $form->setAction('update'); $view->form = $form; $request = $this->getRequest(); $criteria['id'] = $request->getParam('id'); // You didnt supply $criteria['id'] as an argument into findDetailMailData(). Instead you supplied the whole Array. Change this line to $mailDataArray = $mailDelivery->findDetailMailData($criteria['id') instead. $mailDataArray = $mailDelivery->findDetailMailData($criteria); $view->detail = $mailDataArray; Hope this helps :) - dee -- View this message in context: http://www.nabble.com/hidden-form-value-null-problem-tp21155700p21156967.html Sent from the Zend Framework mailing list archive at Nabble.com.
RE: [fw-general] Zend Framework 1.7.2 is now available!
Hi Graham, It's definitely an error. Extras documentation was built, but wasn't included into packages because of wrong path name in the script (1.7.1 packages contain documentation sources). We will decide soon what to do with extra docs - prepare patched packages or make them available for separate downloading. Now they are available within online documentation: http://framework.zend.com/manual/en/zendx.console.process.unix.html http://framework.zend.com/manual/en/zendx.jquery.html With best regards, Alexander Veremyev. > -Original Message- > From: Graham Anderson [mailto:graham.ander...@gmail.com] > Sent: Wednesday, December 24, 2008 2:06 PM > To: fw-general@lists.zend.com > Subject: Re: [fw-general] Zend Framework 1.7.2 is now available! > > On Tuesday 23 December 2008 20:45:12 Wil Sinclair wrote: > > Hi all, > > > > It is my pleasure to announce the release of Zend Framework 1.7.1! You > > can download this new mini release from the ZF download site: > > > > http://framework.zend.com/download/latest/ > > > > A list of all issues resolved in this release can be found at: > > > > http://framework.zend.com/issues/secure/views/IssueNavigator.jspa?reques > > tId=10923 > > > > We'd like to once again thank our generous Zend Framework contributors > > for all the effort they have put in to this release and the project as a > > whole. Enjoy! > > > > ,Wil > > I'm not sure if this was intentional or an error. > > The en manual for ZendX was bundled with 1.7.1 in > extras/documentation/manual/en but is *not* is not in the release tarball > for > 1.7.2 > > Graham
[fw-general] follow location with Zend_Http?
Hello, Is there a possibility to perform a physical redirect to a page instead of getting the response? I want to post data to a remote server but I don't want a response, I just want to go to that website! The problem is that I don't want to use a form as I want to perform some actions after a user clicks the submit button. A quick search on the internet learns me that a lot of people just output a form and then quickly send it with javascript, but this doesn't look right to me. I was hoping that Curl's FOLLOW_LOCATION could help me out, but that also didn't seem to do the trick. Is there any way Zend_Http can help me out? Or an other way? Thanks and a merry Christmas in advance, Dimitri
Re: [fw-general] Minimizing Zend Framework
According to its author, it just looks for dependencies and builds a package Julien.P 2008/12/24 MrMastermind > > Thanks Julien for the link. > > Is that doing something special? Or is it just creating a package of the > selected files/folders? > > Marco > > > > doctorrock wrote: > > > > You should go on the unofficial > > http://epic.codeutopia.net/pack/library/1.7 > > > > Julien.P > > > > 2008/12/24 MrMastermind > > > >> > >> Hi, > >> > >> It might not be wise to do, but is it possible to install only part of > >> the > >> library, like the Zend_Db and Zend_Amf if you only need those? Maybe > some > >> generic stuff is needed as well. > >> But since we are doing a lot of Flash only projects using AMF, I thought > >> we > >> could reduce the copying of the library by taking out unneeded files and > >> folders. > >> > >> So, would it be possible? Has anyone done it? And how would one approach > >> this? > >> > >> Thanks, > >> Marco > >> -- > >> View this message in context: > >> > http://www.nabble.com/Minimizing-Zend-Framework-tp21156476p21156476.html > >> Sent from the Zend Framework mailing list archive at Nabble.com. > >> > >> > > > > > > -- > View this message in context: > http://www.nabble.com/Minimizing-Zend-Framework-tp21156476p21156813.html > Sent from the Zend Framework mailing list archive at Nabble.com. > >
Re: [fw-general] Minimizing Zend Framework
Thanks Julien for the link. Is that doing something special? Or is it just creating a package of the selected files/folders? Marco doctorrock wrote: > > You should go on the unofficial > http://epic.codeutopia.net/pack/library/1.7 > > Julien.P > > 2008/12/24 MrMastermind > >> >> Hi, >> >> It might not be wise to do, but is it possible to install only part of >> the >> library, like the Zend_Db and Zend_Amf if you only need those? Maybe some >> generic stuff is needed as well. >> But since we are doing a lot of Flash only projects using AMF, I thought >> we >> could reduce the copying of the library by taking out unneeded files and >> folders. >> >> So, would it be possible? Has anyone done it? And how would one approach >> this? >> >> Thanks, >> Marco >> -- >> View this message in context: >> http://www.nabble.com/Minimizing-Zend-Framework-tp21156476p21156476.html >> Sent from the Zend Framework mailing list archive at Nabble.com. >> >> > > -- View this message in context: http://www.nabble.com/Minimizing-Zend-Framework-tp21156476p21156813.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Zend Framework 1.7.2 is now available!
On Tuesday 23 December 2008 20:45:12 Wil Sinclair wrote: > Hi all, > > It is my pleasure to announce the release of Zend Framework 1.7.1! You > can download this new mini release from the ZF download site: > > http://framework.zend.com/download/latest/ > > A list of all issues resolved in this release can be found at: > > http://framework.zend.com/issues/secure/views/IssueNavigator.jspa?reques > tId=10923 > > We'd like to once again thank our generous Zend Framework contributors > for all the effort they have put in to this release and the project as a > whole. Enjoy! > > ,Wil I'm not sure if this was intentional or an error. The en manual for ZendX was bundled with 1.7.1 in extras/documentation/manual/en but is *not* is not in the release tarball for 1.7.2 Graham
Re: [fw-general] Minimizing Zend Framework
Look into the manual... http://framework.zend.com/manual/en/requirements.dependencies.html Greetings Thomas Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com - Original Message - From: "MrMastermind" To: Sent: Wednesday, December 24, 2008 9:01 AM Subject: [fw-general] Minimizing Zend Framework Hi, It might not be wise to do, but is it possible to install only part of the library, like the Zend_Db and Zend_Amf if you only need those? Maybe some generic stuff is needed as well. But since we are doing a lot of Flash only projects using AMF, I thought we could reduce the copying of the library by taking out unneeded files and folders. So, would it be possible? Has anyone done it? And how would one approach this? Thanks, Marco -- View this message in context: http://www.nabble.com/Minimizing-Zend-Framework-tp21156476p21156476.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Automatically quoted text in QuickStart guestbook
> Our messaging has always been to use scripts. Hm... Ok, that must have escaped me, but it didn't pose too much of an obstacle for me after figuring the error-messages out. > Most likely, you've got magic_quotes_gpc enabled on your server. You can > verify this by checking it in a script: *Head->Table* Ok, I really feel stupid now. I never would have thought that this flag would be set, so it never occured to me to check it. Thanks for reminding me of magic_quotes_gpc which was, indeed, turned "on". And thanks for giving me a hint for possible work-arounds. Now I can start writing real applications. :) Happy Holidays, Jan -- View this message in context: http://www.nabble.com/Automatically-quoted-text-in-QuickStart-guestbook-tp21149166p21156605.html Sent from the Zend Framework mailing list archive at Nabble.com.
[fw-general] Multiple operations in single action
Hi all, I am new be in zend frameworl, so I need your help. In my application I display a student list on a list.phtml form. If user selects radio button in front of student name and presses 'Detail' button, the request is forwarded(_forward) to detailAction(). While forwarding I pass student_id as a parameter. In detailAction detail.phtml displays student details and stores student_id is as a hidden parameter. In detail action I also set action as updateAction(). Now in detail.phtml form student Birthdate is editable text box. So if user presses update button birthdate should be updated. On update button update action gets called but as I do getform, new form is created and I can not retrieve the hidden field student_id field. So I cant do the update. can anybody suggest how to solve this problem. In updateAction() how can I get the form values which were stored in detailAction(). In short I am trying to do two things in same action. If control is reached by _forward() use parameter in request to acquire database data and display . Else if control is reached by pressing update button update birthday value and display form. Is it possible to do this? -- View this message in context: http://www.nabble.com/Multiple-operations-in-single-action-tp21156604p21156604.html Sent from the Zend Framework mailing list archive at Nabble.com.
Re: [fw-general] Minimizing Zend Framework
You should go on the unofficial http://epic.codeutopia.net/pack/library/1.7 Julien.P 2008/12/24 MrMastermind > > Hi, > > It might not be wise to do, but is it possible to install only part of the > library, like the Zend_Db and Zend_Amf if you only need those? Maybe some > generic stuff is needed as well. > But since we are doing a lot of Flash only projects using AMF, I thought we > could reduce the copying of the library by taking out unneeded files and > folders. > > So, would it be possible? Has anyone done it? And how would one approach > this? > > Thanks, > Marco > -- > View this message in context: > http://www.nabble.com/Minimizing-Zend-Framework-tp21156476p21156476.html > Sent from the Zend Framework mailing list archive at Nabble.com. > >
[fw-general] Minimizing Zend Framework
Hi, It might not be wise to do, but is it possible to install only part of the library, like the Zend_Db and Zend_Amf if you only need those? Maybe some generic stuff is needed as well. But since we are doing a lot of Flash only projects using AMF, I thought we could reduce the copying of the library by taking out unneeded files and folders. So, would it be possible? Has anyone done it? And how would one approach this? Thanks, Marco -- View this message in context: http://www.nabble.com/Minimizing-Zend-Framework-tp21156476p21156476.html Sent from the Zend Framework mailing list archive at Nabble.com.