RSS Feed
^__^

[Symfony 2] composer.json for a assumed-stable symfony 2 distribution

Johannes Heinen, 2012/04/01 14:18

This small composer.json file is used in a project i am working on atm, feel free to use it at own risk. I will provide non-periodical updates and hopefully soon a full upgrade to symfony 2.1.x including doctrine orm 2.2.x.

I still did not get the point regarding dependency resolution, so i simply “composed” the composer file by writing down my own requirements (“i want only the hottest, newest stuff!!”, then tracked down the error messages, removing them by explicetly writing down the missing dependencies by using the latest “dev-*” versions. After that i tried to run the project, which actually did not work, but selective downgrade of some of the bundles (framework, security-extra blahblah) finally did the job. » read more

Silverstripe Setup Script

Ivo Bathke, 2012/02/09 11:30

We thought we had to improve our SilverStripe setup script for our development environment.
So Max and me rewrote it to add submodules and some other improvements.

Just run:

./install_silverstripe.sh mynewproject tags/2.4.7

and you have

  • silverstripe project folder structure
  • the tutorial theme
  • a already filled git repository
  • sapphire as submodule
  • cms as submodule
  • Uploadify as submodule
  • DataObjectManager as submodule
  • UserForms as submodule

» read more

[Symfony 2][Twig] – Enabling (native) Twig Extensions

Johannes Heinen, 2011/10/19 13:39

Twig Extensions is a tiny official repository for extensions to the Twig templating markup language, the default templating engine in each Symfony 2 (Standard Ed.) project. This short article shows how to purposeful enable them per-environment for your projects.

» read more

Boilerplate Build mit FTP deploy

Ivo Bathke, 2011/09/13 09:12

Da habe ich mir letztens die html5 boilerplate angeschaut und musste feststellen, dass die einen ziemlich guten build mitbringt.
Dieser optimiert Bilder, konkateniert und komprimiert alles was so geht, mit Hilfe von u.a. dem YUI Kompressor.
Was es noch nicht kann ist der Deploy, aber das kann man ihm ja beibringen ;)

» read more

[Symfony 2] Security Bundle: Set User Locale on Form Login

Johannes Heinen, 2011/08/14 12:15

[UPDATE]
A recent update to this article may be found here: http://nerdpress.org/symfony-2-set-default-locale-on-form-login-2/

Das Security Bundle ist ein wenig magisch. Da muss man eine HTML-Form definieren, der Rest wird irgendwie konfiguriert (Namen der Post-Parameter wie “_username”, “_password” etc., den Redirect zum Referrer, Remember-Me Funktion und so weiter, das alles wird von der Firewall intern geregelt. Man muss nur eine Login-Route definieren, einen Stub-Controller + Action-Callable (der aber nie ausgeführt wird, weil die Firefall sich davorhängt), fertig.

Das ist angenehm einfach, solange man keine Fragen stellt. Aber wie führe ich zusätzliche Aktionen direkt nach erfolgtem Login aus, ohne Einfuss auf den Code des Security Bundles zu haben?

» read more

[Symfony 2] Security Bundle – Benutzer mit username oder email anmelden.

Johannes Heinen, 2011/08/12 15:04

Augenscheinlich unterstützt das Security-Module nur die Authentifizierung via Benutzername und Password. Wie man sich mit einem Benutzernamen ODER der E-Mail-Adresse und einem Password authentifiziert, ist ein wenig versteckt. So gehts:

» read more

symfony 1.4 installer

Ivo Bathke, 2011/05/17 13:27

Ich hab mal einen symfony 1.4 installer shell script auf github gepackt.
Damit kann man “ruckizucki” auf Ubuntu ein lokales symfony 1.4 Projekt aufsetzen.

Es ist ein fork von einem virtualhost create script und macht folgendes:

    - holt den letzten symfony 1.4 stable release via svn
    - setzt alle notwendigen rechte zB auf den cache folder
    - bereitet die datenbank vor
    - legt eine app an
    - macht eine .gitignore
    - und ruft das virtualhost creator script auf, was den vhost anlegt auf “web”

» read more

Unfuddle: Repository read access denied

Ivo Bathke, 2011/03/21 14:11

Unfuddle: Repository read access denied

Ich benutze ja ganz gerne unfuddle für Projekte mit closed source.
Dort kann man nämlich mit dem free Account, anders wie bei github, private repositories erstellen.

Nun hatte ich aber neulich plötzlich einen Auth Fehler und konnte mich mit meinem key nicht mehr connecten:

ERROR:gitosis.serve.main:Repository read access denied
fatal: The remote end hung up unexpectedly

Ich war mir keiner schuld bewußt.

Nachdem ich meinen key gelöscht bei unfuddle hatte und neu anlegen wollte, kam dann die Fehlermeldung:

This public key has already been taken by another user.
If you have multiple accounts, you must use a different public key for each account.

» read more