This is a port of sfSimpleForumPlugin for Doctrine & Symfony 1.4
PHP
Switch branches/tags
Nothing to show
Pull request Compare This branch is 105 commits behind j0k3r:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config
data/fixtures
lib
modules
web
README.markdown

README.markdown

sfDoctrineSimpleForumPlugin

Overview

This is a port of sfSimpleForumPlugin for Doctrine & Symfony 1.4

Requirements

The prerequisites for using the sfSimpleForum plugin are the same of sfSimpleForumplugin:

Installation

Install the plugin from the source you want (svn, git, etc ..)

Enabled it in ProjectConfiguration.class.php

[php]
class ProjectConfiguration extends sfProjectConfiguration
{
  public function setup()
  {
    $this->enablePlugins(array(
      'sfDoctrinePlugin', 
      'sfDoctrineGuardPlugin',
      'sfDoctrineSimpleForumPlugin',
      '...'
    ));
  }
}

Rebuild the model, generate the SQL code for the new tables, insert it into your database and load the included fixtures :

$ php symfony doctrine:build --all --and-load

Clear the cache to enable the autoloading to find the new classes:

$ php symfony cc

Enable the new sfSimpleForum module and the new sfSimpleForum helper in your application, via the settings.yml file.

[yml]
// in myproject/apps/frontend/config/settings.yml
all:
  .settings:
    enabled_modules:        [sfSimpleForum, default]
    standard_helpers:       [Partial, Cache, sfSimpleForum, I18N]

Publish assets for the forum

$ php symfony plugin:publish-assets

As for now, fixtures aren't filed right all database's field, run this task that update last reply, etc ..

$ php symfony fixForum

Start using the plugin by browsing to the frontend module's default page:

http://myproject/frontend_dev.php/sfSimpleForum

If you want to enable the plugin administration interface, you have to enable two more modules. You can do so in your main application or in a backend application. the following example is for a 'backend' application:

[yml]
// in myproject/apps/backend/config/settings.yml
all:
  .settings:
    enabled_modules:        [sfSimpleForumCategoryAdmin, sfSimpleForumForumAdmin, default]

Configure the plugin categories and forums by browsing to the administration modules default page:

http://myproject/backend_dev.php/sfSimpleForumCategoryAdmin
http://myproject/backend_dev.php/sfSimpleForumForumAdmin