Re: htacess to demo folder with new cakephp3 app
This working RewriteEngine on RewriteRule^demo$demo/[L] RewriteRule^demo/(.*) demo/$1[L] RewriteRule^$ app/webroot/[L] RewriteRule(.*) app/webroot/$1 [L] Thanks -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: htacess to demo folder with new cakephp3 app
also remember that there are 2 htaccess to update... Le 3 sept. 2015 22:03, "Anthony GRASSIOT" a écrit : > No, I don't think you do need to update your 2.x htaccess, I have several > application with this exact setup on share hosting but, you might have a > different case... > Le 3 sept. 2015 21:54, "Salines" a écrit : > >> I need to update first .htacess ind the cakephp 2 to skip rewrite rules >> if user type mydomainname.com/demo/, not to change RewriteBase >> >> >>RewriteEngine on >>RewriteRule^$ app/webroot/[L] >>RewriteRule(.*) app/webroot/$1 [L] >> >> >> current (cakephp 2) app >> >> .htacess >> index.php >> /app >> /lib >> /plugins >> /vendors >> /demo for new cakephp 3 app >> >> -- >> Like Us on FaceBook https://www.facebook.com/CakePHP >> Find us on Twitter http://twitter.com/CakePHP >> >> --- >> You received this message because you are subscribed to the Google Groups >> "CakePHP" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to cake-php+unsubscr...@googlegroups.com. >> To post to this group, send email to cake-php@googlegroups.com. >> Visit this group at http://groups.google.com/group/cake-php. >> For more options, visit https://groups.google.com/d/optout. >> > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: htacess to demo folder with new cakephp3 app
No, I don't think you do need to update your 2.x htaccess, I have several application with this exact setup on share hosting but, you might have a different case... Le 3 sept. 2015 21:54, "Salines" a écrit : > I need to update first .htacess ind the cakephp 2 to skip rewrite rules if > user type mydomainname.com/demo/, not to change RewriteBase > > >RewriteEngine on >RewriteRule^$ app/webroot/[L] >RewriteRule(.*) app/webroot/$1 [L] > > > current (cakephp 2) app > > .htacess > index.php > /app > /lib > /plugins > /vendors > /demo for new cakephp 3 app > > -- > Like Us on FaceBook https://www.facebook.com/CakePHP > Find us on Twitter http://twitter.com/CakePHP > > --- > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to cake-php+unsubscr...@googlegroups.com. > To post to this group, send email to cake-php@googlegroups.com. > Visit this group at http://groups.google.com/group/cake-php. > For more options, visit https://groups.google.com/d/optout. > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: htacess to demo folder with new cakephp3 app
I need to update first .htacess ind the cakephp 2 to skip rewrite rules if user type mydomainname.com/demo/, not to change RewriteBase RewriteEngine on RewriteRule^$ app/webroot/[L] RewriteRule(.*) app/webroot/$1 [L] current (cakephp 2) app .htacess index.php /app /lib /plugins /vendors /demo for new cakephp 3 app -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: htacess to demo folder with new cakephp3 app
RewriteBase /demo/ Le 3 sept. 2015 21:26, "Salines" a écrit : > Hello, > can somebody help me, > > I have a CakePHP 2.x web application located on the server in the > public_html folder. Now I need to upgrade the app to CakePHP version 3, > including a new design, but the client requires installing the demo > applications on the live server, in addition to current. > > I create demo folder in the public_html folder and upload the new > application. Now I need to provide access to domainname.com/demo and > access the new application. At the same time the old applications should > work without problems. > > I know that I need to put something in htacces file, but I do not know > what. > > Thank you. > > -- > Like Us on FaceBook https://www.facebook.com/CakePHP > Find us on Twitter http://twitter.com/CakePHP > > --- > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to cake-php+unsubscr...@googlegroups.com. > To post to this group, send email to cake-php@googlegroups.com. > Visit this group at http://groups.google.com/group/cake-php. > For more options, visit https://groups.google.com/d/optout. > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
htacess to demo folder with new cakephp3 app
Hello, can somebody help me, I have a CakePHP 2.x web application located on the server in the public_html folder. Now I need to upgrade the app to CakePHP version 3, including a new design, but the client requires installing the demo applications on the live server, in addition to current. I create demo folder in the public_html folder and upload the new application. Now I need to provide access to domainname.com/demo and access the new application. At the same time the old applications should work without problems. I know that I need to put something in htacces file, but I do not know what. Thank you. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: how to debug on a "add" function of controller
Thanks Diego, *debug($this->request) OR die; *works fine El dijous, 3 setembre de 2015 9:42:43 UTC+2, Diego Mendonça va escriure: > > Try to make like this: > > *debug($this->request) OR die;* > >1. Take a look if inside the $this->request there is a node 'data' >with your data is been sent >2. OR die stops your code after the debug so you can verify if the >code is triggered easily >3. Is your request in fact a POST >4. Is your data been added to database? >5. Is your code in your controller? > > > On Wed, Sep 2, 2015 at 11:02 AM Raul Magdalena Catala > wrote: > >> hello, >> >> i've inserted a debug($this->request->data) into the add function of my >> controller but nothing is rendered when i've add some data >> code looks like: >> >> public function add() >> { >> $magazine = $this->Magazines->newEntity(); >> if ($this->request->is('post')) { >> *debug($this->request->data);* >> $magazine = $this->Magazines->patchEntity($magazine, >> $this->request->data); >> if ($this->Magazines->save($magazine)) { >> $this->Flash->success(__('The magazine has been saved.')); >> return $this->redirect(['action' => 'index']); >> } else { >> $this->Flash->error(__('The magazine could not be saved. >> Please, try again.')); >> } >> } >> $periodicity = $this->Magazines->Periodicity->find('list', >> ['limit' => 200]); >> $categories = $this->Magazines->Categories->find('list', ['limit' >> => 200]); >> $this->set(compact('magazine', 'periodicity', 'categories')); >> $this->set('_serialize', ['magazine']); >> } >> >> what i'm doing wrong? >> >> thanks in advance >> >> -- >> Like Us on FaceBook https://www.facebook.com/CakePHP >> Find us on Twitter http://twitter.com/CakePHP >> >> --- >> You received this message because you are subscribed to the Google Groups >> "CakePHP" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to cake-php+u...@googlegroups.com . >> To post to this group, send email to cake...@googlegroups.com >> . >> Visit this group at http://groups.google.com/group/cake-php. >> For more options, visit https://groups.google.com/d/optout. >> > -- > -- > Diego Mendonça > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: how to debug on a "add" function of controller
Try to make like this: *debug($this->request) OR die;* 1. Take a look if inside the $this->request there is a node 'data' with your data is been sent 2. OR die stops your code after the debug so you can verify if the code is triggered easily 3. Is your request in fact a POST 4. Is your data been added to database? 5. Is your code in your controller? On Wed, Sep 2, 2015 at 11:02 AM Raul Magdalena Catala < raulmagdal...@gmail.com> wrote: > hello, > > i've inserted a debug($this->request->data) into the add function of my > controller but nothing is rendered when i've add some data > code looks like: > > public function add() > { > $magazine = $this->Magazines->newEntity(); > if ($this->request->is('post')) { > *debug($this->request->data);* > $magazine = $this->Magazines->patchEntity($magazine, > $this->request->data); > if ($this->Magazines->save($magazine)) { > $this->Flash->success(__('The magazine has been saved.')); > return $this->redirect(['action' => 'index']); > } else { > $this->Flash->error(__('The magazine could not be saved. > Please, try again.')); > } > } > $periodicity = $this->Magazines->Periodicity->find('list', > ['limit' => 200]); > $categories = $this->Magazines->Categories->find('list', ['limit' > => 200]); > $this->set(compact('magazine', 'periodicity', 'categories')); > $this->set('_serialize', ['magazine']); > } > > what i'm doing wrong? > > thanks in advance > > -- > Like Us on FaceBook https://www.facebook.com/CakePHP > Find us on Twitter http://twitter.com/CakePHP > > --- > You received this message because you are subscribed to the Google Groups > "CakePHP" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to cake-php+unsubscr...@googlegroups.com. > To post to this group, send email to cake-php@googlegroups.com. > Visit this group at http://groups.google.com/group/cake-php. > For more options, visit https://groups.google.com/d/optout. > -- -- Diego Mendonça -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.