mardi 18 octobre 2016

why error on Parse error: syntax error, unexpected ''+name+'' (T_CONSTANT_ENCAPSED_STRING), expecting ',' or ')'

I found the error when using DataTable in laravel, to summon images of asset :

columns: [
{ 'name': 'image',
     'render': function(name, type, row) {
     return '<img src="" />';
]

an error :

Parse error: syntax error, unexpected ''+name+'' (T_CONSTANT_ENCAPSED_STRING), expecting ',' or ')' 

whether writing on javascript or which one? please give solution. thanks



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire