stocker un tableau avec l'option serialize() cakephp

2015-06-07 Thread moncif aidi
Bonjour, https://lh3.googleusercontent.com/-HjI1kOgHZv4/VXFsJa5QsuI/ASg/fRNVvWHhx3M/s1600/Capture%2Bd%25E2%2580%2599e%25CC%2581cran%2B2015-06-05%2Ba%25CC%2580%2B10.29.46.png est ce que quelqu'un peut m aidé pour stocker un tableau qui contient une colonne date par mois et des lignes de

problema al cargar un div mediante ajax.

2015-04-17 Thread Alberto Ahumada
Estimados. primero explicare lo que estoy tratando de hacer. tengo una pagina index, que contiene una grilla. en cada linea de la grilla tengo un boton ver la idea es que cuando presiono en el boton ver recargue un div en la misma pagina, con infromacion traida desde una funcion en el

un

2014-04-29 Thread ZAky
un -- 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

Re: Un-related models / functions

2012-12-11 Thread lowpass
On Mon, Dec 10, 2012 at 2:50 PM, Advantage+ movepix...@gmail.com wrote: Forbidden Error: The requested address '/products/feature?url=products%2Ffeature' was not found on this server. Cake throws a 404 on internal errors when debug = 0. Set debug to 2 to see what the problem is. And whats

RE: Un-related models / functions

2012-12-11 Thread Advantage+
: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of lowpass Sent: Tuesday, December 11, 2012 3:09 PM To: cake-php@googlegroups.com Subject: Re: Un-related models / functions On Mon, Dec 10, 2012 at 2:50 PM, Advantage+ movepix...@gmail.com wrote: Forbidden Error: The requested

Re: Un-related models / functions

2012-12-11 Thread lowpass
; } So remove the ?url=$1 or ?url=$1 last ? Thanks, Dave -Original Message- From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of lowpass Sent: Tuesday, December 11, 2012 3:09 PM To: cake-php@googlegroups.com Subject: Re: Un-related models / functions On Mon

RE: Un-related models / functions

2012-12-11 Thread Advantage+
Thanks man :) Good looking out. -Original Message- From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of lowpass Sent: Tuesday, December 11, 2012 3:35 PM To: cake-php@googlegroups.com Subject: Re: Un-related models / functions keep last On Tue, Dec 11, 2012

Re: Un-related models / functions

2012-12-10 Thread Piotr Beschel
read about Controller::requestAction(*string $url*, *array $options*) http://book.cakephp.org/2.0/en/controllers.html W dniu poniedziałek, 10 grudnia 2012 03:35:05 UTC+1 użytkownik advantage+ napisał: I have a footer which has a featured product and recent news. What is the best way to

RE: Un-related models / functions

2012-12-10 Thread Advantage+
url? From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of Piotr Beschel Sent: Monday, December 10, 2012 5:31 AM To: cake-php@googlegroups.com Subject: Re: Un-related models / functions read about Controller::requestAction(string $url, array $options) http

Un-related models / functions

2012-12-09 Thread Advantage+
I have a footer which has a featured product and recent news. What is the best way to call these actions getFeatured(), and getNews() when there is no related model to use as they are permanent blocks in the footer in default.ctp layout? Thanks, Dave -- Like Us on FaceBook

Comment convertir un templates wordpress pour cakephp

2012-09-29 Thread Cakedev
Bonjour à tous j'ai un templates wordpress que j'aimerai convertir pour l'intégré à cakephp ? -- Like Us on FacekBook 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

Console 2.1 génére un code non valable ?

2012-05-23 Thread DAHAN Mamdouh
Salut Je travail sur windows XP et je commence à utliser cakephp (2.1 )et j'ai essayer de générer une petite application(deux table ) en utlisant la console. mais je rencontre une erreur: Code: php 1. Fatal error: Call to a member function find() on a non-object in

Console 2.1 génére un code non valable ?

2012-05-23 Thread Dahan Mamdouh
Salut Je travail sur windows XP et je commence à utliser cakephp (2.1 )et j'ai essayer de générer une petite application(deux table ) en utlisant la console. mais je rencontre une erreur: Code: php 1. Fatal error: Call to a member function find() on a non-object in

