Template Tags

Namespace

Define the template namespace at the top:

<?php namespace Redaxscript\Template; ?>

Partial

Include a single or multiple PHTML partials:

<?php echo Tag::partial(mixed $file); ?>

Base

Create a <base> tag inside your <head> tag:

<?php echo Tag::base(); ?>

Title

Create a <title> tag inside your <head> tag:

<?php echo Tag::title(string $text); ?>

Meta

Create a <meta> tag inside your <head> tag:

<?php echo Tag::meta(); ?>

Link

Create a <link> tag inside your <head> tag:

<?php echo Tag::link(); ?>

Style

Create a <style> tag inside your <head> tag:

<?php echo Tag::style(); ?>

Script

Create a <script> tag inside your <head> tag:

<?php echo Tag::script(); ?>

Breadcrumb

Display the breadcrumb:

<?php echo Tag::breadcrumb(); ?>

Content

Display the contents from the router:

<?php echo Tag::content(); ?>

Article

Display the articles:

<?php echo Tag::article(int $categoryId, array $optionArray); ?>

Comment

Display the comments:

<?php echo Tag::comment(int $articleId, array $optionArray); ?>

Extra

Display the extras:

<?php echo Tag::extra(int $extraId, array $optionArray); ?>

Navigation

Display the navigation:

<?php echo Tag::navigation(string $type, array $optionArray); ?>

Comment form

Display the comment form:

<?php echo Tag::commentForm(int $articleId); ?>

Search form

Display the search form:

<?php echo Tag::searchForm(string $table); ?>
Edit on GitHub