Re: POST form changes to PUT

2013-05-08 Thread Mancho
Hmmm, maybe in version 2.1.x the option has different key. You can check
this looking in CakePHP libraries.

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/5/8 André Luis 

> Lol, this one didnt work for me in version 2.1.something, but now in 2.3.4
> is working fine, tnx
>
> Em quarta-feira, 8 de maio de 2013 08h46min55s UTC-3, Mancho Murgan
> escreveu:
>>
>> Actually with option type you can change the hardcoded method.
>>
>> echo $this->Form->create('User', array('type' => 'post'));
>>
>> 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/5/8 André Luis 
>>
>>> What if you create a hidden field " $this->Form->hidden('_method',**
>>> array('name'=>'_method','**value'=>'POST')) " in your form?? It should
>>> override the other one
>>>
>>>
>>> Em segunda-feira, 6 de maio de 2013 15h47min55s UTC-3, advantage+
>>> escreveu:
>>>
>>>> Running into a weird issue where my form as rendered the HTML shows:
>>>>
>>>>
>>>>
>>>> 
>>>>
>>>>
>>>>
>>>> This form is submitted using ajax and the function is used by many
>>>> forms thru the site:
>>>>
>>>> $.ajax*({*
>>>>
>>>> **type: "POST",
>>>>
>>>> url: $*(*sel*)*.attr*(*'action'*)*,
>>>>
>>>> data: $*(*sel*)*.formSerialize*()*,
>>>>
>>>> dataType: 'json',
>>>>
>>>>
>>>>
>>>> And in the controller I have if($this->request->is('ajax') && ($this->
>>>> request->is('post'))
>>>>
>>>>
>>>>
>>>> But it fails on this 1 form because for some reason it is changing to
>>>> PUT.
>>>>
>>>>
>>>>
>>>> Are there reason why this would be happening? I looked at a few of my
>>>> forms using this js function and all of the forms and all are set up the
>>>> exact same way / Form->helper standard inputs / selects.
>>>>
>>>>
>>>>
>>>> I even added into the form with issues 'method' => 'POST' (upper and
>>>> lower) but it still fires off a PUT request. Renders as POST but inspecting
>>>> the request shows:
>>>>
>>>>
>>>>
>>>> application/x-www-form-**urlenco**ded
>>>>
>>>> _methodPUT
>>>>
>>>>
>>>>
>>>> Ideas would be welcome.
>>>>
>>>  --
>>> Like Us on FaceBook 
>>> https://www.facebook.com/**CakePHP<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?hl=en<http://groups.google.com/group/cake-php?hl=en>
>>> .
>>> For more options, visit 
>>> https://groups.google.com/**groups/opt_out<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.
>
>
>

-- 
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: POST form changes to PUT

2013-05-08 Thread Mancho
Actually with option type you can change the hardcoded method.

echo $this->Form->create('User', array('type' => 'post'));

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/5/8 André Luis 

> What if you create a hidden field "
> $this->Form->hidden('_method',array('name'=>'_method','value'=>'POST')) "
> in your form?? It should override the other one
>
>
> Em segunda-feira, 6 de maio de 2013 15h47min55s UTC-3, advantage+ escreveu:
>
>> Running into a weird issue where my form as rendered the HTML shows:
>>
>>
>>
>> 
>>
>>
>>
>> This form is submitted using ajax and the function is used by many forms
>> thru the site:
>>
>> $.ajax*({*
>>
>> **type: "POST",
>>
>> url: $*(*sel*)*.attr*(*'action'*)*,
>>
>> data: $*(*sel*)*.formSerialize*()*,
>>
>> dataType: 'json',
>>
>>
>>
>> And in the controller I have if($this->request->is('ajax') && ($this->
>> request->is('post'))
>>
>>
>>
>> But it fails on this 1 form because for some reason it is changing to PUT.
>>
>>
>>
>> Are there reason why this would be happening? I looked at a few of my
>> forms using this js function and all of the forms and all are set up the
>> exact same way / Form->helper standard inputs / selects.
>>
>>
>>
>> I even added into the form with issues 'method' => 'POST' (upper and
>> lower) but it still fires off a PUT request. Renders as POST but inspecting
>> the request shows:
>>
>>
>>
>> application/x-www-form-**urlencoded
>>
>> _methodPUT
>>
>>
>>
>> Ideas would be welcome.
>>
>  --
> 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: Variável pro pdf (saída)

2013-05-07 Thread Mancho
Qual é o problema? Eu recomendo usar a biblioteca FPDF (http://www.fpdf.org/
).

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/5/7 Carlos Antonio 

> Olá.
>
> Numa aplicação que estou a fazer necessito que valores em BD Mysql seja
> exibidas numa saída PDF.
>
> Uso o TCPDF. e CAke 2.x. Estou com dificuldades nisso. Alguém ajuda!
> Obrigado.
>
>
>  --
> 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: POST form changes to PUT

2013-05-07 Thread Mancho
Hi André Luis,

That is correct, the AJAX request method is POST, but CakePHP uses an
harcoded "method" using an hidden input on form and use this value to
validate on controller.

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/5/7 André Luis 

> If you´re sending the data via AJAX, what is the difference between the
> hidden fields method be PUT or POST? the data will be sent via AJAX as POST
> anyway...
>
> Em segunda-feira, 6 de maio de 2013 15h47min55s UTC-3, advantage+ escreveu:
>
>> Running into a weird issue where my form as rendered the HTML shows:
>>
>>
>>
>> 
>>
>>
>>
>> This form is submitted using ajax and the function is used by many forms
>> thru the site:
>>
>> $.ajax*({*
>>
>> **type: "POST",
>>
>> url: $*(*sel*)*.attr*(*'action'*)*,
>>
>> data: $*(*sel*)*.formSerialize*()*,
>>
>> dataType: 'json',
>>
>>
>>
>> And in the controller I have if($this->request->is('ajax') && ($this->
>> request->is('post'))
>>
>>
>>
>> But it fails on this 1 form because for some reason it is changing to PUT.
>>
>>
>>
>> Are there reason why this would be happening? I looked at a few of my
>> forms using this js function and all of the forms and all are set up the
>> exact same way / Form->helper standard inputs / selects.
>>
>>
>>
>> I even added into the form with issues 'method' => 'POST' (upper and
>> lower) but it still fires off a PUT request. Renders as POST but inspecting
>> the request shows:
>>
>>
>>
>> application/x-www-form-**urlencoded
>>
>> _methodPUT
>>
>>
>>
>> Ideas would be welcome.
>>
>  --
> 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: POST form changes to PUT

2013-05-06 Thread Mancho
Dude, checks that cakephp adds hidden input with "_method" name and "PUT"
value, and uses this pair name/value for validate.

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/5/6 Advantage+ 

> Running into a weird issue where my form as rendered the HTML shows:
>
> ** **
>
>  method="post" action="/manage/profile">
>
> ** **
>
> This form is submitted using ajax and the function is used by many forms
> thru the site:
>
> $.ajax*({*
>
> **type: "POST",
>
> url: $*(*sel*)*.attr*(*'action'*)*,
>
> data: $*(*sel*)*.formSerialize*()*,
>
> dataType: 'json',
>
> ** **
>
> And in the controller I have if($this->request->is('ajax') && ($this->
> request->is('post'))
>
> ** **
>
> But it fails on this 1 form because for some reason it is changing to PUT.
> 
>
> ** **
>
> Are there reason why this would be happening? I looked at a few of my
> forms using this js function and all of the forms and all are set up the
> exact same way / Form->helper standard inputs / selects.
>
> ** **
>
> I even added into the form with issues 'method' => 'POST' (upper and
> lower) but it still fires off a PUT request. Renders as POST but inspecting
> the request shows:
>
> ** **
>
> application/x-www-form-urlencoded
>
> _methodPUT
>
> ** **
>
> Ideas would be welcome.
>
> --
> 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: cron job command

2013-05-03 Thread Mancho
No, you need use cake console to run a shell. The cake console is located
on /path/to/cakephp/app/Console/cake.
You need a command like:

/path/to/cakephp/app/Console/cake shellName -cli "/web/cgi-bin/" -console
"/path/to/cakephp/app/Console/" -app "/path/to/cakephp/app/"

The cake console needs execution permissions.


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/5/3 roundrightfarm 

> So, if I understand correctly.  I need to create a shell which runs my
> action.  Then I can have the Cron Job Manager run the shell at the
> specified times.  The command would look like:
>
> /web/cgi-bin/php5 "$HOME/html/vendors/shells/MyCronShell.php"
>
> Is this correct?
>
> --
> 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: cron job command

2013-05-03 Thread Mancho
Hi,

You must create a shell, after that you could run with crontab.
http://book.cakephp.org/2.0/en/console-and-shells.html

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/5/3 roundrightfarm 

> Greetings,
> I'm trying to make a cron job using godaddy's Cron Job Manager.  I am
> trying to figure out the proper command to run an action at the
> specified time
>
> Godaddy tells me that in order to run a PHP script via Cron, you must
> specify the interpreter manually. For example:
> /web/cgi-bin/php5 "$HOME/html/test.php5"
>
> In this example, "$HOME" represents the full path to my Shared Hosting
> account and html is the folder that contains my cake folders. My setup
> has no app folder.
>
> I am confused by the fact that the action is part of the controller
> and hence there is no way to indicate the action directly as part of a
> file path.  Is there a way to complete the command to run the script?
> Perhaps something like:
>
> /web/cgi-bin/php5 "$HOME/html/path to controller/action"
>
> --
> 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: POST and PUT problems on add action

2013-04-26 Thread Mancho
I agree, that is a correct way to solve.
Check this site: http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html

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/4/26 André Luis 

> Yes, its the correct way to solve...
>
> POST is when you are creating a new record, and PUT is when you are
> updating a record...
> *¹  Cake doesnt uses really the PUT method, but a hidden field with the
> method. (I think it´s because most browsers doesnt support PUT method)
> *²  When a validation error occurs, the request data is populated, so cake
> recognize as you are updating, not creating a new data... That´s why when
> you click once "send button" it will use the PUT method.
>
> I hope it helps
>
> Em sexta-feira, 26 de abril de 2013 12h50min58s UTC-3, Martin Aguilar
> escreveu:
>
>> I'm new to cakephp and I'm start loving it but today I had a problem on
>> adding new data (action add).
>> After baking users table the result was
>>
>> public function add() {  if ( $this->request->is('post') ) {
>>
>>
>>
>> I had add some validation on my model to names and more fields. The first
>> push on submit button show invalid validation messages but on second click
>> on submit did nothing.
>> I found that the  $this->request->is('post') becomes false after first
>> submit. I look on edit action and I see that also ask for put.
>>
>> to solve this problem all I had to do was
>>
>> public function add() {  if ( $this->request->is('post') || 
>> $this->request->is('put') ) {
>>
>>
>> It's working fine now for me and to to solve it on every baking I
>> personalized my baking template on my project
>> app/Console/Templates/**myTemplate/actions/controller_**actions.ctp
>>
>> I really don't know if this is the correct way to solve it, I've never
>> used PUT on PHP apps that I made and I don't see a big difference either
>> way.
>> I comment this because I don't know if is a bug on cake (tested on
>> version: 2.3.1 - 2.3.3 ).
>>
>> I hope this information helps and also I hope to see some comments to
>> understand a little bit more.
>>
>> tags: flash session message validation post put
>>
>  --
> 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: hasMany with group by

2013-03-12 Thread Mancho
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.




Re: Problem with paths to files

2012-09-11 Thread Mancho
Hi,

Make sure the following line is commented in file app/Config/core.php the:
//Configure::write('App.baseUrl', env('SCRIPT_NAME'));

If is commented, make sure the Apache has enabled the rewrite module.

-- 
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

-- 
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 to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.




Re: Number format in form fields?

2012-08-30 Thread Mancho
You can modify the $this->request->data formatting the number in controller
method with number_format() function.

2012/8/30 Ingo Siebeck 

> is there any way to get input fields, with decial(10,2) fields behind,
> working with other separators? I need the german number format like
> 1.000,59 but cake usses 1,000.59
>
> by the way, in chrome it's correct.
>
> how can I change the settings?
>
> thank you.
>
> --
> 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 to
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
>
>
>



-- 
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

-- 
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 to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.




Re: complex find()

2012-08-29 Thread Mancho
Are you sure the field exists in the database?

--
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

-- 
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 to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.




Re: loadModel

2012-08-29 Thread Mancho
Ok, your IndexsController has view() method? If not exists you need create
the  view() method in the IndexsController and in this method set the vars.

--
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

-- 
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 to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.




Re: cakephp 2.2.1 installation process in windows xp

2012-08-29 Thread Mancho
Depends of operating system. What operating system do you use?

--
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

-- 
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 to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.




Re: loadModel

2012-08-29 Thread Mancho
You never set to view file te $game and $word vars. Add to end of
index()method this:
$this->set('game', $game);
$this->set('word', $word);

I recommend you read the following:
http://book.cakephp.org/2.0/en/getting-started.html#blog-tutorial

--
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

-- 
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 to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.




Re: In CakePHP 2.x Extending Views not working.. I think the documentation for 2.0 is wrong. How to work Extending Views concept ?

2012-08-27 Thread Mancho
Remove white spaces and new lines before http://groups.google.com/group/cake-php?hl=en-US.




Re: Cakephp Control Panel (Limit the user access role)

2012-08-23 Thread Mancho
Yo can do this whit ACL (Access Control Lists).
http://book.cakephp.org/2.0/en/core-libraries/behaviors/acl.html

--
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


2012/8/23 Mr. Manager 

> Dear All,
>
> I am developing one application bases on cakephp 2.1 with requirement of
> limit the user access level and role. And so I would like to ask whether
> anyone know plugin or any other way that can do that.
>
> This is urgent.
>
> I am looking forward to hearing from you as soon as possible.
>
> Sincerely Yours,
> Mr. Manager,
>
> --
> 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 to
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
>
>
>

-- 
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 to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.




Re: I want to find records during last 24 hours

2012-08-21 Thread Mancho
Ok, try with this:

$users = $this->User->find('all', array('conditions' =>
array('User.last_seen BETWEEN NOW() -INTERVAL 1 DAY AND NOW()'),
'recursive' => -2);

I have doubt about INTERVAL sintax but this is the correct sintax for
cakephp.

--
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


2012/8/21 MetZ 

> Hi..
>
> No,, that one also return empty array :(
>
> Thanks anyway! any other suggestion?
>
> -Tom
>
>
> kl. 20:19:16 UTC+2 tirsdag 21. august 2012 skrev Mancho Murgan følgende:
>>
>> Try with this sintax:
>>
>> $users = $this->User->find('all', **array('conditions' =>
>> array('User.last_seen BETWEEN NOW() AND NOW() -INTERVAL 1 DAY'),
>> 'recursive' => -2);
>>
>> --
>> 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
>>
>>
>> 2012/8/21 MetZ 
>>
>>> How can I find the Users that are "last_seen" the last 24hours?
>>>
>>> [User][last_seen] => 2012-08-18 08:10:31
>>>
>>> last_seen is updated each time a logged in user browse the website with
>>> current timestamp
>>>
>>> This is what I have tried this far:
>>>
>>> $users = 
>>> $this->User->find('all',array(**'conditions'=>array('User.**last_seen >' 
>>> =>'BETWEEN NOW() AND NOW()- INTERVAL 24 HOURS'),'recursive'=>-2));
>>>
>>> But my array is coming back empty.
>>>
>>> Suggestions??
>>>
>>> As always!! You are awesome! Thanks for your time!
>>>
>>> -Tom
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "CakePHP" group.
>>> To post to this group, send email to cake...@googlegroups.com.
>>> To unsubscribe from this group, send email to cake-php+u...@**
>>> googlegroups.com.
>>>
>>> Visit this group at 
>>> http://groups.google.com/**group/cake-php?hl=en-US<http://groups.google.com/group/cake-php?hl=en-US>
>>> .
>>>
>>>
>>>
>>
>>  --
> 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 to
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
>
>
>

-- 
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 to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.




Re: I want to find records during last 24 hours

2012-08-21 Thread Mancho
Try with this sintax:

$users = $this->User->find('all', array('conditions' =>
array('User.last_seen BETWEEN NOW() AND NOW() -INTERVAL 1 DAY'),
'recursive' => -2);

--
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


2012/8/21 MetZ 

> How can I find the Users that are "last_seen" the last 24hours?
>
> [User][last_seen] => 2012-08-18 08:10:31
>
> last_seen is updated each time a logged in user browse the website with
> current timestamp
>
> This is what I have tried this far:
>
> $users = $this->User->find('all',array('conditions'=>array('User.last_seen >' 
> =>'BETWEEN NOW() AND NOW()- INTERVAL 24 HOURS'),'recursive'=>-2));
>
> But my array is coming back empty.
>
> Suggestions??
>
> As always!! You are awesome! Thanks for your time!
>
> -Tom
>
> --
> 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 to
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
>
>
>

-- 
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 to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.




Re: CakePdf - How To Start?

2012-08-16 Thread Mancho
You need increase PHP memory limit for this method.
You can get the current memory limit with ini_get() function, for example:
print_r(ini_get('memory_limit'));
After you can increment the memory_limit value with ini_set() function, for
example:
ini_set('memory_limit', '128M');
The second parameter must be greater than that obtained with the function
ini_get().

-- 
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

-- 
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 to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.




Re: Which is the best platform for develop with cakephp in team?

2012-08-15 Thread Mancho
I recommend the following plataform.
SO: Debian or Ubuntu.
Text editor: Sublime Text 2.
Repository: Subversion (command line).
Server: Apache.
Database: MySQL.
Methodology: Scrum.
ToDo List: Wunderlist.
I work in a group of eleven people.

On Tue, Aug 14, 2012 at 4:15 PM, abhijit kakade  wrote:
> Eclipse with SVN plugin is a good idea
>
>
> On Tue, Aug 14, 2012 at 8:36 PM, soda sonic  wrote:
>>
>> editor   netbean or  aptana  or  eclipse
>>
>> and trello or https://trello.com/  help you for management time
>>
>> 2012/8/14 Carachi 
>>>
>>> Hi,
>>> I would like to know which is for you the best platform for develop with
>>> Cakephp for a little team?
>>> which editor? Netbeans, Eclipse,...
>>> which version system? SVN, GIT, Mercurial,..
>>> server? debuger? etc.
>>>
>>> Thank you
>>>
>>> Bye
>>>
>>> --
>>> 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 to
>>> cake-php+unsubscr...@googlegroups.com.
>>> Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
>>>
>>>
>>
>>
>>
>>
>> --
>> Sincerely
>>
>> Noom .  086 688 5686
>>
>>
>> --
>> 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 to
>> cake-php+unsubscr...@googlegroups.com.
>> Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
>>
>>
>
>
>
>
> --
> Abhijit Kakade
> LAMP Developer,
> MCP,CCNA
> Mob : +91-9923729250
>
> --
> 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 to
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
>
>



-- 
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

-- 
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 to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.