This is probably a very dummy question, and probably with a very quick answer :-)
I looked the Ez Components, and about PHP frameworks.
So, how can I pass variables to a PHP script outside the Ez Publish, and return other variables? example, If I have a Postgres Database for some kind of different applicatrion, how can I do the SQL statements, and return the output data to the template?
You can make an extensnion: http://ez.no/ezpublish/documentation/development
Look on this topic for more information about connection to external database: http://ez.no/community/forum/developer/using_external_db_in_extension_causes_problems