timezone handling with date_default_timezone_set() in app_controller

2009-11-01 Thread _Z
g the function like this? What would be the 'Cake way' of dealing with timezones? Thank you! _Z --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cak

Re: Maintaining drop down menus when validation fails?

2009-04-29 Thread _Z
    } >         } >         $this->set( >                 'foods', >                 $this->Food->find('list', array(...)) >         ); > > } > > This way, the only time you're not fetching the options is when you've > redirected after a successf

Maintaining drop down menus when validation fails?

2009-04-22 Thread _Z
Hello Cake Community! I was wondering if there is a standard approach to maintaining drop down menus within a view when the submitted data does not pass validation (in the model.) For example, I have a dropdown menu of foods and other fields within a view. When submitted, the data does not pass

$this->here DOUBLE path problem

2008-12-13 Thread _Z
Hello, Using $this->here within my $form->create(..) brings me to action="/ path/to/cake/path/to/cake/action/id" while my installation is in "/ path/to/cake". This then causes the action to fail, as an extra 'path/to/cake' is added. (This is a generalized example.) Anyone else having this tro

Re: Association not producing dropdown list, help! :(

2008-12-13 Thread _Z
p getting a textbox :( Thank you all very much for your help! _Zach On Dec 13, 8:58 am, Alexandru Ciobanu wrote: > _Z wrote: > > I validated with pr($store_tables); That I am indeed getting back a > > list of tables. > > > However the echo $form->input('store_table

Re: Association not producing dropdown list, help! :(

2008-12-12 Thread _Z
need to check? There is a field called 'name' in the store_tables DB table. Thank you! On Dec 12, 2:46 pm, Alexandru Ciobanu wrote: > _Z wrote: > > Hello, > > > I am expecting a dropdown box in my /add action, but only a textbox is > > produced. > > In

Re: Association not producing dropdown list, help! :(

2008-12-12 Thread _Z
able model is working as expected..? > > On Dec 12, 6:17 pm, _Z wrote: > > > Hello, > > > I am expecting a dropdown box in my /add action, but only a textbox is > > produced. > > Another field is associated and configured the same way, and I get a > > d

Association not producing dropdown list, help! :(

2008-12-12 Thread _Z
Hello, I am expecting a dropdown box in my /add action, but only a textbox is produced. Another field is associated and configured the same way, and I get a dropdown box. Details: The association is setup so that 'store_table' belongsTo 'Waitlist'. In the /add.ctp , echo $form->i

$this->Auth->User('group_id') will not return value

2008-11-27 Thread _Z
Hello, I am attempting to retrieve the value of the group_id attribute in the User table. I can see the value for User object within the debug output, and confirm that this value exists from the database. Other values, such as email, name can be retrieved just fine with $this->Auth->User->('ema

Re: calling exit() after redirect STILL redirects

2008-11-27 Thread _Z
Hi Rafael, I have this set as: $this->Auth->loginRedirect = array('controller' => 'users', 'action' => 'index'); and the problem still persists without deleting that key. :s Thanks for the input! On Nov 27, 12:45 pm, Rafael Bandeira aka rafaelbandeira3 <[EMAIL PROTECTED]> wrote: > > De

Re: calling exit() after redirect STILL redirects

2008-11-27 Thread _Z
as well.  I would just use > $this->redirect('/users/login');  Of course it is always better to use array > > urls. > > -Mark > > On Nov 24, 4:34 pm, _Z <[EMAIL PROTECTED]> wrote: > > > Hello, > > > I am redirecting a user to a login page after t

Re: calling exit() after redirect STILL redirects

2008-11-27 Thread _Z
ion->del('Auth.redirect'); to kill the redirect from Auth and just go back to the login screen to logon with registered credentials. Thanks for your help On Nov 24, 9:45 pm, "David C. Zentgraf" <[EMAIL PROTECTED]> wrote: > On 25 Nov 2008, at 06:34, _Z wrote: > > > Howe

calling exit() after redirect STILL redirects

2008-11-24 Thread _Z
Hello, I am redirecting a user to a login page after they register for an account. A message is displayed to login with their new credentials. However when the form is submitted to login, they are instead redirected back to the register view. It would appear that code after the redirect() call i