Author Archive for Kamil Adryjanek

Symfony - how to set up default database encoding?

Maybe it’s nothing special and difficult but i remember the day (some time go)  when i had a problem with setting up default database encoding in my application. I recently received some questions about it so i decided to post this here and help some of you.

Continue reading ‘Symfony - how to set up default database encoding?’

Advanced data filtering with Symfony 1.4 and ExtJS 3.2 [english]

After a couple of weeks I finally found some time to write about Symfony and ExtJS. This time i want to show how to put together to work Symfony 1.4, ExtJS 3.2 and Grid Filter Plugin - for me it’s the one of most powerfull filtering solutions i have ever seen.
Since my last entry about displaying data in ExtJS Grid Panel i have updated Ext library to 3.2 version - they have added some nice features (more information you can find in changelog 3.1 and changelog 3.2) and changed some ExtJs components (more details you will find later).

Continue reading ‘Advanced data filtering with Symfony 1.4 and ExtJS 3.2 [english]‘

Symfony and jQuery: sfWidgetFormJQueryMultiSelect ver 0.1

Recently i created nice and simple Symfony widget: sfWidgetFormJQueryMultiSelect. It’s really simple in use and implementation. I have used code written recently by Eric Hynds: jQuery MultiSelect Plugin w/ ThemeRoller Support and standard sfWidgetFormChoice.

Continue reading ‘Symfony and jQuery: sfWidgetFormJQueryMultiSelect ver 0.1′

ExtJS ans simple JavaScirpt Internationalization (i18n)

Lastely, building quite big Symfony and Ext.js application i was looking for simple way to make my application internationalized. I haven’t found any good solutions that would suits my needs. I found this on extjs forum: ‘The simplest way, perhaps, is to extract hardcoded strings to locale files. Then your framework just have to load the selected language file together with YUI-ext.” I didn’t like that idea, i think it would be good for building some custom components but not for internationalize the whole application. I needed something quicker and less complicated.
Than, i thought that i can write my own simple i18n mechanism - maybe there is better way (files can be generated on the server side), but this work for sure.
Continue reading ‘ExtJS ans simple JavaScirpt Internationalization (i18n)’

Symfony 1.4 and ExtJS - displaying data in GridPanel [english]

Now when Symfony 1.4 and Dcotrine 1.2 time has come, i want to show you how easily we can use them with JavaScript framework ExtJs 3.0 - which is typically used to build advanced user interfaces. More information about that amazing library can be found on the main project website. In this post I would like to demonstrate the capabilities of one of the components of this powerful framework - GridPanel. I will use most of the code presented in the previous entry, however, it will be updated to work correctly with the latest Symfony version.

Continue reading ‘Symfony 1.4 and ExtJS - displaying data in GridPanel [english]‘

NetDay Lublin #4

W sobotÄ™ 14 listopada w Lublinie, odbyÅ‚o siÄ™ 4 spotkanie branży internetowej z cyklu NetDay Lublin. Tym razem impreza odbyÅ‚a siÄ™ klubie “Kazik” przy ul. Nadbystrzyckiej 40a, co moim zdaniem byÅ‚o nietrafionym pomysÅ‚em. Wysoka frekwencja sprawiÅ‚a, ze w Kaziku brakowalo miejsca i byÅ‚o bardzo gorÄ…co. Ponadto czÄ™sć osób musiaÅ‚a Å›ledzić prezentacjÄ™ na stojÄ…co. Pub Johnny’s wypada pod tym wzglÄ™dem zdecydowanie lepiej.

Continue reading ‘NetDay Lublin #4′

Symfony 1.2 i ExtJS - wyświetlanie danych w gridzie

Ostatnio miałem przyjemność poznać i przetestować możliwości frameworka JavaScript: ExtJS. Jest to biblioteka przeznaczona do budowania zaawansowanych interfejsów użytkownika, w szczególności paneli administracyjnych.

W niniejszym wpisie chciałbym na prostym przykładzie zademonstrować możliwości jednego z komponentów tego potężnego frameworka - GridPanel . Jeszcze nie wiem czy będzie to część większego cyklu kursów o extjs i czy pojawi się on także w wersji angielskiej (wersja angielska - dodatkowo zaktualizowana dla Symfony 1.4 i Doctrine), ale narazie w planie mam wpisy dotyczące integracji z zaawansowanym systemem filtrów (ExtJS filter plugin) i dodawania/edytowania elementów do grida za pomocą modalnych okien - o ile oczywiście tematyka tego wpisu spotka się z zainteresowaniem.

Continue reading ‘Symfony 1.2 i ExtJS - wyÅ›wietlanie danych w gridzie’

Symfony 1.3 Web Application Development - my review

symfony-13-web-application-developmentLast week I received my copy of new Symfony book: Symfony 1.3 Web Application Development. What is really interesting about this book that it has been released even before Symfony 1.3 Alpha version. The book gives an overview of Symfony Framework and covers almost each stage of application developing process: from creating the application structure and database schema, to creating the Admin Area, performance optimization and deployment. As we know the  best way to learn is to learn by example and this book describies how to build milkshake shop quite well.

Continue reading ‘Symfony 1.3 Web Application Development - my review’

Symfony 1.3

W ubiegłym tygodniu ukazała się wersja 1.3 alpha znakomitego frameworka Symfony. Z pewnością nie uświadczymy rewolucji podobnej do tej w momencie ukazania się sf 1.1 i 1.2, jednak liczne drobne zmiany jakie wprowadzono powinny dość znacząco usprawnić naszą prace - pełna lista zmian dostępna jest tutaj. Wersja 1.3 podobnie jak 1.1 ma być jedynie wersją przejściową do 1.4, która ma się ukazać dopiero w 2010 roku i która będzie wspierana do 2013.

Continue reading ‘Symfony 1.3′

Symfony 1.2 + admin generator + jquery layout plugin

After a couple of weeks i decided to write another post about Symfony 1.2 and jQuery. This simple tutorial shows you how integrate jQuery layout plugin, jQuery accordion widget for navigation and Symfony admin generator.
Symfony offers nice and powerfull admin generator feature. After rewriting in version 1.2 it uses form and filter framework which makes it really easy and customizable. For more details you need to check admin generator documentation .

“JQuery Layout plug-in was inspired by the extJS border-layout, and recreates that functionality as a jQuery plug-in. The UI.Layout plug-in can create any UI look you want - from simple headers or sidebars, to a complex application with toolbars, menus, help-panels, status bars, sub-forms, etc.”

What i really like about the admin generator is its… generator feature. After a couple of minutes we have all the basic actions for our models. We can also add custom actions and modify templates. The missing component for me is navigation. We can create some simple navigation between modules alone, we can also use nice Symfony plugin: sfAdminDashPlugin or jQuery plugin: layout. The picture below shows the final result of what i’m going to do in this tutorial.
Symfony admin generator + jQuery Layout plugin

Continue reading ‘Symfony 1.2 + admin generator + jquery layout plugin’




About me:

  • PHP programmer
  • Symfony developer
  • Zend framework developer

Categories: