Skip to content

Instantly share code, notes, and snippets.

View polashrp's full-sized avatar
🖥️
Flutter & dart with ios and android

Habib Software Engineer polashrp

🖥️
Flutter & dart with ios and android
View GitHub Profile
@obiPlabon
obiPlabon / mb-register.php
Last active August 9, 2016 09:02
Snippet to register WordPress metabox
<?php
function wp_class_register_mb() {
add_meta_box(
'wpclass-mb', // unique id
esc_html__( 'WP Class Metabox', 'text-domain' ), // metabox title
'wp_class_mb_cb', // metabox callback
array('post','page'), // screen name [string|array]
'side', // context
'high' // priority
);
@Rokt33r
Rokt33r / PostController.php
Created March 31, 2014 06:29
Laravel 基礎 Lesson 6 - RESTful (app/controllers/PostController.php)
<?php
class PostController extends BaseController{
function create(){
return View::make('posts.create');
}
function store(){
DB::table('posts')->insert([
'title'=>Input::get('title'),
'body'=>Input::get('body')