0

I am new to joomla, want to implement two calenders in a page ...

 From : 
    <?php
    echo JHTML::calendar('sch_from', 'sch_from', '%Y-%m-%d');
    ?>
 To :
    <?php
    echo JHTML::calendar('sch_to', 'sch_to', '%Y-%m-%d');
    ?>

But first calendar only working... is there any issue in code?

1

The arguments you have supplied is wrong.

The function has implemented with following arguments:

public static function calendar($value, $name, $id, $format = '%Y-%m-%d', $attribs = null) 

It should be like this:

JHTML::calendar('', 'sch_from', 'sch_from', '%Y-%m-%d');
JHTML::calendar('', 'sch_to', 'sch_to', '%Y-%m-%d');

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.