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

Custom Validation (CakePHP 3.0)

2014-12-20 Thread Alberto Domínguez
Hi all, I'm trying to enforce password definition through Model Validation rule. I would like to include a RegExp validation. Is there any simple way to do it? Should I create a validation function? Checking the sources look like there is no need, however I haven't been able to perform a

Re: cake 3 - issue saving null datetime

2014-04-29 Thread Alberto Pagliarini
there is a bug because the Cake\Database\Type\ DateTimeType::toDatabase($value, Driver $driver) method doesn't check if $value is null and try to use a method on it $value-format($this-_ format); Is it a bug? alberto -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter

Re: cake 3 - is it possible to use formatResults to stacking multiple operations like mapper/reducer?

2014-04-16 Thread Alberto Pagliarini
() method Error: Call to a member function toArray() on a non-object Any help? Am I using wrong formatResults()? Is it possible to chain only mapper reducer? thanks alberto -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You

Re: cake 3 - is it possible to use formatResults to stacking multiple operations like mapper/reducer?

2014-04-16 Thread Alberto Pagliarini
but if I add first() $result-first(); then I obtain a fatal error in findFlat() method Error: Call to a member function toArray() on a non-object Any help? Am I using wrong formatResults()? Is it possible to chain only mapper reducer? thanks alberto -- Like Us on FaceBook https

Re: cake 3 - is it possible to use formatResults to stacking multiple operations like mapper/reducer?

2014-04-16 Thread Alberto Pagliarini
toArray() on a non-object Any help? Am I using wrong formatResults()? Is it possible to chain only mapper reducer? thanks alberto -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you

Re: cake 3 - is it possible to use formatResults to stacking multiple operations like mapper/reducer?

2014-04-15 Thread Alberto Pagliarini
toArray() on a non-object Any help? Am I using wrong formatResults()? Is it possible to chain only mapper reducer? thanks alberto -- 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

Re: cake 3 - best practice to develop backend app with one or more frontend apps sharing cake lib

2014-03-30 Thread Alberto Pagliarini
to explicit the class name. But I have to test it and I have to think if it's a good idea. alberto 2014-03-29 12:20 GMT+01:00 mark_story mark.st...@gmail.com: What kinds of things are you thinking woud mak these kinds of situations easier? Plugins get you most of the way but I am guessing

Re: cake 3 - best practice to develop backend app with one or more frontend apps sharing cake lib

2014-03-27 Thread Alberto Pagliarini
think about it. Alberto 2014-03-26 2:41 GMT+01:00 mark_story mark@gmail.com: Have you considered using plugins? If the 'backend' and 'frontend' application run in the same process/server you could probably use plugins quite nicely. If they run on separate servers it gets a bit more

Re: cake 3 - best practice to develop backend app with one or more frontend apps sharing cake lib

2014-03-26 Thread Alberto Pagliarini
and frontends because it give us the possibility to use different plugins for every app and have frontend as app seems more polished. But if there is a simple way to handle it with plugins I like to know so we can think about it. Alberto 2014-03-26 2:41 GMT+01:00 mark_story mark.st...@gmail.com

Re: Using ORM Entity mutators to change value doesn't work

2014-02-19 Thread Alberto Pagliarini
:04 PM, Alberto Pagliarini bat...@gmail.com wrote: Thanks José for the answer. Let me know what you decide and if I can help. Anyway my example is born because I often need to save data in different format from original (serialize/unserialize, json_encode, json_decode, etc..) and I think

Re: Help saving data with CakePHP 3.0 ORM

2014-02-05 Thread Alberto Pagliarini
. Am I missing something? I have following http://book.cakephp.org/3.0/en/orm/table-objects. html#converting-request-data-into-entities best regards alberto -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received

Re: Help saving data with CakePHP 3.0 ORM

2014-02-05 Thread Alberto Pagliarini
://book.cakephp.org/3.0/en/orm/table-objects. html#converting-request-data-into-entities best regards alberto -- 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

Re: Abridged summary of cake-php@googlegroups.com - 17 Messages in 8 Topics

2013-01-27 Thread Alberto Fernandez Reyes
at http://groups.google.com/group/cake-php?hl=en. -- Alberto Fernandez Reyes -- 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 post

Generate a drop down list with other table

