Mecha CMS

Add extra functionality to the core engine.

Comments

Author: Taufik Nurrohman · 65 Views

Tweet

Built–in commenting system.

Download Latest Version

Edit the page.php file in your active shield folder then put this snippet after the </article> tag:

<?php Shield::get('comments'); ?>

Constant 

This extension automatically adds a comment folder within the lot folder, which will also automatically set a new constant based on the folder name with a value of the folder path:

COMMENT

Class 

We now have a Comment class which works the same as the Page class, but with custom hook namespace:

Comment($input = null, $lot = [], $NS = 'comment');

Example:

$comment = new Comment('.\www\lot\comment\article\test-page\2014-05-05-09-09-32.page');

Dependency 

Extension 

Conflict With 

Plugin 

0 Comments

No comments yet.