[symfony-users] Mutiple databases and different propel.ini with sfPropel15Plugin?

2011-01-17 Thread Christian Hammers
Hello I'm using Symfony 1.3 and sfPropel15Plugin with two database connections, one to MySQL and one to Oracel. They are already configured in config/database.yml and I also already have my schema.xml. Now "./symfony propel:build-model" insists on having a config/propel.ini even if I specify "--

[symfony-users] Using Symfony models and database config for standalone PHP script?

2011-01-17 Thread Christian Hammers
Hello How can I use my Propel models without Symfony? The reason: I already have a project with some console-only scripts from years ago that use plain PDO. Then I wrote a web "admin frontend" with Symfony 1.3 and got addicted to Propel 1.5 (via sfPropel15Plugin) and already customized some model

Re: [symfony-users] Re: Custom logger via factory.yml?

2010-02-26 Thread Christian Hammers
wrote: > It's longer perhaps but more elegant? You betcha! It doesn't create a new > dependency in your code because your logger could also *not* be there and the > code would still work. > > Cheers, Daniel > > On 26.02.2010, at 12:57, Christian Hammers wrote:

Re: [symfony-users] Re: Custom logger via factory.yml?

2010-02-26 Thread Christian Hammers
your custom logging events. > The dispatcher is what you need to worry about, since that's used to > dispatch the events in the first place. You'll find that the > dispatcher is more available throughout the application than the > logger is, so stick with events to trigger logg

Re: [symfony-users] Re: Custom logger via factory.yml?

2010-02-25 Thread Christian Hammers
dn't get into the way.. > > Daniel > > > On Feb 24, 4:59 am, Christian Hammers wrote: > > Hello > > > > Thanks for this hint! > > > > I could not figure out how to use the factory.yml without interfering > > with the standard logger as yo

Re: [symfony-users] Re: Custom logger via factory.yml?

2010-02-24 Thread Christian Hammers
)); > $dispatcher -> connect('blah.log', array($this, > 'listenToLogEvent')); > } > } > > You can then instantiate this logger anywhere (either by adding it to > your factories.yml file, or instantiating it directly.) > > Hope this helps. > > Dani

Re: [symfony-users] what I am I missing?: form save does an insert when I want an update

2010-02-23 Thread Christian Hammers
Hi This could mean that the form is always initialized with an empty $this->excursion. Sure that find() does not return an array? I always use ->findOneById($request->getParameter('id')); to be sure. bye, -christian- Am Tue, 23 Feb 2010 14:06:02 -0800 schrieb Roland Cruse : > Hi > > I must be

[symfony-users] Custom logger via factory.yml?

2010-02-23 Thread Christian Hammers
Hello Is it possible to define a custom sfFileLogger() in factories.yml that works completely independend from the standard frontend.log? It should be accessed like e.g. sfContext::getLogger("myAppLog")->info("remember that"); Just that getLogger() does not take an argument and I'm probably trying

[symfony-users] Admin Generator and Retype-Password field?

2010-02-22 Thread Christian Hammers
Hello How can I configure the admin generator to display an additional "retype password" field and validate it with the already existing password field that's populated with the database content? The retype password should be discarded afterwards and so that the admin generator only stores the p

Re: [symfony-users] Problems with no_script_name=off after upgrading from Symfony 1.2.8 to 1.3.1

2010-01-06 Thread Christian Hammers
7; to 'true' > http://www.symfony-project.org/tutorial/1_4/en/upgrade#chapter_161aacbf11b8cc24bbdc6951ba0fb57d_yaml > > On Wed, Jan 6, 2010 at 11:41, Christian Hammers wrote: > > Hello > > > > I have a Symfony 1.2 project that I tried to convert to Symfony 1.3. > &g

[symfony-users] Problems with no_script_name=off after upgrading from Symfony 1.2.8 to 1.3.1

