<?php

class Asset
{
	public function css($src)
	{
		?>
			<link rel="stylesheet" href="<?= WEBROOT . $src ?>">
		<?php
	}

	public function script($src)
	{
		?>
			<script src="<?= WEBROOT . $src ?>"></script>
		<?php
	}
}
<?php

class Asset
{
	public function css($src)
	{
		?>
			<link rel="stylesheet" href="<?= WEBROOT . 'css/' . $src ?>">
		<?php
	}

	public function script($src)
	{
		?>
			<script src="<?= WEBROOT . 'js/' . $src ?>"></script>
		<?php
	}
}

Set correct path to css and js
Set correct path to css and js