Search the Community
Showing results for tags 'template url'.
-
I have this form in my html which works perfectly locally. Once I had this as a template my form doesnt work well. This has a calendar button available and here is the problem. I already had this php applied: <?php $myCalendar = new tc_calendar("date3", true, false); $myCalendar->setIcon("_php/calendar/images/iconCalendar.png"); $myCalendar->setPath("_php/calendar/"); $myCalendar->setYearInterval(2012, 2022); $myCalendar->dateAllow('2012-08-30', '2022-08-31'); $myCalendar->setDateFormat('j F Y'); $myCalendar->writeScript(); ?> This means that I would have to paste this code which I have applied to any inner url I have in the html such as this example: <input type="image" src="<?php echo $config->urls->templates?>_img/submit_button.png" id="input_img" name="submit" /> I've tried inserting only echo $config->urls->templates?. This way: <?php $myCalendar = new tc_calendar("date3", true, false); $myCalendar->setIcon("$config->urls->templates_php/calendar/images/iconCalendar.png"); $myCalendar->setPath("$config->urls->templates_php/calendar/"); $myCalendar->setYearInterval(2012, 2022); $myCalendar->dateAllow('2012-08-30', '2022-08-31'); $myCalendar->setDateFormat('j F Y'); $myCalendar->writeScript(); ?> If I wanted the url to work how should I do it with processwire?