Coder Social home page Coder Social logo

balibaliblogbundle's Introduction

README

Installation

  1. Add this bundle to your src/Balibali dir:

    $ mkdir src/Balibali
    $ git submodule add git://github.com/balibali/BalibaliBlogBundle.git src/Balibali/BlogBundle
    
  2. Add Balibali namespace to your autoloader:

     // app/autoload.php
     $loader->registerNamespaces(array(
         ...
         'Balibali' => __DIR__.'/../src',
     ));
    
  3. Add this bundle to your application kernel:

    // app/AppKernel.php
    public function registerBundles()
    {
        $bundles = array(
            ...
            new Balibali\BlogBundle\BalibaliBlogBundle(),
        );
    }
    
  4. Enable DoctrineMongoDBBundle:

    // app/AppKernel.php
    public function registerBundles()
    {
        $bundles = array(
            ...
            new Symfony\Bundle\DoctrineMongoDBBundle\DoctrineMongoDBBundle(),
            ...
        );
    }
    
    // app/config/config.yml
    doctrine_odm.mongodb:
        server: "mongodb://localhost:27017"
        default_database: symfony_%kernel.environment%
        auto_generate_hydrator_classes: true
        mappings:
            BalibaliBlogBundle: ~
    
  5. Add routing rules to your application:

    // app/config/routing.yml
    blog:
        resource: @BalibaliBlogBundle/Resources/config/routing.yml
        prefix:   /blog
    
  6. Install assets by assets:install command:

    $ app/console assets:install web
    ...
    Installing assets for Balibali\BlogBundle
    

Configuration

Set your blog title and description:

// app/config/config.yml
parameters:
    balibali.blog.title: "Balibali Blog"
    balibali.blog.description: "Blog written by Rimpei Ogawa."

Here is an example of using global layout:

// app/config/config.yml
parameters:
    balibali.blog.layout: "::layout.html.twig"

Markdown Format

Use knplabs' MarkdownBundle http://github.com/knplabs/MarkdownBundle.

  1. Add this bundle to your src/Bundle dir:

    $ git submodule add git://github.com/knplabs/MarkdownBundle.git src/Bundle/MarkdownBundle
    
  2. Add this bundle and bundle dir to your application kernel:

    // app/AppKernel.php
    public function registerBundles()
    {
        $bundles = array(
            ...
            new Bundle\MarkdownBundle\MarkdownBundle(),
            ...
        );
    }
    
  3. Enable the markdown parser service:

    // app/config/config.yml
    markdown.parser: ~
    

balibaliblogbundle's People

Contributors

balibali avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

balibaliblogbundle's Issues

編集衝突について

ブログだから(Wikiじゃないから)関係ないかな?とも思ったのですが、同じ記事を複数のタブ(ないしブラウザ)で編集しようとしている時など、誤って上書きしてしまわないようになっていたら嬉しいかも。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.