Re: Problem with year dropdown

2014-01-28 Thread AD7six


On Tuesday, 28 January 2014 14:43:50 UTC+1, Sam Clauw wrote:
>
> Is there nobody who can help me with this? Could it be possibile dat the 
> datebase field type "year" isn't supported in CakePHP? If yes, what should 
> I use instead? Varchar or...?
>

> * 'type' => 'year',*

A year input is intended to be used as part of a date - it doesn't work on 
it's own. If you check the html source your data will be ala:



and not



Instead of using `year` - I suggest to use a select (which is all the year 
input is) like so:

$years = range(1954, date('Y') + 1);
$years = array_combine($years, $years);

'opened' => array(
'label' => 'Year opening',
'options' => $years,
'empty' => 'Kies...'
),

AD

-- 
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/groups/opt_out.


Re: Problem with year dropdown

2014-01-28 Thread Sam Clauw
Is there nobody who can help me with this? Could it be possibile dat the 
datebase field type "year" isn't supported in CakePHP? If yes, what should 
I use instead? Varchar or...?

-- 
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/groups/opt_out.


Re: Rendering PDF from POST basead searches

2014-01-28 Thread Nilson Pena
Thank you.

Nilson


Prof. Dr. *Nilson Pena*
Av. ACM, 585, sl. 1205
Salvador - Bahia
71 - 3012-3031


On Tue, Jan 28, 2014 at 9:37 AM, euromark  wrote:

> I gave you an answer as comment.
>
>
> Am Montag, 27. Januar 2014 16:04:40 UTC+1 schrieb Nilson Pena:
>
>> Hi folks,
>> I use mPDF and the solution proposed in this excellent post [1].
>> Everything works well if the action uses GET. Example:
>> /controller/action/2.pdf wil use the view.ctp inside the pdf folder and
>> render the 2.pdf file.
>>
>> But there are cases that I have to use a form to POST some parameters to
>> do a especific search and return this data to the view. In this case, the
>> /controller/action/2.pdf won't work, once the action only allows POST.
>>
>> How can I workaround this "issue" and keep using this approach on serving
>> PDF?
>>
>> Thank You!
>>
>> Nilson
>>
>> [1] http://www.dereuromark.de/2011/11/21/serving-views-as-files-in-cake2/
>>
>

-- 
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/groups/opt_out.


Re: 3.0 FormHelper branch?

2014-01-28 Thread José Lorenzo
Most of the progress of the FormHelper has already been merged directly to 
3.0. The thing is, FormHelper has not been touched yet! We are currently 
rewriting each input type as a separate, configurable class, which is 
mostly done so far.

On Monday, January 27, 2014 9:29:19 PM UTC+1, RobertM wrote:
>
> Is there any public branch where can we see how new FormHelper will be 
> implemented?
> Would love to play with 3.0's little more ...
>
> R
>

-- 
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/groups/opt_out.


Re: Rendering PDF from POST basead searches

2014-01-28 Thread euromark
I gave you an answer as comment.


Am Montag, 27. Januar 2014 16:04:40 UTC+1 schrieb Nilson Pena:
>
> Hi folks,
> I use mPDF and the solution proposed in this excellent post [1]. 
> Everything works well if the action uses GET. Example: 
> /controller/action/2.pdf wil use the view.ctp inside the pdf folder and 
> render the 2.pdf file.
>
> But there are cases that I have to use a form to POST some parameters to 
> do a especific search and return this data to the view. In this case, the 
> /controller/action/2.pdf won't work, once the action only allows POST.
>
> How can I workaround this "issue" and keep using this approach on serving 
> PDF?
>
> Thank You!
>
> Nilson
>
> [1] http://www.dereuromark.de/2011/11/21/serving-views-as-files-in-cake2/
>  

-- 
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/groups/opt_out.