Symfony

Symfony 2 paginator – improved version

NOTE: Tested on Symfony2 Beta3. Might not work on later releases!

After some comments on forums about my earlier post:
“Custom Pagination in Symfony 2” that was made on Symfony2 version: PR 12,
I decided to make some changes in the source code and give it available for download.

Basic structure of paginator is similar to latest post, but improvements are made by removing HTML stuff from controller, so paginator is rendered by twig template and not inside class on the fly.

Read more

Symfony 2 forms validation

© sxc.hu/bredmaker

NOTE: Tested on Symfony2 PR12. Might not work on later releases!

To continue previous article when writing about forms in Symfony 2, now it’s time to write something about forms validation.

Read more

Symfony 2 Form

NOTE: Tested on Symfony2 PR12. Might not work on later releases!

If you want to use forms in Symfony 2 project there is already prepared system for that.

First in ‘Yourname/SomethingBundle/Forms’ folder create class like this:

Read more

Custom Pagination in Symfony 2

© by ba1969/sxc.hu

NOTE: Tested on Symfony2 PR12. Might not work on later releases!
There is a newer version article about Symfony2 pagination that is compatible with Symfony2 – beta1.

Using Symfony 2, I noticed that there is no pagination included in framework (just some additional Bundle for download -and it uses Zend pagination but I don’t want to mix Zend into my Symfony 2 project), so I decided to write class for that on my own.

Read more