This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

Osobaji21736
Osobaji21736

hallo all i tried to run this code but is not working

{% for col in explode(',',record.color) %} html Tags with {{col}} {% endfor %}

the error : Unknown "explode" function.

but this function exist in Laravel and poor PHP

Note I am new here

Last updated

Osobaji21736
Osobaji21736

I use jQuery to solve my problem but this not right way


$(function() {
var str = "{{record.color}}" ;
var res = str.split(",");
res.forEach(function(entry) {
.......
........
.......
}); });

Last updated

1-2 of 2

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.