Re: Security Component $form-file()

2009-08-29 Thread pph7
Hi, did you ever solved this issue or got any response? I seems I have the same problem.. Greets, mark VoiDeT wrote: Hey Everyone! I am struggling to write a file upload here. I have the security component enabled in my app_controller and as soon as i place a $form- file() in the form

Re: Defining custom constants in models

2009-08-26 Thread pph7
Thx! I didnt know about that yet! On Aug 26, 6:31 am, Dr. Loboto drlob...@gmail.com wrote: If you're using PHP5 you can try class constants for this:http://ru2.php.net/manual/en/language.oop5.constants.php Because defines are _global_ as euromark mentioned. On Aug 25, 5:53 pm, pph7

Defining custom constants in models

2009-08-25 Thread pph7
Hi there! I am looking for a way to define custom constants in models. I realize it is possible to define global constants in bootstrap.php and this works well but for example, when I want to define user roles for different acces rights like define(USER_ROLE_READER, 1);