A link to view page.

2010-03-23 Thread jiru
Hii, Can anybody add a link on this code ? And when click on the link it should redirect to the view of the search result.( ie.to array('controller' = 'members', 'action' = 'view')) code : echo 'li onClick=fill(\''.addslashes($results['members']

Re: A link to view page.

2010-03-23 Thread jiru
hii, It was a long time to cu. ok here it shows the old error :Notice 8: Undefined variable html On Mar 23, 1:32 pm, Amit Rawat rawatami...@gmail.com wrote: Try this:- li ?php echo $html-link($results['members']['name'],'/members/view',null);? /li Enjoy: Amit:) Check out the new

Re: A link to view page.

2010-03-23 Thread jiru
I tried this but shows the Undefined variable html : echo 'li', $html-link($results['members'] ['name'],array('controller' = 'members', 'action' = 'view', $results['Member']['id']),array('class' = 'MembersController')), '/ li'; On Mar 23, 1:32 pm, Amit Rawat rawatami...@gmail.com wrote: Try

Re: A link to view page.

2010-03-23 Thread jiru
helper already included. var $helpers = array('Html', 'Form', 'Ajax', 'Upload', 'Javascript'); On Mar 23, 3:29 pm, Amit Rawat rawatami...@gmail.com wrote: include the Html helper in your controller Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP

Re: A link to view page.

2010-03-23 Thread jiru
', 'Javascript'); but shows the same error. On Mar 23, 4:07 pm, Sam Sherlock sam.sherl...@gmail.com wrote: Is this code within a helper? if so $this-Html-link(...); - S On 23 March 2010 10:55, jiru jiransl...@gmail.com wrote: helper already included. var $helpers = array('Html', 'Form

Create a link

2010-02-24 Thread jiru
In this code echo 'li onClick=fill(\''.addslashes($results['members'] ['name']).'\');'.$results['members']['name'].'/li'; this will shows the result from the database. Here I need a link to the view of the result when I click the result. I will try this but shows error : echo 'li',

how to get the upcoming birthday using query

2010-01-20 Thread jiru
Haii, Plz help me! The following query retrieve the name and age from a member table whose birthdays falling between current date and current date +7.Actullay this query is working correctly.But i do'nt know how to use this query directly with in the controller.Does anyone know how to use the

How to change a field non-editable

2009-12-22 Thread jiru
Hii, In my edit file , i don't want to edit two fields. How to make a field as non editable.? Need to display only the value. Plz help me. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are

query resultant display on index

2009-12-15 Thread jiru
Hii , programmers, This is my controller function. function index() { $result=$this-IssueLibraryItem-query(select id,title from library_items where library_items.id in (select issue_library_items.library_item_id from issue_library_items where return_date is null);); $options = array();

dropdown list validation

2009-11-20 Thread jiru
I have a dropdown list in my form. How can i give it a validation criteria such that, if i try to enter data from it to database it should check for uniqueness. If already an entry is there in the database for it, it should display a message. We can do it for a text area using validation in the

sql query in model

2009-11-13 Thread jiru
) (issue_library_item.php) regards, jiru -- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-...@googlegroups.com. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com

saving date to mysql problem

2009-11-12 Thread jiru
hii, echo $form-input('issue_date',array('type'= 'text','id'= 'datepick')); this is my issue date input field in add.ctp. I'm displaying the default(current)date using jquery. It showing like 11/12/2009 in text field. In my MySql db the field is -- 'issue_date DATE'. After saving the data in

Re: saving date to mysql problem

2009-11-12 Thread jiru
Thank you.. On Nov 12, 3:13 pm, Aurimas a.lic...@gmail.com wrote: Change date format 11/12/2009 to 2009-12-11 in your datepicker or change format before saving. MySQL displays DATE values in ‘-MM-DD’ format On Nov 12, 12:08 pm, jiru jiransl...@gmail.com wrote: hii, echo $form-input

add date from one field