Re: (un)conventional associations

2012-03-08 Thread luca capra
After a sleep, you were right. Thank you. Il 05/03/2012 21:41, José Lorenzo ha scritto: $belongsTo = array('Upload' = array('foreignKey' = 'foreign_key', 'conditions' = array('Upload.model' = 'photo'))) On Monday, March 5, 2012 12:12:10 PM UTC-4:30, muka wrote: Hi, I've made a nice

(un)conventional associations

2012-03-05 Thread luca capra
Hi, I've made a nice mess with some tables.. I got a uploads table with two fields (model, foreign_key) which serve many models, so Upload.model = 'photo' AND Upload.foreign_key = Photo.id give me all the uploads Photo out of the box. I can't figure out how to define the back association

Re: (un)conventional associations

2012-03-05 Thread José Lorenzo
$belongsTo = array('Upload' = array('foreignKey' = 'foreign_key', 'conditions' = array('Upload.model' = 'photo'))) On Monday, March 5, 2012 12:12:10 PM UTC-4:30, muka wrote: Hi, I've made a nice mess with some tables.. I got a uploads table with two fields (model, foreign_key) which serve

Re: (un)conventional associations

2012-03-05 Thread luca capra
Thank you, this works fine for Photo-Upload but my problem actually is to link back to the Photo model: Upload hasOne Photo //Upload.php 'Photo' = array( 'className' = 'Photo', 'foreignKey' = ' ? ', // would be what ? 'conditions' = '',

Re: Getting CakePHP to return a 50x HTTP response when an un-handled exception occurs

2011-07-04 Thread mark_story
If you're looking for a solution to this, its already been completely implemented for 2.0 in the ErrorHandler and ExceptionRenderer classes. And because 2.0 uses PDO for the connections database errors become exceptions. You could always use a custom error handler that converts errors into

Re: Getting CakePHP to return a 50x HTTP response when an un-handled exception occurs

2011-07-02 Thread euromark
i have similar problems with an incorrect status code for MYSQL errors http://groups.google.com/group/cake-php/browse_thread/thread/70b6a8b241ab0948# seems like there is a lot to do concerning correct response codes On 30 Jun., 14:37, lsiden lsi...@gmail.com wrote: I am writing a CakePHP

Getting CakePHP to return a 50x HTTP response when an un-handled exception occurs

2011-06-30 Thread lsiden
window and run the AJAX request directly from the address bar to see the output and find out what went wrong. Please see my question to StackOverflow.com for the rest of the details: http://stackoverflow.com/questions/6529588/getting-cakephp-to-return-a-50x-http-response-when-an-un-handled

Re: Multiple models from un-normalized table

2010-03-28 Thread bmcelhany
app that I've inherited that I'd like to migrate to CakePHP. The problem I'm running into is that this app is driven by a single un-normalized table...definitely not a db structure that works well with Cake out of the box. What I'd like to know is the best way to approach setting up my

Multiple models from un-normalized table

2010-03-27 Thread bmcelhany
Hello, I've done some searching and can't quite seem to find what I'm looking for. I have an existing php app that I've inherited that I'd like to migrate to CakePHP. The problem I'm running into is that this app is driven by a single un-normalized table...definitely not a db structure that works

Re: Multiple models from un-normalized table

2010-03-27 Thread Akeda Bagus
is driven by a single un-normalized table...definitely not a db structure that works well with Cake out of the box. What I'd like to know is the best way to approach setting up my models for this type of situation. Here are some of the fields in the table (named Prices): id (int), category (varchar

Un expected Logout in cakephp session

