Link Search Menu Expand Document

Docs Command

Table of contents


Puko docs command build to simplify controller creation also for speed up backend development. Implementation is quite simple. Just put the command above the class name or function name doc command. For example:

/**
 * #Master master-admin.html
 * #Value title Welcome
 * #Date before 31-08-2016 12:00:00
 */
 public class registrasi extends View {

Because the command placed like we adding comment in our code. Your code inside the function code itself is clean. But, don’t forget that command must identified with first hashtag # character. Command always skipped by puko if the hashtag character not present.

/**
 * #...
 */

This is complete catalog command available.

CommandKey IdentifierValueFunction
#ValuenameDidit VellizTo send data named name with value Didit Velliz directly to the view
#Templatemastertrue/falseOption to use master layout
#Templatehtmltrue/falseOption to output html file in browser
#Templatecachetrue/falseOption to cache output html with pte cache driver
#Datebefore/afterd-m-Y H:i:sOption for accessing function. So if the server time is outside the specified time then function cannot be accessed
#ClearOutputbinarytrue/falseOption to output results processed through the framework
#Authbearertrue/falseOption for accessing functions. true to allow logged in only, false to allow all
#Authsessiontrue/falseOption for accessing functions. true to allow logged in only, false to allow all
#Authcookiestrue/falseOption for accessing functions. true to allow logged in only, false to allow all
#Master-master.htmlUsing a custom file for the master layout
#DisplayException-true/falseForward the process to View or Service middleware when an exception occurs
#UnderConstruction-true/falseDisplay Under Construction page
#Permission\pukoframework\auth\Bearer@\plugins\auth\UserAuthpermissions@MANAGERDisplaying an not have permission page if check fails