As you have already heard DotKernel is intended to speed things up a bit,

so we added some features to help with this:

– errors (use $_SESSION[‘kernel’][‘errors’][] to store error messages and the script will automatically show the errors)

– autofill form fields in case of errors

use $_SESSION[‘kernel’][‘post_data’] = $_POST;

just before redirecting back to the form and the script will autofill the fields.

NOTICE: fields names and TPL tags must have the same names for autofill to work.

NOTICE: autofill will only work for simple input fields , checkboxes, radio and dropdowns won’t work.

– pagination , use {PAGINATION} tag in your tpl file

Call example: $tpl->paginator($data, $link, $currentPage);

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>