Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

New Imageboard Package (Shinba)

Name: FoolyFrunz 2013-08-02 3:02

I just made my imageboard package open source for the public. It's currently in use at nuchan.org and I thought you guys might be interested in using the code yourselves.

http://sourceforge.net/projects/shinba/

It's written in PHP. Enjoy!

Name: Anonymous 2013-08-02 21:44

>>33
An example of creating a route to a controller in ZF2:

<?php
return array(
    'controllers' => array(
        'invokables' => array(
            'Album\Controller\Album' => 'Album\Controller\AlbumController',
        ),
    ),

    // The following section is new and should be added to your file
    'router' => array(
        'routes' => array(
            'album' => array(
                'type'    => 'segment',
                'options' => array(
                    'route'    => '/album[/][:action][/:id]',
                    'constraints' => array(
                        'action' => '[a-zA-Z][a-zA-Z0-9_-]*',
                        'id'     => '[0-9]+',
                    ),
                    'defaults' => array(
                        'controller' => 'Album\Controller\Album',
                        'action'     => 'index',
                    ),
                ),
            ),
        ),
    ),

    'view_manager' => array(
        'template_path_stack' => array(
            'album' => __DIR__ . '/../view',
        ),
    ),
);


Ha. Hahahahahahahaha.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List