Re: A link to view page.

2010-03-23 Thread jiru
27;'; is the code. This is inside a function search() and on top I added var $helpers = array('Html', 'Form', 'Ajax', 'Upload', 'Javascript'); but shows the same error. On Mar 23, 4:07 pm, Sam Sherlock wrote: > Is this code within a helper?

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 wrote: > include the Html helper in your controller Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You

Re: A link to view page.

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

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 wrote: > Try this:- > > > link($results['members']['name'],'/members/view',null);?> > > > Enjoy: > Amit:) Check out the new CakePHP Questions site http://cakeqs.or

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 ''.$results['members']['name'].''; I'm faild to add the link on it. Plz help me. Check out the ne

Create a link

2010-02-24 Thread jiru
In this code echo ''.$results['members']['name'].''; 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 '', $html->link($results['members'] ['name'],array('controller' => 'members', 'action'

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 foll

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(); foreac

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 mo

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...@googlegroup

Re: saving date to mysql problem

2009-11-12 Thread jiru
Thank you.. On Nov 12, 3:13 pm, Aurimas 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 wrote: > > > hii, > > > echo $for

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 da

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

Re: Date Calculation Problem

2009-11-10 Thread jiru
:59 pm, Martin Westin 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

add date from one field

2009-11-10 Thread jiru
uary-1 in dropdown list. My problem is how i can display, after 15days in dropdown list from the current system 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

Re: time duration

2009-10-30 Thread Jiru
input('comments'); ?> end('Submit');?> On Oct 30, 1:23 pm, John Andersen 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 wrote: >

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 wrote: > Please read the cook book! > > http://book.cakephp.org/view/189/Automagic-Form-Elements#options-time... > > Enjoy, >    John > > On Oct 30, 8:00 a

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

time duration

2009-10-29 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 receiv

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 are

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 to the

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, sen

need text box for ajax input and output.

2009-10-14 Thread Jiru
//select.ctp $v) { echo "$v"; } } ?> here it shows the values in dropdown list when i used to select it using Ajax. But for the same process i need it in text boxes, both the input and output. How i can do it ? regards, jiru --~--~-~--~~~---

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

2009-10-06 Thread Jiru
eign keys should 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 --~--~-~--~~~-

autocomplete program code error.

2009-09-28 Thread Jiru
yout = 'ajax'; $this->set('items',$this->Autocomplete->find('all',array())); } } ?> getData.ctp --- anybody can correct the code in getData funcion or anywhrer.? or getData.ctp file. help me for ajax function page and css , js file .

input text box instead of dropdown list

2009-09-28 Thread Jiru
hii , In my project the names are displayed in dropdown list. bt i need it in input text box with ajax autocomplete code. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send e

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...@google

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;$i<10;$i++){ $items[] = rand(1,100); }