This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
tudor.danes28620
Hi all,
i have a problem with some PHP code defined at the top of a layout file (default.htm) which does not executes. It is just printed on the page. The layout file is the default layout for a plugin. Here is the source file (default.htm) :
title = "default"
==
<?php
use Config;
function onStart() {
$this['select2_Api_Url'] = Config::get('select2_Api_Url');
}
?>
==
<form action="#" method="POST">
<div id='my-selects'>
<label for='select-codes'>Code de loi:</label>
<select id='select-codes' class='select2' name='select-codes'>
<option value="">Choisir un code</option>
</select>
<select id='select-articles' name='select-articles'>
<option value="">Choissisez l'article</option>
</select>
</div>
</form>
Last updated
1-1 of 1