SEO question
I have in my layout: echo $this->Html->meta('keywords', $keywords); echo $this->Html->meta('description',$description); Where $keywords and $description get pulled from my settings table so admin can edit those as they wish. Now I have content pages which allow admin to add keywords / description specific to that page and need a way to override the original set values for each / if not fall back to original values from SiteSettings and cannot seem to figure out the best way to go about this. Ideas? Suggestion? Thanks, Dave -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: hasMany with group by
Thanks, but i cant use Containable, i am doing this inside another behavior... i just need to know if it´s possible the hasMany have a group by Em terça-feira, 12 de março de 2013 16h33min46s UTC-3, André Luis escreveu: > > Hi people, I have model User and model Image, and the model User hasMany > Image, so when i use $this->User->find('all'), it comes with the respective > related images, but in the table of model Image, I also have the field > "category", wich is a string... My doubt is, is there anyway to group the > results of the related model "Image" by the field "category" at the related > model "Image" ?? > > 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Webhooks and EventSystem
Look this[1] is an example event that the webhook dispatch. I do not know how to use eventListner or attach event's to built a plugin. The doc[2] is difficult to understand it. [1] http://pastebin.com/awV3Ae7c [2] http://book.cakephp.org/2.0/en/core-libraries/events.html Em terça-feira, 12 de março de 2013 17h15min12s UTC-3, Lucas Simon Rodrigues Magalhaes escreveu: > > Has anyone done an application built in CakePHP and EventSystem to consume > webhooks ? > > My problem it's I don't know how to start it. There are a example app that > can show me? > -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: hasMany with group by
Hi, you can use the containable behavior to obtain custom queries. Regards. Murgan, Alexis Germán Desarrollador & Diseñador Web: german.murgan.com.ar Email: ger...@murgan.com.ar MSN: ger...@murgan.com.ar Móvil: +5493424663813 2013/3/12 André Luis > Hi people, I have model User and model Image, and the model User hasMany > Image, so when i use $this->User->find('all'), it comes with the respective > related images, but in the table of model Image, I also have the field > "category", wich is a string... My doubt is, is there anyway to group the > results of the related model "Image" by the field "category" at the related > model "Image" ?? > > 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?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Webhooks and EventSystem
Has anyone done an application built in CakePHP and EventSystem to consume webhooks ? My problem it's I don't know how to start it. There are a example app that can show me? -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
hasMany with group by
Hi people, I have model User and model Image, and the model User hasMany Image, so when i use $this->User->find('all'), it comes with the respective related images, but in the table of model Image, I also have the field "category", wich is a string... My doubt is, is there anyway to group the results of the related model "Image" by the field "category" at the related model "Image" ?? 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Auth->allow( * ) not working
As mentioned in IRC, allow() for 2.1 and above see http://book.cakephp.org/2.0/en/appendices/2-1-migration-guide.html#authcomponent Am Dienstag, 12. März 2013 18:23:23 UTC+1 schrieb Ighor Martins: > > Hello. > > I'm using the basic authentication from the blog tutorial, > it's pretty much like they wrote it on the Cakephp page. and it's working > fine. > > The problem is: This page I'm building won't have login for normal users, > just Admins. So I want to allow everything but the admin prefix. > > > class AppController extends Controller { > public $components = array( > 'Session', > 'Auth' => array( > 'loginRedirect' => array('controller' => 'users', 'action' => > 'index'), > 'logoutRedirect' => array('controller' => 'pages', 'action' => > 'home') > ) > ); > > public function beforeFilter() { > if (isset($this->params['prefix']) && $this->params['prefix'] == > 'admin') { > $this->layout = 'admin'; > }else{ // it works well and enter here when I'm not using any > prefix > $this->Auth->allow(array('*')); > //$this->Auth->allow('*'); > } > } > } > > > It just won't allow all actions. I already wrote the name of one action, > and it works, but when I place a "*" there, it wont work. BTW it's on the > appController as you can see, I want to allow * in * controllers. > > > 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Cakephp 1.3 video tutorial
Good, but the version of my website is used cakephp 1.3, so I need to focus 1.3 If you have good video resources about 1.3, it will be greater. On Tue, Mar 12, 2013 at 10:23 AM, euromark wrote: > why not starting with the current cake version if you just started to work > with it? > Use 2.3 and the tutorials here: > http://book.cakephp.org/2.0/en/tutorials-and-examples.html > > > > Am Dienstag, 12. März 2013 15:54:07 UTC+1 schrieb Joseph zhu: > >> Hi there: >> I am a beginner for cakephp 1.3, I have a website built with cakephp 1.3, >> so I want to study it, and who has the cakephp 1.3 video tutorial, could >> you please recommend me some links? >> Thank you so much. >> > -- > 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 a topic in the > Google Groups "CakePHP" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/cake-php/-z4jjl-xxAA/unsubscribe?hl=en. > To unsubscribe from this group and all its topics, 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?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- God bless you! Joseph -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Cakephp 1.3 video tutorial
Thank you so much. I also want to know some video tutorial about the table relationship, it is important to get the data. On Tue, Mar 12, 2013 at 8:32 AM, Paul Willis wrote: > I found Andrew Perk's series to be very useful > > http://www.youtube.com/watch?v=nO9oSQhRa9s > > PW > > On 12 Mar 2013, at 14:54, Joseph zhu wrote: > > > Hi there: > > I am a beginner for cakephp 1.3, I have a website built with cakephp > 1.3, so I want to study it, and who has the cakephp 1.3 video tutorial, > could you please recommend me some links? > > -- > 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 a topic in the > Google Groups "CakePHP" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/cake-php/-z4jjl-xxAA/unsubscribe?hl=en. > To unsubscribe from this group and all its topics, 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?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- God bless you! Joseph -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Cakephp 1.3 video tutorial
why not starting with the current cake version if you just started to work with it? Use 2.3 and the tutorials here: http://book.cakephp.org/2.0/en/tutorials-and-examples.html Am Dienstag, 12. März 2013 15:54:07 UTC+1 schrieb Joseph zhu: > > Hi there: > I am a beginner for cakephp 1.3, I have a website built with cakephp 1.3, > so I want to study it, and who has the cakephp 1.3 video tutorial, could > you please recommend me some links? > Thank you so much. > -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Auth->allow( * ) not working
Hello. I'm using the basic authentication from the blog tutorial, it's pretty much like they wrote it on the Cakephp page. and it's working fine. The problem is: This page I'm building won't have login for normal users, just Admins. So I want to allow everything but the admin prefix. class AppController extends Controller { public $components = array( 'Session', 'Auth' => array( 'loginRedirect' => array('controller' => 'users', 'action' => 'index'), 'logoutRedirect' => array('controller' => 'pages', 'action' => 'home') ) ); public function beforeFilter() { if (isset($this->params['prefix']) && $this->params['prefix'] == 'admin') { $this->layout = 'admin'; }else{ // it works well and enter here when I'm not using any prefix $this->Auth->allow(array('*')); //$this->Auth->allow('*'); } } } It just won't allow all actions. I already wrote the name of one action, and it works, but when I place a "*" there, it wont work. BTW it's on the appController as you can see, I want to allow * in * controllers. 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
RE: Paginate with drag / drop
Right on. Pretty good ideas. Thanks. From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of jodator Sent: Tuesday, March 12, 2013 8:45 AM To: cake-php@googlegroups.com Subject: Re: Paginate with drag / drop You can: a) create virtual 'basket' to drop items while paginating (items in basket are stored between paging), b) add menu on right-click, button, move to position: user enters position After moving item to new position (either from basket (a) or by command) you should refresh current page so user can see new paginated results. If you insist on drag&drop you could add 'display all on one page' link/page to let user freely reorder list without pagination (well if the list is reasonably long) On Monday, March 11, 2013 11:54:42 PM UTC+1, advantage+ wrote: I have a site where the paginated results need to have the ability to sort / re-order as the admin likes. Problem is how do you get something from page 2 back to page 1 since you can't drag / drop it in a list that you cannot see. I was hoping there was a way to offset the pagination so for example (offset by 1) so last record and first record get repeated so the option of moving to another page is an option. page 1 shows 1 - 11 page 2 shows 11 - 21 page 3 shows 21 - 31 So in theory you could take record 21 drag to 11 spot go to page 1 and still see it so you overlap the records by 1 or whatever number. Or any other ideas? Thanks, Dave -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Cakephp 1.3 video tutorial
I found Andrew Perk's series to be very useful http://www.youtube.com/watch?v=nO9oSQhRa9s PW On 12 Mar 2013, at 14:54, Joseph zhu wrote: > Hi there: > I am a beginner for cakephp 1.3, I have a website built with cakephp 1.3, so > I want to study it, and who has the cakephp 1.3 video tutorial, could you > please recommend me some links? -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Problem with SQL Server
Good morning, sorry by my english. I am trying make a insert into SQL Server but i dont't work Database Error *Error: *SQLSTATE[42000]: [Microsoft][SQL Server Native Client 10.0][SQL Server]Incorrect syntax near 'Marcelo'. *SQL Query: *INSERT INTO [tecnicos] ([nome], [email], [telefone], [admin], [modified], [created], [password]) VALUES (N'Marcelo', N'marc...@forepoint.com.br', N'11 1232', 1, '2013-03-12 11:53:49', '2013-03-12 11:53:49', N'5491c11f9ee6ff22b260040f4f1b1a3442d127c4') *Notice: *If you want to customize this error message, create app\View\Errors\pdo_error.ctp If someone can help!! Please -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Cakephp 1.3 video tutorial
Hi there: I am a beginner for cakephp 1.3, I have a website built with cakephp 1.3, so I want to study it, and who has the cakephp 1.3 video tutorial, could you please recommend me some links? Thank you so much. -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Paginate with drag / drop
You can: a) create virtual 'basket' to drop items while paginating (items in basket are stored between paging), b) add menu on right-click, button, move to position: user enters position After moving item to new position (either from basket (a) or by command) you should refresh current page so user can see new paginated results. If you insist on drag&drop you could add 'display all on one page' link/page to let user freely reorder list without pagination (well if the list is reasonably long) On Monday, March 11, 2013 11:54:42 PM UTC+1, advantage+ wrote: > > I have a site where the paginated results need to have the ability to sort > / re-order as the admin likes. Problem is how do you get something from > page 2 back to page 1 since you can't drag / drop it in a list that you > cannot see. > > > > I was hoping there was a way to offset the pagination so for example > (offset by 1) so last record and first record get repeated so the option of > moving to another page is an option. > > page 1 shows 1 - 11 > > page 2 shows 11 - 21 > > page 3 shows 21 - 31 > > > > So in theory you could take record 21 drag to 11 spot go to page 1 and > still see it so you overlap the records by 1 or whatever number. > > > > Or any other ideas? > > > > Thanks, > > > > Dave > > > > > -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.