read markdown

markdown file

update function baru untuk membaca file markdown dan melakukan convert ke HTML, function ini dibuat untuk tujuan membaca markdown files, terlebih lagi untuk dalam pembuatan documentation program.

path

base path untuk markdown files terletak pada directory views/markdown

basic usage

<?php
// call function
read_markdown("name of markdown file withoud extention");

// example
// read file example.md
read_markdown("example");

basic usage with controller and view

untuk menggunakan bersama controller dan view

  1. buat controller

  2. buat template views pada directory views

  3. buat file .md atau pada directory markdown

controller

contoh file controller

view

contoh file views

markdown

contoh file markdown

route

contoh arah route

Last updated