2010-03-13 Thread malu star
Hi, I have used cakephp Auth for Login purpose. But the user is logout every 2 minutes. I have set the security level low in config/ core.php(ie Configure::write('Security.level', 'low'). But the user is logout every 2 minutes. Also i have increased Session.timeout . But there is no result.

Re: Un expected Logout in cakephp session

2010-03-13 Thread Bailey
Hi Malu, I had exactly the same issue, i kept on loosing the session (which was causing the logout) every few minutes... i found that this was only happening in Internet Explorer though and not when using Firefox. Is this the same case as you? I seem to remember by commenting out the check on

Re: Un expected Logout in cakephp session

2010-03-13 Thread malu star
Hi Bailey , Thanks for replay. Is this the line to comment in core.php (Configure::write('Session.checkAgent', true);) ?. Also Firefox3 and ie8 have the same issues. Regards, Malu On Sun, Mar 14, 2010 at 1:30 AM, Bailey baileys...@gmail.com wrote: Hi Malu, I had exactly the same issue, i

Recherche un composant Date (calendrier)

2009-10-06 Thread Bouti
Bonjour à tous, Existe t-il un composant date pour cakephp équivalent au composant Zend_Date du framework Zend Framework. Je souhaite aller plus loin avec les calculs sur les dates, par exemple : - récupérer tous les 3éme vendredi du mois à partir du 01/10/2009 jusqu'au 02/05/2010 - enlever de

Re: Recherche un composant Date (calendrier)

2009-10-06 Thread Bert Van den Brande
un composant date pour cakephp équivalent au composant Zend_Date du framework Zend Framework. Je souhaite aller plus loin avec les calculs sur les dates, par exemple : - récupérer tous les 3éme vendredi du mois à partir du 01/10/2009 jusqu'au 02/05/2010 - enlever de mon calendrier toutes les

Un-needed Controllers

2009-05-21 Thread Dave Maharaj :: WidePixels.com
I have 5 or 6 empty controllers. I merged all the admin functions to the app_controller and these controllers now have no functions inside them. For example my bookmarks controller is simply ?php class BookmarksController extends AppController { var $name = 'Bookmarks'; var

Re: Un-needed Controllers

2009-05-21 Thread rich...@home
No, you can't. If you remove them you will get a controller not found error when you go to your bookmarks pages On a side note, you can remove the $uses line as CakePHP automatically adds the model associated with the controller (unless your AppController explicitly sets $uses = array() ) On

Re: Un-needed Controllers

2009-05-21 Thread keymaster
I like Grigri's generic controller approach for eliminating empty controllers: http://groups.google.com/group/cake-php/browse_thread/thread/7638b690ae0545ff/1845d3c1c30d3a03?lnk=gstq=generic+controller#1845d3c1c30d3a03 disclaimer - although it's on my list to implement, I haven't gotten to it

Re: Un-needed Controllers

2009-05-21 Thread JamesF
you might also want to have a look at bindModel http://book.cakephp.org/view/86/Creating-and-Destroying-Associations-on-the-Fly On May 21, 10:27 am, Dave Maharaj :: WidePixels.com d...@widepixels.com wrote: I have 5 or 6 empty controllers. I merged all the admin functions to the

Insertar un archivo en la carpeta app del cake

2009-01-16 Thread garza2002
Buenas. Querria insertar un archivo html independiente del cake en la carpeta app del cake. El problema es que me da erro como de no conexion con la base de datos cuando intento acceder a el: por ej: localhost/cake/app/ prueba.htm. Es como si tuviese que darle permiso desde algun sitio del cake

Re: Insertar un archivo en la carpeta app del cake

2009-01-16 Thread Bernardo Vieira
try putting it in your app/webroot folder. garza2002 wrote: Buenas. Querria insertar un archivo html independiente del cake en la carpeta app del cake. El problema es que me da erro como de no conexion con la base de datos cuando intento acceder a el: por ej: localhost/cake/app/ prueba.htm

Intégrer un outil dans mon application

2008-06-11 Thread maldini3
Salut tout le monde, Je suis un nouveau membre de ce groupe :) Alors, Je suis un nouveau apprentit de cakephp. Là je dois intégrer un outil qui permet de gérer un album photo. Il est ecrit en php. Je vous demande où je dois le placer et qu'il est Url que je dois mettre pour y accèder. Merci

Re: Intégrer un outil dans mon application

2008-06-11 Thread Simon COURTOIS
maldini3 a écrit : Salut tout le monde, Je suis un nouveau membre de ce groupe :) Alors, Je suis un nouveau apprentit de cakephp. Là je dois intégrer un outil qui permet de gérer un album photo. Il est ecrit en php. Je vous demande où je dois le placer et qu'il est Url que je dois mettre

