td{ max-width: 200px; word-wrap: break-word; }
Search This Blog
Monday, November 15, 2010
How to make word wrap in HTML table
Friday, November 12, 2010
Some useful symfony commands
These are some useful symfony commands
Create a symfony module
php symfony generate:module orsss mymodule
Create symfony schema from the database
php symfony doctrine:build-schema
build models
php symfony doctrine:build-model
insert the created sql
php symfony doctrine:insert-sql
list all the back end routes
php symfony app:routes backend
publish assets of a plugin to web directory
php symfony plugin:publish-assets
create a sfGuard user
symfony guard:create-user indrakeerthi@gmail.com admin admin poojitha jayasinghe
build everything from scratch
symfony doctrine:build --all --and-load --no-confirmation
Create a symfony module
php symfony generate:module orsss mymodule
Create symfony schema from the database
php symfony doctrine:build-schema
build models
php symfony doctrine:build-model
insert the created sql
php symfony doctrine:insert-sql
list all the back end routes
php symfony app:routes backend
publish assets of a plugin to web directory
php symfony plugin:publish-assets
create a sfGuard user
symfony guard:create-user indrakeerthi@gmail.com admin admin poojitha jayasinghe
build everything from scratch
symfony doctrine:build --all --and-load --no-confirmation
Monday, November 8, 2010
How to Uninstall Netbeans
root@user:/usr/local/netbeans-6.9# ./uninstall.sh
Tuesday, November 2, 2010
Find the last day of the given month in PHP
function getLastDayOfMonth($year,$month) { $lastdayOfMonth = date('Y-m-d',strtotime('-1 second',strtotime('+1 month',strtotime($month.'/01/'.$year.' 00:00:00')))); return $lastdayOfMonth; }
This function gets current month and year as the input returns the last day of the month.
It add one month to the current month and reduce one second from the 00:00:00 th hour of the first day so to get the last day of this month.
Subscribe to:
Posts (Atom)