2009-11-10 Thread jiru
date.(PC date). My issue-date field shows current system date. echo $form-input('issue_date'); Allways the due date should display the date +15 days from the issue date. Vey urgent. please help me. regards, jiru -- You received this message because you are subscribed

Re: Date Calculation Problem

2009-11-10 Thread jiru
...@gmail.com wrote: I do a lot of this kind of thing: date('Y-m-d H i s', strtotime('+1 hour',strtotime($start_datetime))); You can use handy things like +2 monday to get to monday two weeks from now and a number of cool things that I prioritize. /Martin On Oct 30, 8:08 am, Jiru jiransl

null value from date field.

2009-11-10 Thread jiru
Hai, Please give me the code for to check date field is null or not. ? regards, jiru -- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-...@googlegroups.com. To unsubscribe from this group

time duration

2009-10-30 Thread Jiru
Hi, I have a time field in the form. In the combo box it have meridians[am/pm]. As I want duration I need hh/mm instead of am/pm in the drop down.Please give suggessions for this. Thank you. --~--~-~--~~~---~--~~ You

Date Calculation Problem

2009-10-30 Thread Jiru
hii, In my project there is issue date and due date in dropdown list. My problem is, if the issue date is October 10 2009 i want to display the due date as October 20 2009 automatically. How i can add/calculate the date. regards, jiru

Re: time duration

2009-10-30 Thread Jiru
Even though tried to change the options the hh/mm option is not available. On Oct 30, 11:09 am, John Andersen j.andersen...@gmail.com wrote: Please read the cook book! http://book.cakephp.org/view/189/Automagic-Form-Elements#options-time... Enjoy,    John On Oct 30, 8:00 am, Jiru jiransl

Re: time duration

2009-10-30 Thread Jiru
...@gmail.com wrote: Please show the code with what you are trying to accomplish, so that we may better be able to help you! Enjoy,    John On Oct 30, 9:19 am, Jiru jiransl...@gmail.com wrote: Even though tried to change the options the hh/mm option is not available. On Oct 30, 11:09 am

Problem with view obtained from baking

2009-10-29 Thread Jiru
Hii, When we tried to edit the baked views like add.ctp, view.ctp etc the changes made in the forms are not reflecting. How to track this problem ? Plz Help. regards, jiru --~--~-~--~~~---~--~~ You received this message because you

Problem with DATE.

2009-10-28 Thread Jiru
Hii Programmers , In cakephp when I use DATE field it displays the dropdown list with year limit 1989-2029 how can we get the date from 1950? regards, jiru --~--~-~--~~~---~--~~ You received this message because you are subscribed

what is the tentative availability date roadmap of CakePHP 1.3 ?

2009-10-15 Thread Jiru
Hai, Developers , What is the tentative availability date roadmap of CakePHP 1.3 ? regards, jiru --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake

need text box for ajax input and output.

2009-10-14 Thread Jiru
it ? regards, jiru --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to cake-php+unsubscr

How to name the fields when 2 fields in a table refers to same field in another table

2009-10-06 Thread Jiru
always be: table_name_in_singular_form_id and in our case it should be user_id. But we can't have two fields with same field name. Any thoughts on how we should name the two fields for services table ? regards, jiru --~--~-~--~~~---~--~~ You received

autocomplete program code error.

2009-09-28 Thread Jiru
; ?/li ?php endforeach; ? /ul anybody can correct the code in getData funcion or anywhrer.? or getData.ctp file. help me for ajax function page and css , js file . regards, jiru. --~--~-~--~~~---~--~~ You received this message because you

autocomplete program

2009-09-25 Thread Jiru
, jiru --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com

i can't get data from table in Autocompletion

2009-09-24 Thread Jiru
In my autocomplete_controller() i use the function function getData(){ $this-layout = 'ajax'; $this-set(typed,$this-data['Autocomplete']['AutocompleteName']); for($i=0;$i10;$i++){ $items[] = rand(1,100); }