-
Recent Posts
Archives
- April 2013
- March 2013
- February 2013
- October 2012
- September 2012
- August 2012
- July 2012
- June 2012
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- November 2010
- May 2010
- February 2010
- January 2010
- December 2009
- November 2009
Categories
- .net
- Access Contact Data for Windows Phone
- Adatbázis
- adatbázis modell
- AdmigeneratorGeneratorBundle
- admin
- Admin Generator
- AdminBundle
- Adobe Edge
- ajax
- alapok
- Apache
- array
- assetic
- assets
- authentication
- authentikáció
- authorization
- authorizáció
- autoload
- Ărás
- öröm
- öreg laptop
- öregebb számĂtĂłgĂ©p
- újdonságok
- beléptetés
- Bellard
- biztonság
- Bundle
- c#
- camera
- Canvas
- cassandra
- cĂmlista
- CD
- clean URL
- CMS
- CMS fejlesztés
- color
- CommandLine
- composer
- convert to grayscale
- Count Number of Black colors And Unique Colors in an Image
- CRUD
- CSRF
- CSS
- Damn Small Linux
- Database
- database model
- Date
- DateTime
- dátum
- DBAL
- directory name
- disable
- Django
- Djanog
- Doctrine
- doctrine2
- Doxygen
- Drupal 7.8
- DVD
- Eclipse PDT
- edge.create
- edit
- egér
- egyedi keresés
- Elapsed times
- ellenőrzés
- emulátor
- Entites
- error
- error handling php 5.3
- eseménykezelés
- exec Windows
- Expr* classes
- Far Manager 2
- felhasználó kezelés
- felhasználhatóság
- File Manager
- Final
- first day
- form
- form generator
- FOSUserBundle
- frameworks
- get all field name
- get primary key name
- Gii
- giix Crud Generator
- Git
- Google Checkout
- Google F1
- Google Maps
- Google Plus
- grafikon
- Graphs
- hash
- használhatóság
- header injection
- helyes jelszavak
- hibakezelés
- HTML
- HTML5
- image
- Imapi2
- IN
- informatika
- install
- IsolatedStorage
- iterátor
- JavaScript
- jelszavak
- jquery
- könyv
- keresés
- kereső funkciók
- keresőmarketing
- keresőoptimalizálás
- keretrendszerek
- konvertálás monokrómmá
- LAMPSecurityToolkit
- last day
- leĂrás
- like event
- links
- linux
- localStorage
- logut
- LyraAdminBundle
- md5
- micro frameworks
- MinGW
- model
- mouse
- MSN Messenger
- munkamenet
- MVC project
- MySQL
- news
- node.js
- npm install
- online linux
- online maps
- online térkép
- openId
- ORM
- Ovi Maps
- parancssor
- PC
- php
- php 5.3
- php 5.4
- PHP 6
- php extension
- php filter class
- php filter osztály
- php filters
- PHP framework
- php kommentezés
- PHP Security
- php5
- phpDocumentor
- PHPUnit
- PHPUnit_Selenium
- Phraw
- picture
- PostgreSQL
- preg_match
- Processing.js
- programozás
- programozási szerkesztő
- protecting
- Puppy Linux
- python
- Rajzolás
- random
- regexp
- reguláris kifejezések
- restarting application
- rewrite
- RFE/LFI
- rotate
- saját keresőfunkció
- security
- selenium
- SensioGeneratorBundle
- seo
- server
- sessionStorage
- sfDoctrineGuardPlugin
- shared content
- Silex
- SoanataAdmin
- socket
- SonataAdmin
- SonataAdminBundle
- specifikáció
- Sphinx
- SPL
- SPlQueue
- SQL Injection
- SQL.js
- Sqlite
- start windows application
- symfony
- Symfony 1.4
- Symfony 1.x
- Symfony 2
- Symfony 2 command line
- Symfony 2 sandbox
- Symfony 2 telepĂtĂ©s
- Symfony 2.0
- Symfony2
- Symfony2. jqgrid
- Symfony2.1
- Symmfony2
- szakmai alázat
- szerializálás
- térkép
- TCC
- tcpClient
- telepĂtĂ©s
- ternary operator
- ternális műveletjel
- Test
- testing
- teszt
- Twig
- Twig templates
- Twitter Bootstrap
- UAC
- Uncategorized
- usability
- User Bundle
- user management
- validator
- validáció
- védelem
- véletlen szám
- ViaMichelin
- virusade
- visual C++
- W3C
- Wamp
- WampServer
- web workers
- websocket
- Windows
- Windows 7
- Windows Mobile
- Windows Phone SDK
- windows7
- Wp7
- WP7 fejlesztés
- wxWidgets
- XML
- xmlSerializer
- XPBurn
- XSS
- yii
- Yii Dao
- yii-user extension
- űrlapok
Meta
Category Archives: Symfony2
Silex & Twitter Botstrap
Silex: “Silex is a PHP microframework for PHP 5.3. It is built on the shoulders of Symfony2 and Pimple and also inspired by sinatra.” Twitter Boostrap: “Sleek, intuitive, and powerful front-end framework for faster and easier web development.” 🙂 The … Continue reading
Posted in Silex, Symfony2, Twitter Bootstrap
Leave a comment
Symfony2: My Form Type Class generator
Symfony2 has a Doctrine Form Generator. It is work properly but it always needs Entity as a parameter and it only generates one Form Type Class at the same time.I’ve rebuild the generator. My generator supports bulk form generation and … Continue reading
Posted in Doctrine, form generator, Symfony2
Leave a comment
Symfony2: How to generate new form type class?
Generate test bundle: php app/console generate:bundle –namespace=Acme/TestBundle –format=yml Mapping databse, generate entities: php app/console doctrine:mapping:convert yml ./src/Acme/TestBundle/Resources/config/doctrine/metadata/orm –from-database –force php app/console doctrine:mapping:import AcmeTestBundle annotation php app/console doctrine:generate:entities AcmeTestBundle Generate form type class (I used FosUSerBundle db tables in this example): … Continue reading
Posted in Doctrine, form generator, Symfony2
Leave a comment
Symfony2: simple JavaScript routing with Assetic and HTML5 data Attributes
Simple example HTML5 code: <div id=”gallery” data-rollover_on=”{{ asset(‘bundles/testprojecttestbundle/images/play_button_on.png’) }}” data-rollover_off=”{{ asset(‘bundles/testprojecttestbundle/images/play_button_off.png’) }}”> …</div> JavaScript (JQuery): var rollover_play_off = mainjQuery(‘div[id=”gallery”]’).attr(‘data-rollover_off’); var rollover_play_on = mainjQuery(‘div[id=”gallery”]’).attr(‘data-rollover_on’); var original_image = ‘url(‘+rollover_play_off+’)’; var second_image = ‘url(‘+rollover_play_on+’)’;
Posted in assetic, Symfony2
Leave a comment
Symfony2: assetic, rewriting image paths in CSS
Twig template: {% block stylesheets %} {{ parent() }} {% stylesheets filter=’cssrewrite’ output=’css/*.css’ ‘bundles/testcompanytestbundle/css/*’ %} <link href=”{{ asset_url }}” type=”text/css” rel=”stylesheet” /> {% endstylesheets %} {% endblock %} Console commands: php app/console assets:install web/ php app/console –env=prod assetic:dump CSS example … Continue reading
Posted in assets, CSS, rewrite, Symfony2
Leave a comment
Symfony2, DBAL, Doctrine2: create SQL IN Operator from PHP array
$aAccountCode = array(‘blabla1’, ‘accouncode1111’); $oDBALConnection = $this->get(‘database_connection’); $stmt = $oDBALConnection->executeQuery(‘SELECT * FROM table_name WHERE resource_name IN (?)’, array($aAccountCode), array(\Doctrine\DBAL\Connection::PARAM_STR_ARRAY) ); $stmt->execute(); $aAccountID = $stmt->fetchAll( \PDO::FETCH_COLUMN);
Symfony2 command line and Doctrine
<?php namespace ProjectName\TestBundle\Command; use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use PDO; class TestCommand extends ContainerAwareCommand { protected $em = NULL; protected function configure() { $this ->setName(‘testcommandlineapp’) ->setDescription(‘Blabla’) ->setDefinition(array()); } protected function execute(InputInterface $input, OutputInterface $output) { $output->writeln( ‘Working…’ … Continue reading
Posted in CommandLine, Doctrine, Symfony2
Leave a comment