Hi All,
I am new to Cake 1.2, (dabbled with 1.? a year ago, but spend more
time with Rails..) I am really getting into this framework, it is
really fun, much better than earlier versions.
I am however stuck with a problem relating to model associations:
Consider the following in my Contract
I set('propery') in the controller but somehow the value field is
turning up blank in the form
?php echo $form-hidden('Property.id'); ?
...value=...
so I have to manually specify it:
?php echo $form-hidden('Property.id', array('value' =
$property['Property']['id'])); ?
...value=520...
Is this
...
class fpdfHelper extendsFPDF{
var $helpers= array();
var $title...
...
Or just:
var $helpers;
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group, send email
Hi All,
I need to display a few vars from my view in the layout.. I don't want
to complicate things by adding another layout so this is basically
what I want to do:
I have a script which uses Google Maps. I need to assign a block of
javascript to a var in between the head tags and need to
I managed to figure this out, however it wasnt as elegant or simple as
it could be..
--~--~-~--~~~---~--~~
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
I am wanting to know how do I make the default selected value in a
date select the empty value, if the value from the database is null?
It always defaults to todays date?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
On Jul 9, 8:12 pm, b logica [EMAIL PROTECTED] wrote:
...
However, if you're using the $form-input() method (and having Cake
figure out that a set of dates is required), you need to include
'empty' = true to the options array (note the different key name).
This is precisely the case,
On Jul 10, 3:19 am, b logica [EMAIL PROTECTED] wrote:
If the blank option is not selected, how, then, is the blank
displayed? Or, do you just mean that, while a blank option is
included in the select list, it's not selected?
Also, are you 100% certain that that field in that particular row
OOPS! I sorted it out! the problem was I had array('empty' = '')
(ie. empty string) instead of TRUE
soz my bad, Im new to Cake (that's my excuse anyhoo...)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP
You can apply whatever naming convention you want when you copy the
uploaded TEMPORARY FILE to what the final destination will be. eg:
$tmp_file = $this-data['Gallery']['submitedfile']['tmp_name'];
/* you could create a helper that generates the filename */
$my_new_file =
10 matches
Mail list logo