January 2008
5 posts
4 tags
Symfony security: useful methods for the view
Check if user is logged in: $sf_user->isAuthenticated() Check if user belongs to a specific group: $sf_user->hasCredential('admin')
Jan 31st
16 notes
1 tag
A good solution for skipnav
Links that become visible with keyboard focus works well: http://www.webaim.org/techniques/skipnav/
Jan 31st
1 tag
Symfony: creating a custom generator theme as a...
Assuming you’re using Doctrine rather than Propel… Create the plugin Create a folder, for example: plugins/sfMyAdminThemePlugin Copy the default theme Copy the contents of plugins/sfDoctrinePlugin/data/generator/sfDoctrineAdmin/default to your new plugin folder - both the skeleton and template directories. Generate the admin tools ./symfony doctrine-init-admin appname...
Jan 30th
1 note
1 tag
Symfony: get current environment
sfConfig::get('sf_environment')
Jan 14th
1 tag
Subversion tags
Creating a tag Don’t create the tag directory first with ‘svn mkdir’, despite what the manual says… this will lead to a trunk folder being created *inside* the tag folder. More info svn copy http://intranet.themindgym.com/svn/themindgym.com/trunk \ http://intranet.themindgym.com/svn/themindgym.com/tags/release-1.0.1 \ -m "TAG: 1.0.1 release" Removing a tag svn rm...
Jan 14th