2011-07-13 Thread Alberto Mendoza
Hi, I'm new to CakePHP and actually I'm creating my first app with it. I'm trying to find out how to add a drop down list with the data of a column of another table. I mean, I have an add view for a students table, the students is related to a people table and people table is related to

Add Wordpress posts and pages from CakePHP

2011-04-06 Thread alberto
Hi! I would like to have the possibility to add posts and pages to Wordpress from CakePHP. How can I do that? Thanks in advance! Alberto -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org

Edit with Media Plugin David Persson

2011-03-07 Thread alberto
Hi, When I try to edit a media file ex. I need to replace the image The main image was replaced but the filter (an 'm' and 'l') image wasn't replaced. And the replaced image wasn't deleted. Where I'm wrong? Thanks in advance! Alberto -- Our newest site for the community: CakePHP Video

CakePHP Media Plugin

2011-03-04 Thread alberto
! Alberto -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com

Re: Connecting to a remote database via SSH

2011-01-25 Thread Moises Alberto Lindo Gutarra
, visit this group at http://groups.google.com/group/cake-php -- Atentamente, Moisés Alberto Lindo Gutarra Asesor - Desarrollador Java / Open Source Linux Registered User #431131 - http://counter.li.org/ Cel: (511) 995081720 MSN: mli...@tumisolutions.com -- Our newest site for the community

Do not show flash message when a url redirects to the login page

2010-11-02 Thread alberto
Hi, I was looking how to do not show flash message when a url redirects to the login page Thanks in advance! Alberto Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed

Re: CakePHP 1.3 reverse routing in pagination

2010-06-23 Thread Alberto
, Alberto albertolopezru...@gmail.com wrote: It gives the url /Usuarios/votos/page:2 without the user id (i.e. /Usuarios/3/votos/page:2) Actually $this-passedArgs is empty in my view On Jun 21, 11:45 pm, majna majna...@gmail.com wrote: tryhttp://groups.google.com/group/cake-php/msg

Re: CakePHP 1.3 reverse routing in pagination

2010-06-22 Thread Alberto
It gives the url /Usuarios/votos/page:2 without the user id (i.e. /Usuarios/3/votos/page:2) Actually $this-passedArgs is empty in my view On Jun 21, 11:45 pm, majna majna...@gmail.com wrote: tryhttp://groups.google.com/group/cake-php/msg/e5231eac6bdbecc6 On Jun 22, 12:21 am, Alberto

CakePHP 1.3 reverse routing in pagination

2010-06-21 Thread Alberto
I recently migrated my system to 1.3. I solved most of the issues but not the pagination links in some views therefore I need some help. routes.php Router::connect('/usuarios/:id/:action/*', array('controller' = 'Usuarios', 'action' = ':action','id' = ':id'),array('id'='[0-9]+')); view

console shell

2010-01-14 Thread alberto
Hi, php.exe C:/xampp/htdocs/cakeblog/cake/console/cake.php myfunction in the shell I import a model like $uses = array('Mymodel'); when I run this into my prompt print an error Fatal error: Class 'Controller' not fount in C:\xampp\htdocs\cakeblog \app\ap_controller.php on line 2 any ideas?

Re: console shell

2010-01-14 Thread alberto
excuse was a mistake. is app_controller On 14 Gen, 10:48, John Andersen j.andersen...@gmail.com wrote: Please confirm that the error message states ap_controller?? Naming issue?? Enjoy,    John On Jan 14, 11:11 am, alberto alberto.pri...@gmail.com wrote: Hi, php.exe C:/xampp/htdocs

Re: Debug = 2 changes the response context type

2009-11-12 Thread Alberto Dominguez
Dahl scottmd...@gmail.com wrote: CakePHP dumps out a table of data when debug level is set to 2...this obviously won't be valid JSON.  Not sure why the headers would change though. On Wed, Nov 11, 2009 at 1:38 PM, Alberto Dominguez alberto.doming...@egresados.uniandes.edu.co wrote: Hi

Re: Debug = 2 changes the response context type

2009-11-12 Thread Alberto Dominguez
. On Nov 12, 6:25 am, Alberto Dominguez alberto.doming...@egresados.uniandes.edu.co wrote: Scott, Thanks, however keep in mind I've already implemented FirePHP (a plugin for the FF Firebug extension). It means, table is not being dumped to the page, but to the Firebug console. It works

Debug = 2 changes the response context type

