Re: Upload a File with CakePHP 1.2.0.5137alpha

2008-07-21 Thread bmgz
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 =

Re: set default selected value in date select as empty

2008-07-10 Thread bmgz
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

Re: set default selected value in date select as empty

2008-07-10 Thread bmgz
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

set default selected value in date select as empty

2008-07-09 Thread bmgz
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

Re: set default selected value in date select as empty

2008-07-09 Thread bmgz
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,

display var from view in layout

2008-07-05 Thread bmgz
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

Re: display var from view in layout

2008-07-05 Thread bmgz
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

form helper not automagically displaying value

2008-07-04 Thread bmgz
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

Re: Error Undefined property: pdfHelper::$helpers [CORE\cake\libs\view\view.php, line 875]

2008-07-04 Thread bmgz
... 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

problem with conditions in model association

2008-07-02 Thread bmgz
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

[Dnsmasq-discuss] local resolve delay when internet down

2005-09-27 Thread bmgz
I have a small prob. When my internet connection is down I have a delay when trying to resolve local hosts (eg. ssh myserver). This is strange as it seems that dnsmasq is trying to resolve upstream or something? /etc/resolv.conf: search mylocaldomain.net nameserver 192.168.0.1 #(localhost)

[ubuntu-art] huh?

2005-09-01 Thread bmgz
Are we going to get a wiki or something? -- ubuntu-art mailing list ubuntu-art@lists.ubuntu.com http://lists.ubuntu.com/mailman/listinfo/ubuntu-art

Re: access the text being generated in other windows

2005-07-20 Thread bmgz
algebraist wrote: is there a way python can access the text being generated in other windows, by other programs/processes? my guess- you will probably have to resort to some rather downright dirty screen scraping. -- http://mail.python.org/mailman/listinfo/python-list