RE: LDAP authentication
Well, what have you tried? Where does it fail? The first tutorial should give you all you need. From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of Geraldo Junior Sent: 10. mars 2015 15:32 To: cake-php@googlegroups.com Subject: LDAP authentication I am developing a system and need a LDAP authentication. I've tried to use some plugins and follow some tutorials: http://abakalidis.blogspot.com.br/2011/06/cakephp-authenticating-against.html https://github.com/jvalecillos/cakephp-yalp But to no avail: / Has anyone done something like that? -- Sorry for my English -- 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<mailto:cake-php+unsubscr...@googlegroups.com>. To post to this group, send email to cake-php@googlegroups.com<mailto: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. Ricardo Vieitez | Student Assistant - Network Administration University of Florida Department of Housing and Residence Education PO Box 112100 | Gainesville, FL 32611-2100 office 352.392.2171 x10355 | fax 352.392.6819 | ricar...@housing.ufl.edu<mailto:ricar...@housing.ufl.edu> StrengthsQuest Top 5: Analytical, Strategic, Learner, Responsibility, Relator - Find Out More<http://www.strengthsquest.com/content/141728/index.aspx> Please consider the environment before printing this email. -- 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.
Debugging Nested Associations, Containable
Hello, I am trying to interrelate models from different data sources (Oracle and Active Directory in this case), and I am getting some funny behavior from recursive associations. Just to clarify: single level association work well. So, consider model A belongsTo B, and model B hasMany A. This is an example of the code that I’m trying to execute: $this->B->find('first', array( 'conditions' => array('id' => '1158'), 'recursive' => -1, 'contain' => array( 'A' => array( 'fields' => array(‘id’, …), 'B' => array( 'fields' => array('id', …), 'A' => array( 'fields' => array(…), ), ), ), ), )); If the code ran correctly, I’d be getting something that looks like a circular array. However, my code doesn’t work as expected and the innermost value (‘A’) is not present (i.e., my result array looks like [B => …, A => [‘field1’, …, B => [‘field1’, ‘field2’, …]]]), not even as a NULL or empty array. If instead of using containable I set the ‘recursive’ property OR use containable but leave the fields unspecified, something even stranger happens at the recursion stops one level before that (which is this time an empty array, i.e., I get [B => …, A => [‘field1’, …, B => []]]). If I misspell the name of the innermost A on purpose, I get a warning. This is leading me to think that things are somehow, but not quite entirely, working. How could I debug this to find out what the problematic code is? It could be somewhere in the custom datasources or the model definitions. Thanks, Ricardo Vieitez | Student Assistant - Network Administration University of Florida Department of Housing and Residence Education PO Box 112100 | Gainesville, FL 32611-2100 office 352.392.2171 x10355 | fax 352.392.6819 | ricar...@housing.ufl.edu<mailto:ricar...@housing.ufl.edu> StrengthsQuest Top 5: Analytical, Strategic, Learner, Responsibility, Relator - Find Out More<http://www.strengthsquest.com/content/141728/index.aspx> Please consider the environment before printing this email. -- 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: Plus sign (+) in url parameter
That’s exactly what’s supposed to happen. You should be escaping the plus sign (i.e., %2B). From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of David Montaño Ramírez Sent: 1. juli 2014 11:49 To: cake-php@googlegroups.com Subject: Plus sign (+) in url parameter Hi I'm working in project that requires that a URL parameter containing a plus sign (+) to be passed as an argument to the action. The problem is that the + is replaced by a space. The question is: CakePHP is designed to work like that or might be a bug? Additional Information: CakePHP Version: 2.5.1 Default routing for the controller The argument is an email like name+someth...@example.com<mailto:name+someth...@example.com> 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<mailto:cake-php+unsubscr...@googlegroups.com>. To post to this group, send email to cake-php@googlegroups.com<mailto: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. Ricardo Vieitez | Student Assistant - Network Administration University of Florida Department of Housing and Residence Education PO Box 112100 | Gainesville, FL 32611-2100 office 352.392.2171 x10355 | fax 352.392.6819 | ricar...@housing.ufl.edu<mailto:ricar...@housing.ufl.edu> StrengthsQuest Top 5: Analytical, Strategic, Learner, Responsibility, Relator - Find Out More<http://www.strengthsquest.com/content/141728/index.aspx> Please consider the environment before printing this email. -- 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: (Web Service) Using XML to Output HTML into my website
Hello, I guess that you can parse the XML file using PHP and output that as HTML. For example: http://blog.teamtreehouse.com/how-to-parse-xml-with-php5 http://www.php.net/manual/en/book.xml.php Since you’re using CakePHP, the “right” way is using a DataSource that does this conversion. You can either write that yourself (sounds scary, but it’s not that bad, especially if you only need to read information), or try to find a community-written SOAP datasource that does what you want (or make little adjustments to make it work.) For example:” http://blog.pagebakers.nl/2008/12/18/soapsource-a-soap-client-datasource-for-cakephp/ http://book.cakephp.org/2.0/en/models/datasources.html Once you convert from SOAP to a CakePHP-DB like sort of thing, generating the HTML is simple enough. An alternative way (non-CakePHP) would be to use XSLT (e.g., http://www.w3schools.com/xml/xml_xsl.asp) to convert from HTML to XML. You may either accomplish this client-side, or write a simple script (PHP or otherwise) that does the parsing. Then you can read the styled document and include it where needed. That should get you started. PS: Are you sure your domain name isn’t supposed to be .tur.ar? https://nic.ar/dominios-tur-ar.xhtml From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of NHGDESIGN Sent: 27. mai 2014 17:22 To: cake-php@googlegroups.com Subject: (Web Service) Using XML to Output HTML into my website Hello. I hope I can explain myself clearly so that I will get help here. I've been given a web service access to show content to my website (The web service is in a another domain). The information is about Hotels (Hotels names, Hotel Images, Hotel Category, Hotels Locations, Hotels descriptions). The file is like the following: http://www.w3.org/2003/05/soap-envelope"; xmlns:bud="http://www.softur.com.ar/wsbridge/budget.wsdl"; xmlns:bud1="http://www.softur.com.ar/wsbridge/budget.xsd";> 2014-05-30 2014-05-31 FakeID FakePassWord USD true http://www.softur.com.ar/wsbridge/budget.xsd";> 1 I am running that request using soapUI 3.5.1, which outputs an XML file with lots of data about Hotels. http://www.softur.com.ar/wsbridge/budget.xsd";>Hotel Address HOTEL AGUA DORADA 4 * http://www.softur.com.ar/wsbridge/budget.xsd";>55 http://www.softur.com.ar/wsbridge/budget.xsd";>Hotel Zone Area http://www.softur.com.ar/wsbridge/budget.xsd";>Address Description of the Hotel Here http://www.softur.com.ar/wsbridge/budget.xsd";> -63.93631 11.022754 I want to show that information as an HTML file into my website, but I don't know how to go about this. I guess saving these information appropriately into a database, and then spitting that information from the database to my website would be a way. Any help I can get here using CakePHP so that I would know where to start would really help. 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<mailto:cake-php+unsubscr...@googlegroups.com>. To post to this group, send email to cake-php@googlegroups.com<mailto: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. Ricardo Vieitez | Student Assistant - Network Administration University of Florida Department of Housing and Residence Education PO Box 112100 | Gainesville, FL 32611-2100 office 352.392.2171 x10355 | fax 352.392.6819 | ricar...@housing.ufl.edu<mailto:ricar...@housing.ufl.edu> StrengthsQuest Top 5: Analytical, Strategic, Learner, Responsibility, Relator - Find Out More<http://www.strengthsquest.com/content/141728/index.aspx> Please consider the environment before printing this email. -- 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.
CakePHP Polymorphic Association
Hello, I’ve developed a fairly complex application on CakePHP 2.4.X, and at this point I’ve encountered this issue. Say I have a model, called Cake. Cakes may be baked in-house or purchased from a factory. Now, say that a Cake model instance has a belongs-to association to the “pastry cook” and “factory” models. This is trivial to set up using separate fields for each field. My question is: how can I unify this so that I have an “origin_id” field that transparently maps to a “pastry cook” or a “factory”, provided I can somehow differentiate them by the contents of the fields (say all cook ids start with “c” and factory ids, with “f”)? I know this can be solved while reading in a fairly straightforward (though dirty) way using virtual fields and callbacks. My question is about doing this in a transparent way that also works for saving/validating cakes. I need not create new cooks or factories through saveMany/saveAll though. Thanks, Ricardo Vieitez | Student Assistant - Network Administration University of Florida Department of Housing and Residence Education PO Box 112100 | Gainesville, FL 32611-2100 office 352.392.2171 x10355 | fax 352.392.6819 | ricar...@housing.ufl.edu<mailto:ricar...@housing.ufl.edu> StrengthsQuest Top 5: Analytical, Strategic, Learner, Responsibility, Relator - Find Out More<http://www.strengthsquest.com/content/141728/index.aspx> Please consider the environment before printing this email. -- 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: Problemas con Safari en cakephp
Te sugeriría revisar los históricos del servidor, ya que posiblemente haya algún problema con el código. También podrías probar si tiene que ver con la cabecera User-Agent (podés probar cURL para ésto, o alguna extension para Firefox) PD: Esta es una lista en inglés. Tendrías muchas más chances de recibir ayuda haciéndolo en el idioma correcto. From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of Andres Wilches Sent: 9. april 2014 11:55 To: cake-php@googlegroups.com Subject: Problemas con Safari en cakephp Tengo un problema con cakephp y el navegador de SAFARI que no carga en el navegador las hojas de estilo ni javascript, cual es el problema? como puedo solucionar ya que desde todos los navegadores la página corre sin problema. Gracias -- 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<mailto:cake-php+unsubscr...@googlegroups.com>. To post to this group, send email to cake-php@googlegroups.com<mailto: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. Ricardo Vieitez | Student Assistant - Network Administration University of Florida Department of Housing and Residence Education PO Box 112100 | Gainesville, FL 32611-2100 office 352.392.2171 x10355 | fax 352.392.6819 | ricar...@housing.ufl.edu<mailto:ricar...@housing.ufl.edu> StrengthsQuest Top 5: Analytical, Strategic, Learner, Responsibility, Relator - Find Out More<http://www.strengthsquest.com/content/141728/index.aspx> Please consider the environment before printing this email. -- 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.