2009-11-11 Thread Alberto Dominguez
Hi, I'm using CakePHP to generate JSON responses. I'm also using FirePHP to debug and log the application execution. It works pretty well, however when I set the DEBUG level to 2 o higher -i.e. when I need to monitor the DB query executions- it suddenly changes the response header content type to

Re: Set:sort A Set-compatible path

2009-10-08 Thread alberto
there is name_item2 and name_item3 ??? On 7 Ott, 18:38, brian bally.z...@gmail.com wrote: On Wed, Oct 7, 2009 at 10:17 AM, alberto alberto.pri...@gmail.com wrote: Where I can find the syntax of the variable $path that are passed to the Set:sort ? For sort() you'll probably be using '{n

Set:sort A Set-compatible path

2009-10-07 Thread alberto
Where I can find the syntax of the variable $path that are passed to the Set:sort ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To

ACL denied action error message

2009-06-10 Thread Alberto
Hi! I think this must be a simple question, but I am not able to find the solution. I have implemented an ACL + Auth user system and I would like to show an error message for users who have not access to an action. In the current configuration, when a user has no access by ACL, cake just

Re: Poll: what do you hate about CakePHP?

2009-05-08 Thread Alberto Pagliarini
Simple way to initialize a component on the fly. ClassRegistry::init is very useful for model... I'd like it (or something similar) works with component -- -- bato --- --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Open Ajax box for not allowed actions in Auth

2009-02-24 Thread Alberto
I'm trying to implement a login system using Auth and Ajax. The idea is similar to Digg system, when you click on a not allowed action, an ajax box is open with a login form in the same window. Using Auth is simple to render the normal login form(with $this-Auth- loginAction) but I don't know

cake extract in different files problem

2008-06-23 Thread Alberto
Hi, I was using cake extract and I realized a possible bug in the script. I used the function __d(domain, text) to set the text in different files. When I use the cake extract to create the .po file and I answer 'no' to: Would you like to merge all translations into one file? (y/n) the result

Ajax-submit doesn't validate W3C

2008-04-30 Thread Alberto
know how to solve this Thank you Alberto --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email

Re: to many connections to postgresql

2008-01-30 Thread Moises Alberto Lindo Gutarra
postgres: quser qdb 172.16.68.245 idle postgres 4495 3630 0 14:48 pts/000:00:00 postgres: kret kretdb 172.16.68.245 idle postgres 4498 3630 0 14:48 pts/000:00:00 postgres: kret kretdb 172.16.68.245 idle ... -- Atentamente, Moisés Alberto Lindo Gutarra Asesor - Desarrollador Java

Re: Session lost using kcaptcha, after upgrading to new 1.2.0.6311

2008-01-22 Thread Alberto
Thank you very much, the problem was exactly that, a whitespace issue in the model. Sorry for the delay in the answer On Jan 10, 1:54 pm, fr3nch13 [EMAIL PROTECTED] wrote: This is 99% a whitespace issue IME's. Hint: Find where kcaptcha is writing the image headers header(...) comment them

Re: Session lost using kcaptcha, after upgrading to new 1.2.0.6311

2008-01-10 Thread Alberto
) .. If you have a vendors type class for your captcha, check if there is a start_session in it. If so try to remove it .. On Jan 10, 3:54 am, Alberto [EMAIL PROTECTED] wrote: Hello, I upgraded to the new beta version and I can't validate the captcha. The problem is in the sessions, I tested

Cakephp 1.2 Ajax form validation

2007-12-29 Thread Alberto Lopez Rubio
I was trying to make a form and validate with ajax like in: http://bin.cakephp.org/view/242085627 but when I have an error, the error div is updated with the content of the view of the rendered element. so it's displayed twice the form my validateField view is the form... what should be the

Re: $html-link return me absolute path NOT relative path ??

2007-07-07 Thread Alberto Lopez Rubio
I had the same problem, and same solution worked. This is one of the problems I'm having after changing server. Tha most strange for me now is that the directory index doesn't load automatically, I have to click on index.php to load the web, the problem is not the webserver because I've tested

How to show an error when you try to access a content that doesn't exists

2007-03-30 Thread Alberto Lopez Rubio
Hi everyone, I'd like to know how to do CakePHP show an error when you try to access a content that doesn't exists. For example, with the next code, if I try to acces /group/view/3 and doesn't exists the Group with id=3 in the database, it shows the view.thtml with error from database. class