call symfony command anywhere

by prettyscripts on 2009-07-31 11:18:00 • Leave a comment »

symfony

when working on symfony-based projects, you need to regularly call the mighty symfony command, which does a lot of things. however the command must be run from the project root. this is quite inconvenient. the files you’re working on might be somewhere… more »

Tags: command, symfony

symfony: customize 404 error page

by prettyscripts on 2009-07-23 15:04:10 • Leave a comment »

symfony

how do you replace the default brown page not found error? there are 2 ways to do it. i chose to override default template because it seems more convenient. from command line: > cd /to/your/apps/[application]/modules > mkdir default > mkdir… more »

Tags: 404, error, symfony

symfony: page navigation links

by prettyscripts on 2009-07-10 11:55:07 • Leave a comment »

phpsymfony

pagination helper in the code snippets section of symfony’s website. the code is modified to include <ul> and <li> tags and to correctly parse uri when passed as routing rule:function page_navigation($pager, $uri) { $pages = array();… more »

Tags: navigation, page, symfony

symfony: import sfGuardUser data

by prettyscripts on 2009-07-03 13:42:43 • Leave a comment »

symfony

since i need to run 'symfony propel:build-all-load' constantly while developing a symfony project, to save myself from creating users for sfGuard plugin everytime it’s run, data from related table were dumped then saved as fixture data so that they are a… more »

Tags: import, symfony