sfGalleryPlugin - 1.0.1

sfGallery plugin

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to the Plugins Home

Signin


Forgot your password?
Create an account

Tools

Stats

advanced search
Information Readme Releases Changelog Contribute
sfGalleryPlugin 1.0.1stable for sf 1.0 MIT
Plugin image
1
user
Sign-in
to change
your status

So first of all make sure you have these plugins installed:

  • sfGuardPlugin
  • sfModerationPlugin
  • sfPropelActAsCountableBehaviorPlugin
  • sfPropelActAsTaggableBehaviorPlugin

Then for frontend/backend allow modules:

frontend:

config/settings.yml enabled_modules: [default, sfGallery]

backend:

config/settings.yml enabled_modules: [default, sfModeration, sfGalleryAdmin, sfPhotoAdmin]

and in propel.ini you have to enable behaviours and modify propel.builder.peer.class:

propel.builder.peer.class = addon.propel.builder.SfPeerBuilder

propel.builder.peer.class = plugins.sfModerationPlugin.lib.SfPeerBuilder propel.builder.addBehaviors = true

this is requred by moderation plugin.

Also we use sfGuardPlugin for authentificating users (this can be changed easily though to any other authentificating plugin) and there must be added user_profile table, here is a sample of what can be used (you can put that in schema.yml):

propel:

_attributes: { package: plugins.sfGuardPluginPlus.lib.model } sf_guard_user_profile: _attributes: { phpName: sfGuardUserProfile } id: user_id: { type: integer, index: unique, foreignTable: sf_guard_user, foreignReference: id, onDelete: cascade } nickname: { type: varchar(40) } email: { type: varchar(40) } created_at: updated_at:

Custom routes are defined in sfGalleryPlugin/config/config.php, e.g.

http://sfgallery/user/gallery/new http://sfgallery/photos

of course it's better to put them into routing.yml for better performance. And you can use these urls to get access to admin area:

http://sfgallery/backend_dev.php/sfGalleryAdmin http://sfgallery/backend_dev.php/sfPhotoAdmin

(here sfgallery is possible project name).

Of course we skipped here part which describes enabling of sfGuardPlugin. So you should handle because sfGalleryPlugin will allow creating galleries/photos only for registered users.

Contributor: ten24 Media

Developers

Name Status Email
gravatar Voznyak Nazar lead moc.liamg <<ta>> razankaynzov

License

Show source

Copyright (c) 2007 Voznyak Nazar

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.