Hi what function do i need to write into Page.php and how to add it on template if i wanna randomly include .ss files from include folder named 1.ss, 2.ss, 3.ss, 4.ss, 5.ss, 6.ss .
Tryed:
in Page.php:
function RandomNumber() {
return rand(1, 6);
}
and
in Page.ss:
<% include $RandomNumber %>
but it didnt work just saw in template after flushing : <% include 4 %> but it didnt call the including just generated text like so where i was going wrong