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?
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
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
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
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
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'
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
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
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
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
) (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
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
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
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
: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
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
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:
>
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
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
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
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
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
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
//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
--~--~-~--~~~---
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
--~--~-~--~~~-
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 .
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
,
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
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);
}
29 matches
Mail list logo