Custom php.ini and .htaccess

2009-05-18 Thread Gabriel A. Gonzalez
Hi guys! I using a custom php configuration on dreamhost and works fine with standalone php files. But i can't get it working with cakephp(Cakephp works fine without the custom php.ini but i need it to increase te max upload size) The thing is when i try to use the custom config with

Re: Forcing user to access her data only

2009-05-18 Thread Gabriel A. Gonzalez
Hi Brian, i assume that each course have an user_id right? so when you list, edit or view the courses just use a condition to search all the courses of the current user... ex: $cond = array('Course.user_id' = $Current_user_id); $this-set('courses', $this-paginate('Course', $cond)); Brian Lee

Re: Datetime difference

2009-05-18 Thread Gabriel A. Gonzalez
You could calculate the time difference on the fly with mysql TIMEDIFF function [http://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html#function_timediff] instead of store it in the db And this [http://www.gidnetwork.com/b-16.html] may help to store the time difference.

Re: Submit/Cancel problem

2009-05-18 Thread Gabriel A. Gonzalez
Use reset or button NOT submit type for the cancel button. input name=Cancel value=cancel type=reset or input name=Cancel value=cancel type=button Nancy escribió: So, I added a submit and a cancel button to my ajax form and it doesn't matter which you press, it always returns the submit