2010-01-06 Thread Christian Hammers
Hello I have a Symfony 1.2 project that I tried to convert to Symfony 1.3. The no_script_name setting is turned off (verified with the debug console) yet in Symfony 1.3 it behaves like it was turned on! The same link_to('Störungsursachen', 'gu_ursache') produces https://example.com/proxy/fibr

[symfony-users] Raising sfValidatorError inside action?

2009-11-19 Thread Christian Hammers
Hello Inside the executeXYZ() function of an actions.class.php I check a condition that can not be put into validators. If that condition fails I still want to have a red error message on top of the formular. How is this possible? I.e.: public function executeXYZ(sfWebRequest $request) {

[symfony-users] Re: How do the *.css from a forms getStylesheets() get on the final web page?

2009-09-08 Thread Christian Hammers
Hello On Tue, 08 Sep 2009 10:48:06 -0300 José Nahuel Cuesta Luengo wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Christian Hammers escribió: > > Hello > > > > I built my own Form (below) but neither the stylesheets nor the JavaScripts >

[symfony-users] How do the *.css from a forms getStylesheets() get on the final web page?

2009-09-08 Thread Christian Hammers
Hello I built my own Form (below) but neither the stylesheets nor the JavaScripts get included on the final web page. The form widget itself does work fine. What did I miss? class ncWidgetFormDynDateTime extends sfWidgetFormInput ... public function getStylesheets() { return

[symfony-users] Pass "?variable=value" to admin generator form via GET

2009-09-07 Thread Christian Hammers
Hello I have an Admin Generator form with several input fields. Now I want a link like /index.php/gu_historie/new?myinput=foo which not only jumps to this form but also fills the "myinput" field with an default value of "foo". I already know how to get the value in a customized executeNew() fu

[symfony-users] symfony 1.2 admin generator - how to integrate calendar-setup.js?

2009-05-11 Thread Christian Hammers
Hello I'm using the admin generator of symfony 1.2.7 and wondering how to replace the ugly three-part date input widget by something nice with javascript. In web/sf/calendar I found a very nice javascript calendar just how am I supposed to apply it? There is no rich=yes in sfWidgetFormInput().

[symfony-users] Re: Creating Directories for cron etc.

2008-05-20 Thread Christian Hammers
On 2008-05-20 CaffeineInc wrote: > > Hey everyone, > > I've got a situation where i need a spooler daemon to look over a > first in first out cache file stored somewhere in teh cache > directories. However I require a complex file structure to be created. > > I'm re-creating the envrionment a

[symfony-users] How to update Symfony-1.1 embedded forms?

2008-05-18 Thread Christian Hammers
Hello I read the thatsquality.com tutorial on Symfony-1.1 forms but apparently their examples do not cover the saving of embedded forms. While trying it out myself I found a solution but am still wondering if this is the intended way. It seems a bit superfluous to me that I have to cache the nam

[symfony-users] Re: Some pages rendering as non-XHTML

2008-05-16 Thread Christian Hammers
On Fri, 16 May 2008 01:47:17 -0700 (PDT) gunnarlium <[EMAIL PROTECTED]> wrote: > > Hi! > > I have recently experienced some funny behavior. Some of my pages are > rendered with non-XHTML style tags, i.e. content="index,follow"> intstead of content="index,follow" />. > > All my pages use the

[symfony-users] Re: Why setAttribute() and not autocompletable / verifiable setters/getters?

2008-05-13 Thread Christian Hammers
On Tue, 13 May 2008 09:44:07 +0200 Fabien POTENCIER <[EMAIL PROTECTED]> wrote: > > Christian Hammers wrote: > > Hello > > > > I'm trying to lean symfony1.1 forms and am slowed down because the > > usual "ctrl-space" auto completion of my

[symfony-users] Why setAttribute() and not autocompletable / verifiable setters/getters?

2008-05-12 Thread Christian Hammers
Hello I'm trying to lean symfony1.1 forms and am slowed down because the usual "ctrl-space" auto completion of my IDE (eclipse) does not reveal which options an object accepts. Example: $this->widgetSchema['tax']->setAttribute('size', 3); instead of $this->widgetSchema['tax']->set

[symfony-users] Re: sql join

2008-05-07 Thread Christian Hammers
On Tue, 6 May 2008 23:48:01 -0700 (PDT) kusum <[EMAIL PROTECTED]> wrote: > > hi >i am joining two table a and b.i want to print the data of b > table.how i can do this in symfony. > it is giving error. > > > Object of class "b" cannot be converted to string (Please create a > __toStrin

[symfony-users] Re: buy in Symfony V1.0.13?

2008-05-05 Thread Christian Hammers
On 2008-05-05 Mohammad Ali Safari wrote: > I am using Symfony V1.0.13 on windows (with WAMP) and whenever I use > admin-generator (symfony propel-init-admin ..) it not only rewrites > actions.class.php file in cache directory (which is normal) but also > rewrites the action.class.php in module

[symfony-users] Re: problème lors de l'utilisation en production de propel-load-data ... mysql extension not loa ded

2008-04-30 Thread Christian Hammers
Hi Pascal On Wed, 30 Apr 2008 06:25:00 -0700 (PDT) pascal82 <[EMAIL PROTECTED]> wrote: > [PropelException] >[wrapped: mysql extension not loaded [User Info: Array]] > (en rouge !) .. > Pourtant , j'ai le module CLI de php installé et l'extension mysql de > php aussi ... I don't speak french

[symfony-users] Combining several admin-generator views in one page

2008-04-30 Thread Christian Hammers
Hello I have admin-generator modules for several tables and would like to show some of them in one view. How should I do that? Can I have something like apps/admin/overview/actions/actions.class.php indexAction(): $this->output = $this->getController()->getPresentationFor('mymodule1', '

[symfony-users] Disabling caching of config?

2008-04-29 Thread Christian Hammers
Hello In spite of having apps/admin/config/settings.yml set to dev: .settings: cache: off the configuration and some files created by the Admin Generator still end up in cache/ which is annoying as I often forget to clear it. Is there a way of comepletely disa

[symfony-users] Re: Problem with forms edition in symfony 1.1

2008-04-28 Thread Christian Hammers
On Mon, 28 Apr 2008 07:30:59 -0700 (PDT) "Yohan 'rouKs' G." <[EMAIL PROTECTED]> wrote: > > Hi everyone, > > I have a problem with the propel-generated forms in symfony 1.1. > > I can create new records without any problems, but when i'm editing a > record, it's make a new... Hard to help with

[symfony-users] Enhanced scaffolding? Using "--theme"? Maybe with "TableKit"?

2008-04-25 Thread Christian Hammers
Hello Has anybody already enhanced the "propel:generate-crud" scaffolding by adding sortable or even editable tables, nice CSS styles and paging etc? For many problems a scaffolded application would be enough - if it only had some more luxus. There already seems to be a "--theme" option but I di

[symfony-users] Re: symfony1.1 web debug output looks ugly

2008-04-16 Thread Christian Hammers
> -- > Fabien Potencier > Sensio CEO - symfony lead developer > sensiolabs.com | symfony-project.com | aide-de-camp.org > Tél: +33 1 40 99 80 80 > > > Christian Hammers wrote: > > Hello > > > > I'm playing aroung with symfony 1.1 and the web debug

[symfony-users] symfony1.1 web debug output looks ugly

2008-04-16 Thread Christian Hammers
Hello I'm playing aroung with symfony 1.1 and the web debug javascript thing shows e.g. the "vars & config" very ugly: Request Toggle --- ? parameterHolder : ? action : index ? module : hardware Shouldn'

[symfony-users] Doctrine vs. Symfony 1.1 ? (was: Doctrine Admin Generator)

2008-04-06 Thread Christian Hammers
Hello Ian On 2008-03-24 Ian P. Christian wrote: ... > Up until recently I've been maintaining sfDP1.1 to keep it working with > sf1.1. However... we've stopped using doctrine internally, so I've > stopped maintaining it. What does this mean for the upcoming 1.1 release? I thought that Doctr