retrieving data from un-linked table?

2008-05-17 Thread Siebren Bakker
I have a table in my database, simply called level, with 2 fields per row, lvl(primary key, auto_increment), and min_xp. This is for a game that I've been working on, and I was wondering how I would go about accessing this table from my User model, where I would be placing the add_xp and

Re: Un-escaping sanitized data for display

2008-02-04 Thread R. Rajesh Jeba Anbiah
On Feb 1, 1:52 pm, AD7six [EMAIL PROTECTED] wrote: On Feb 1, 6:51 am, R.RajeshJebaAnbiah [EMAIL PROTECTED] wrote: On Jan 31, 5:55 pm, AD7six [EMAIL PROTECTED] wrote: snip Cake automatically escapes data in db queries - you are already protected against sql injection. xss etc is a

Re: Un-escaping sanitized data for display

2008-02-01 Thread AD7six
On Feb 1, 6:51 am, R. Rajesh Jeba Anbiah [EMAIL PROTECTED] wrote: On Jan 31, 5:55 pm, AD7six [EMAIL PROTECTED] wrote: snip Cake automatically escapes data in db queries - you are already protected against sql injection. xss etc is a different matter, and is an example of where sanitize

Re: Un-escaping sanitized data for display

2008-01-31 Thread senseBOP
this, shouldn't the Sanitize class also include a method to un-escape sanitized data back into a readable, user-friendly, format? Otherwise, what's the point of having it sanitized? I'm no big expert, and there's probably a way for me to un-escape data from the database before displaying

Re: Un-escaping sanitized data for display

2008-01-31 Thread AD7six
later un-remove it. Sanitizing is not the same as escaping. So, you're saying I don't have to sanitize my forms against HTML and SQL injections because Cake does it for me? Cake automatically escapes data in db queries - you are already protected against sql injection. xss etc is a different

Re: Un-escaping sanitized data for display

2008-01-31 Thread José Pablo Orozco Marín
Cake automatically escapes data in db queries - you are already protected against sql injection. xss etc is a different matter, and is an example of where sanitize fits in. Just a few questions: 1. If create a search form that is searching for user input, in the controller do i needt to

Re: Un-escaping sanitized data for display

2008-01-31 Thread R. Rajesh Jeba Anbiah
On Feb 1, 10:50 am, José Pablo Orozco Marín [EMAIL PROTECTED] wrote: Cake automatically escapes data in db queries - you are already protected against sql injection. xss etc is a different matter, and is an example of where sanitize fits in. Just a few questions: 1. If create a search

Re: Un-escaping sanitized data for display

2008-01-31 Thread R. Rajesh Jeba Anbiah
On Jan 31, 5:55 pm, AD7six [EMAIL PROTECTED] wrote: snip Cake automatically escapes data in db queries - you are already protected against sql injection. xss etc is a different matter, and is an example of where sanitize fits in. snip Having checked your codes in UploadBehavior and

Re: Un-escaping sanitized data for display

2008-01-30 Thread brian_gaff
a method to un-escape sanitized data back into a readable, user-friendly, format? Otherwise, what's the point of having it sanitized? I'm no big expert, and there's probably a way for me to un-escape data from the database before displaying it back to the user, but so far, I have failed

Un-escaping sanitized data for display

2008-01-29 Thread senseBOP
Hey guys, hope I'm posting this in the right group and all... Unless there's another way to go about this, shouldn't the Sanitize class also include a method to un-escape sanitized data back into a readable, user-friendly, format? Otherwise, what's the point of having it sanitized? I'm no big

lo que da de si el ip ungry y un programa sencillo de macros del teclado y mouse

2008-01-10 Thread % Didac
soy leyenda http://groups.google.es/group/el-gallo-de-la-maxima/browse_thread/thread/6e296d002e9a1058?hl=es --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

Error al editar un registro

2007-03-29 Thread christianandradet
Iam trying to edit a Cliente an i have this in my model 'Cliente': var $name = 'Cliente'; var $hasOne = array('Naturale' = array('className'= 'Naturale', 'conditions' = '', 'order'= '',