Skip to content

frodosghost/PostBundle

Repository files navigation

Manhattan Posts Bundle

This bundle has been created to allow editing and display of News, Articles or Posts Items. The idea is simple created data that is associated by Categories and by dates that publishes new Posts.

Installation

If you are using Symfony 2.1 you can install by adding the dependencies into the composer.json file.

"require": {
    ...
    "manhattan/posts-bundle": "dev-master"
},
[{
    "type": "package",
    "package": {
        "version": "dev-master",
        "name": "manhattan/posts-bundle",
        "source": {
            "url": "git@bitbucket.org:frodosghost/postsbundle.git",
            "type": "git",
            "reference": "master"
        },
        "autoload": {
            "psr-0": { "Manhattan\\Bundle\\PostsBundle": "" }
        },
        "target-dir": "Manhattan/Bundle/PostsBundle"
    }
}]

Setup Routing

To ensure that the trailing slash is removed from the Post routes you need to ensure that the index route is separated from the inported route collection.

The pattern for the #posts is the same as the prefix for the route collection:

<route id="posts" pattern="/news">
    <default key="_controller">ManhattanPostsBundle:Public:index</default>
    <requirement key="_method">GET</requirement>
</route>
<import resource="@ManhattanPostsBundle/Resources/config/routing/public.xml" prefix="/news" />

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages