Date picker not working in my web application

Permalink 2 users found helpful
Hi
I am working in the web application development using concrete5.6.1.2
the application is work when the concrete logged in the admin.
for ex: i am using core concrete files in my application are

<?php $dt = Loader::helper('form/date_time'); ?>


<?php echo $dt->date('cDate');?>


but after sign out the application the form and some of function not worked.

This helper provides a calendar selector option is not show if my c5 application logged out

why its not work in the normally.
it must be to login the admin to use application
how to solve this problem, please anybody could help me..

thanks
Kumar

 
cjramki replied on at Permalink Reply
cjramki
I have also the same problem. Date-picker is not working, when i approach my application as guest (not registered) user and non-administror (registered but not in administrator group). If i login as administrator, The date date-picker is working.

Why it is not working... Please give me some suggestions...
cjramki replied on at Permalink Best Answer Reply
cjramki
Hi shankumar,

I found the solution for our problem from how-to by Andrew
http://www.concrete5.org/documentation/how-tos/developers/javascrip...

In single pages, we should call html helper header items...
Just place the below code in your controller of your single page. Its working...
public function view() {
   $html = Loader::helper('html');
   $this->addHeaderItem($html->css('jquery.ui.css'));
   $this->addHeaderItem($html->css('ccm.dialog.css'));
   $this->addHeaderItem($html->javascript('jquery.ui.js'));
   $this->addHeaderItem($html->javascript('ccm.dialog.js'));
}


I think its helpful to you...