This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
include_once __DIR__.'/inc/Twig/lib/Twig/Autoloader.php'; | |
include_once __DIR__.'/inc/db.php'; | |
Twig_Autoloader::register(); | |
$loader = new Twig_Loader_Filesystem(__DIR__ . '/template'); | |
$twig = new Twig_Environment($loader, array()); | |
$data = array( | |
'judul' => 'Web Sederhana', | |
'deskripsi' => 'Belajar membuat web sederhana', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% for blog in list_blog %} | |
<h1>{{ blog.title }}</h1> | |
<small>{{ blog.date }}</small> | |
<p>{{ blog.content }}</p> | |
{% endfor %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h4 class="title textleft style1 bw-2px dh-4px divider-primary bc-default dw-full color-default" style="margin-bottom:20px"> | |
<span>Ferry KMP Tao Toba I & II. Route: TOMOK - AJIBATA</span> | |
</h4> | |
<table> | |
<tbody> | |
<tr> | |
<td rowspan="5"><strong>Tomok Dock</strong></td> | |
<td>07.00 - 08.00</td> | |
</tr> | |
<tr> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class CrudController extends ControllerBase { | |
public function indexAction() { | |
} | |
public function createAction() { | |
// we assume every post are there |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"color_inactive_tabs": true, | |
"color_scheme": "Packages/Theme - Afterglow/Afterglow.tmTheme", | |
"draw_white_space": "all", | |
"folder_exclude_patterns": | |
[ | |
".svn", | |
".git", | |
".hg", | |
"CVS", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"auto_complete": false, | |
"color_inactive_tabs": true, | |
"color_scheme": "Packages/Theme - Afterglow/Afterglow-monokai.tmTheme", | |
"draw_white_space": "all", | |
"folder_exclude_patterns": | |
[ | |
".svn", | |
".git", | |
".hg", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function setupValidation() | |
{ | |
$fields = array(); | |
$fields[] = array( | |
"type" => "presenceOf", | |
"field" => "username" | |
); | |
$fields[] = array( | |
"type" => "presenceOf", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"auto_complete": true, | |
"color_inactive_tabs": true, | |
"color_scheme": "Packages/Zeus/Sublime Text/Zeus-Sublime-Text.tmTheme", | |
"folder_exclude_patterns": | |
[ | |
".svn", | |
".git", | |
".hg", | |
"CVS", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{ | |
label: "Email", | |
key: "evpaEmail", | |
type: "email", | |
},{ | |
label: "Name", | |
key: "evpaName", | |
type: "text", | |
}] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Automatic reloading of .vimrc | |
autocmd! bufwritepost ~/.vimrc source % | |
" Show whitespace | |
autocmd ColorScheme * highlight ExtraWhitespace ctermbg=red guibg=red | |
au InsertLeave * match ExtraWhitespace /\s\+$/ | |
filetype off | |
filetype plugin indent on | |
syntax on |
OlderNewer