Wrzasq.pl

ChillDevProxyTemplatingBundle - make your vendor bundle independent on templating engine

sobota, 30 marzec 2013 - 15:20:55

When working on ChillDevFileManagerBunde I faced a problem of implementing template engine switch to allow using it in systems that maybe use different templating engine then bundle was created for. Some common vendor bundles (like FOSUserBundle) try to provide such feature by manually creating template references in actions depending on their bundle configuration parameters. I know most Symfony 2 projects use Twig, but (as you maybe know already) I don't like it and use plain PHP templates. And that's not all - Symfony-based projects can use other templating engines, like Smarty for example. Vendor bundles should be possible to use in your system regardless of templating engine you use.

Tags:

» Komentarze

ChillDevFileManagerBundle - Filemanager frontend bundle for Symfony 2

wtorek, 25 grudzień 2012 - 23:33:08

In my old projects I often needed direct file operations to change something in system. The easiest way is to do that from shell, or through SFTP, but on many shared hostings there is no way to do that. Using FTP on the other hand is not very handy on mobile devices. Because of that I implemented web-based filemanager features in them. Now all my Symfony 2 projects run on dedicated servers and most things are handled at build and deploy time, but from time to time I miss some of these featues. I thought there must be some kind of filemanager for Symfony 2 since it looked like a quite generic part of system. But there wasn't… until now (well, maybe not yet, but starting to be). I've published ChillDevFileManagerBundle - this is currently just a stub with a very limited features, but will of course grow to become (hopefuly) real filemanager that works out -of-the-box with your Symfony 2 installation.

Tags:

» Komentarze

Using Disqus in XHTML applications

środa, 28 listopad 2012 - 09:22:12

Disqus is a great service! Without any doubt - brilliant comments system for any website you have. With it you no longer need to care about implementing comments system, moderation tools, social stream etc. Everything you need from commenting system is there. However there is one problem with it - it doesn't work with real XHTML applications (not so common over the net, but still). What's even worse Disqus team stated clearly that they will not care about XHTML applications. If they won't, then I will .

Tags:

» Komentarze

ChillDevViewHelpersBundle - PHP templating helpers for Symfony 2

czwartek, 15 listopad 2012 - 10:33:54

To keep my projects up-to-date some time ago I've chosen Symfony 2 as a base framework to replace outdated Zend Framework (version 1 is old and far behind moder web and version 2 development is far behind Symfony's and the new ZF2 is bloated and messed up). Symfony 2 is a great framework, but there is one thing that I can't understand - why the hell use Twig!? For years people were migrating from engines like Smarty to plain PHP views/templates yelling that templating engines for PHP are stupid idea; and I fully support this thesis. PHP is a great templating engine by default, this is what PHP was created for at it's basic purpose: it's not like Python or Java where you need to send output explicitely - this is the sole feature in case of PHP. Why bloat it with additional templating layer? I personally consider Twig as a step backward and stay with plain-PHP templates. Unfortunately people followed Twig-based conventions and if you want to use PHP renderer you need to do many things on your own - most of popular bundles comes only with extensions for Twig, but not with helpers for PHP rendering engine. This is where ChillDevViewHelpersBundle comes in! It is set of basic helpers for PHP-based templates (hope to extend it in future of course).

Tags:

» Komentarze

Luźne i długie notatki o załatwianiu pożyczek i/lub kredytów hipitecznych

wtorek, 31 lipiec 2012 - 11:22:31

Tym razem nie będzie technicznie. Nie będzie w sumie w ogóle zawodowo. Po prostu nie mogę sobie odpuścić spisania tych przygód. Tak się stało, że przez ostatnie pół roku miałem całe mnóstwo zawirowań związanych z nieruchomościami, kredytami, a najczęściej jednym i drugim na raz. Nie chodzi mi broń boże o jakieś wylewanie gorzkich żali - jak się chce coś w życiu mieć, to nieraz trzeba pozasuwać. Ale niektóre aspekty, z którymi musiałem się stykać są tak absurdalne, że nawet jeśli to nie dotrze do kogokolwiek, kto w którejkolwiek instytucji mógłby cokolwiek zmienić, to może chociaż ktoś się w niemocy uśmiechnie, albo odetchnie z ulgą, jakie to ma jednak lekkie życie. Zetknąłem się z różnymi instytucjami - od banków, przez doradców i pośredników kredytowych, po urzędy samorządów lokalnych, do tego PKP i kilka innych instytucji. Smutne jest jedynie to, że na co dzień mam styczność z tego typu absurdami na każdym kroku (jak zapewne większość z Was) w większości instytucji i po prostu tym razem natężenie absurdów przerosło poziom, który można by określić mianem barejowskiego.

Tags:

» Komentarze

Pork - fork() for PHP

wtorek, 10 styczeń 2012 - 10:24:38

You always hear how many things modern computers can do at once, how multi-tasking they are… but when it comes to your simple mailing script it hangs on sending few mails and it can't go further. How it is that you run your application on powerful server machine, but your script flow is completely single-tasking? Well, machines and operating systems supports multi-tasking, but you have to write your code in specific way in order to benefit from it - you have to split your program into multiple single tasks that can be executed parallelly. If you are a PHP developer and you need something for multi-tasking, here I give you Pork - fork() for PHP.

Tags:

» Komentarze