Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x-editable datepicker not working #18

Open
MohammedAbir opened this issue Feb 2, 2015 · 4 comments
Open

x-editable datepicker not working #18

MohammedAbir opened this issue Feb 2, 2015 · 4 comments

Comments

@MohammedAbir
Copy link

display this message
A non well formed numeric value encountered

this is my code

$val, 'placement' => 'right', 'pluginOptions' => [ 'name' => 'transactionDate', 'value' => date('Y-m-d',$val->transactionDate), 'format' => 'yyyy-mm-dd', 'viewformat' => 'dd/mm/yyyy', 'datepicker' => [ [ 'weekStart' => 1 ] ], ] ]); ?>
@MohammedAbir
Copy link
Author

Bro if fixed this problem please give me solution .

@ruskid
Copy link
Contributor

ruskid commented Feb 4, 2015

man. Really learn how to copy paste code to github with highlighted syntax. Easier to read.
Second this is php error, not an extension error. try to investigate yourself.
I guess that $val->transactionDate is not a number, is not a timestamp.

Can you try something like

'value' => date('Y-m-d', 12345),

@MohammedAbir
Copy link
Author

bro i tried using this code

'value' => date('Y-m-d', 12345), and

'value' => date('Y-m-d',strtotime($val->transactionDate)),

'value'=>'2015-02-04',

'value'=>2015-02-04,

but still display this error

Invalid path alias: @xeditable/assets/

@MohammedAbir
Copy link
Author

Bro please give me solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants