I am add some jquery and css into a joomla component file view/edit/tmpl/default.php. I know I need to use jdoc include, but what is the steps of doing so? Where should I put the jdoc:include?
The code is like this.
<?php
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
$row = $this->row;
?>
<div class="componentheading" style="margin-bottom:10px;">Edit Event</div>
<form id="form" method="post" action="index.php?option=com_event&view=save" >
<table >
<tr>
<td>Title</td>
<td><input type="text" name="title" value="<?php echo $row->title;?>"></td>
</tr>
<tr>
<td>Start Time</td>
<td><input type="text" name="from" value="<?php echo $row->from;?>" id="datetimepicker"></td>
</tr>
</form>
The files that need to be include
-jquery.datetimepicker.css
-jquery.datetimepicker.js
-jquery.js