Re: [symfony-users] [Symfony 2] How to inject a Service into a Form

2011-03-04 Thread Jan Eichhorn
Do you mean a new FormContext? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googleg

[symfony-users] [Symfony 2] How to inject a Service into a Form

2011-03-03 Thread Jan Eichhorn
Hi, actually i want to add an "Dynamic" Choice Field to a Form Object. This choices array("a" => "b") comes from a Service wich i've registered before. So i need to get access to this service. $options = $container->get('mysevice')->getOptions(); $this->add('options', new ChoiceField('status',

[symfony-users] [Symfony 2] Accelerator Cache

2011-02-28 Thread Jan Eichhorn
Hi, is there any Accelerator Cache Manager implemented in Symfony 2? sth. like this: $container->get('cache.manager')->write(xys); I searched the whole source but i don't find anything. So I have written my own Caching Service. Thanks -- If you want to report a vulnerability issue on symfony,

[symfony-users] [Symfony 2] How to use the Assetic Bundle

2011-02-27 Thread Jan Eichhorn
Hi, is there any Documentation how to use the Assetic Bundle correctly within a Symfony 2 Project? I activated the Bundle in my Kernel and added some Configuration to my config.yml In the Twig template i used the assets tag and provide a Folder where my Assets are stored. So far so good. I Ena

[symfony-users] Re: [Symfony 2] Adding custom labels to form fields

2011-02-26 Thread Jan Eichhorn
Hi, thanks for your help. Thats actually helps a lot. Greets Jan -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to

[symfony-users] [Symfony 2] Adding custom labels to form fields

2011-02-25 Thread Jan Eichhorn
Hi, how i could add a label to an form field? I'am sitting here for a couple of hours trying to find out how to do this but i must capitulate. $this->add(new TextField('title', array( 'max_length' => 64, ))); I want to add a label to this field sth. like this:

Re: [symfony-users] [Symfony 2] Embedding Controller to Template

2011-02-25 Thread Jan Eichhorn
Wow! Thank you for this fast response! It works fine now! -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send ema

[symfony-users] [Symfony 2] Embedding Controller to Template

2011-02-25 Thread Jan Eichhorn
Hi, i've read the Documentation about Templating with Twig. In the Section: Embedding Controllers is mentioned that controllers could be used with the include tag. But this dosen't work so far. I try this: {% include 'PageBundle:Meta:mainNavigation' %} inside the Template. in this bundle there

[symfony-users] DATA UNION

2010-07-22 Thread jan
Is it possible to make a data union in symfony? I have query 1 and query 2 how can I make a data union? QUERY 1 $c = new Criteria(); $start_date= $this->date.' 12:00:00 AM '; $end_date= $this->endDate.' 11:59:59 PM'; $userid = $this->getLoggedInUser()->getID();

[symfony-users] Circular references in fixtures (patch for sfPropelData.class.php)

2010-05-17 Thread Jan Fabry
preferred_child_id All comments are welcome. Greetings, Jan Fabry Index: plugins/sfPropel15Plugin/lib/addon/sfPropelData.class.php === --- plugins/sfPropel15Plugin/lib/addon/sfPropelData.class.php (revision 29402) +++ plugins/sf

[symfony-users] Re: DBFinderPlugin future

2009-12-11 Thread Jan Fabry
You can find my patch for the unit tests here: [ http://pastebin.com/f18abd80b ]. This passes all tests on MySQL. It probably can be improved, but hopefully it is enough to motivate someone to start on the Doctrine part! Greetings, Jan Fabry On Dec 6, 3:53 pm, Daniel Lohse wrote: > That

Re: [symfony-users] Extending a plugin schema (propel)

2009-12-11 Thread Bert-Jan
jan/cowboys-1.2/dcModelPlugin/config/schema.yml is converted to a custom schema name _usr_home_bertjan_cowboys-1.2_dcModelPlugin_schema.custom.yml which should have been dcModelPlugin_schema.custom.yml I'm leaving on holiday in a few hours so I don't have time to create a patch for this. B

[symfony-users] Extending a plugin schema (propel)

2009-12-10 Thread Bert-Jan
this extending of a plugin's schema several times before in the past months and never got a single usable result from it. Can someone please confirm that it actually works with propel ? Has it ever worked ? Thanks, Bert-Jan -- You received this message because you are subscribed to the Goog

[symfony-users] Re: DBFinderPlugin future

2009-12-06 Thread Jan Fabry
ctrine internals could start with that? Greetings, Jan Fabry -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-u

[symfony-users] Re: DBFinderPlugin future

2009-11-19 Thread Jan Fabry
ansition to Doctrine as the default ORM. Is anyone still motivated to look at the open bugs, or is extra help required to get them fixed? Greetings, Jan Fabry > > On Thu, Nov 19, 2009 at 11:18 AM, Jan Fabry wrote: > > Hello, > > > Is anyone working on updating DbFinderPlugin

[symfony-users] DBFinderPlugin future

2009-11-19 Thread Jan Fabry
do this is start with Symfony 1.2 now, wait for the plugin, and upgrade to 1.3/1.4 when it is ready? If it is clear that no-one is planning to spend time on it, I might try it. I come from a Propel background, but my knowledge of the internals of Doctrine and Symfony needs work. Greetings,

[symfony-users] Re: Doctrine_Record_UnknownPropertyException

2009-11-18 Thread Jan Fabry
On Nov 18, 12:23 pm, Jan Fabry wrote: > On Nov 4, 6:56 am, theprodigy wrote: > > > I'm receiving an error of type: > > Doctrine_Record_UnknownPropertyException (Unknown method > > Company::getAddress2) > > I am seeing the same problem with a column named 

[symfony-users] Re: Doctrine_Record_UnknownPropertyException

2009-11-18 Thread Jan Fabry
umn name? If that is the case, this is a problem with Doctrine, not Symfony. I am trying to find where the name is converted to CamelCase, that is also a nice way to learn to know the inner workings of Doctrine :-) Jan -- You received this message because you are subscribed to the Google Groups &

[symfony-users] Patch for sfWidgetFormInputFileEditable.class.php

2009-09-29 Thread Bert-Jan
der() method didn't work because of this tiny bug. It breaks the array_merge. Have a nice day, Bert-Jan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this

Re: ***SPAM*** [symfony-users] Re: is creating subdomains on the fly possible - username.mysite.com ?? instead of mysite.com/username from controller

2009-09-28 Thread Jan De Coster
write a filter on the requested hostname ? kr, Jan dtwist schreef: > Hi Dagger, > > I'm brand new to Symfony, so I can't speak to any ingrained abilities > it has with regards to subdomains (for instance, would routing > help?). I can offer two things though: >

[symfony-users] Re: How to know if memcache is caching

2009-09-16 Thread Bert-Jan
You can start memcache with the -vv switch and without -d to keep it in foreground. It will then show you what it's doing as it happens. I use that to check if the session save handler of the pecl memcached extension works properly (it does btw. :)). alvaro schreef: > you can telnet to the host

[symfony-users] Re: How to handle async. background-tasks initiated by the frontend..

2009-07-06 Thread Bert-Jan
I'm using Gearman for moving stuff to the background. Absolutely wonderful stuff and very easy to deploy. Stefan Koopmanschap schreef: > Hi Christian, > The best option for this would be some kind of jobqueue system. There > are several options for this, which might or might not fit your soluti

[symfony-users] Cache not working when xdebug profiling is on

2009-06-30 Thread Bert-Jan
done about it? Running symfony 1.0.21-pre (from svn) on freebsd 7.1, apache 2.2.11, php 5.2.9, xdebug 2.0.4. Thanks, Bert-Jan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To pos

[symfony-users] Re: symfony-javascript

2009-06-02 Thread Jan Albert La Rosa
Also when i click the drop down it should put something so the radio button hmmm but it works to may current server i just copy the files and changed the configuration to and point it to its local server. i hope anyone can help me thanks in advance On Tue, Jun 2, 2009 at 2:17 PM, wrote: > hi

[symfony-users] Re: sfGuard problem

2009-05-20 Thread Jan De Coster
What ORM are you using ? Kr, -Oorspronkelijk bericht- Van: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] Namens murthy Verzonden: woensdag 20 mei 2009 13:58 Aan: symfony users Onderwerp: [symfony-users] sfGuard problem When I try to do "symfony propel:build-mo

[symfony-users] Re: question

2009-05-06 Thread Jan De Coster
equest()->setAttribute( 'foo', 'bar' ); //action: $request->hasAttribute('foo'); $request->getAttribute('foo'); Do not mix up request attributes with normal request parameters! Cheers, Frank Am 06.05.2009 um 09:00 schrieb Jan De Co

[symfony-users] question

2009-05-06 Thread Jan De Coster
Hi, Is there anyway i can set a variable from within a filter and access this from any template/action from my app ? Kr, Jan De Coster --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony

[symfony-users] question about i18n

2009-05-04 Thread Jan De Coster
Hi, Recently they dicided to put the app to i18n and now i'm facing some problems I have log files (masses) stuffed in a database like 'Document 1234 placed in procedure' Anyone knows a way how i can translate this using i18n ? Kind regards,

[symfony-users] Re: Where in statement

2009-04-13 Thread Jan Albert La Rosa
how about friend? thanks for your help friend --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group,

[symfony-users] Re: Where in statement

2009-04-13 Thread Jan Albert La Rosa
but sir from this query select created_at, id from transactions where id in (select transaction_id from ticket where end_timestamp != '') and created_at between '2009-01-01' and user_id = '42' i'll be getting data from transaction table and not from ticket so can i just rearr

[symfony-users] Re: Where in statement

2009-04-13 Thread Jan Albert La Rosa
$c = new Criteria(); $start_date= $this->date.' 12:00:00 AM '; $end_date= $this->endDate.' 11:59:59 PM'; $userid = $this->getLoggedInUser()->getID(); $c1 = $c->getNewCriterion(TransactionPeer::CREATED_AT, $start_date,Criteria::GREATER_EQUAL); $c2 = $c->getNew

[symfony-users] Re: Is it possible to trigger an action from the command line?

2009-04-09 Thread Jan De Coster
I'm pondering what the action does ? you should take a look at tasks ... Kr, Jan alvaro schreef: > use in a script: > > sfContext::getInstance()->getController()->forward($module, $action); > > instead of a call to dispatch() > > > On Apr 9, 2009, at 11:38 P

[symfony-users] Re: How to use cli task command in linux cron?

2009-04-09 Thread Jan De Coster
In 1.0 you could just create a 'Batch' and then run it by php /path/to/symfony/batchname For example: j...@lab:~/projects/lab$ symfony init-batch default foo frontend >> file+ /home/jan/projects/lab/batch/foo.php >> tokens/home/jan/projects/lab/batch/foo.php j

[symfony-users] Re: Serious character problems

2009-04-09 Thread Jan De Coster
Hi, I solved this by using htmlspecialchars and their decode() function ... Kr, Jan De Coster FÁSI Gábor schreef: > I remember we talked about this site a few weeks ago. > Let me ask you again: please double check that your template files > (especially the one where you have problem

[symfony-users] Re: How to use cli task command in linux cron?

2009-04-08 Thread Jan De Coster
Eno schreef: > On Tue, 7 Apr 2009, Frank He wrote: > > >> The first solution can be realized with as new script, but can you specify >> more about the second solution. And sample scripts? Thanks >> > > (cd /path/to/symfony/folder; php symfony clearAciveUsers) > > > why not php /path/to/s

[symfony-users] Re: Missing Javascript Libraries after PEAR installation

2009-03-22 Thread Jan De Coster
Couldn't it be that the symlinks to the js directory is wrong ? (I had this issue before between my mac and linux machine) Kind regards, Jan De Coster -Oorspronkelijk bericht- Van: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] Namens Campezzi Verz

[symfony-users] Re: question regarding form

2009-03-05 Thread Jan De Coster
OK, Thanks alot i'll try this kr, Jan Paolo Mainardi wrote: > > > On Thu, Mar 5, 2009 at 11:46 AM, Jan De Coster <mailto:j...@we-create.be>> wrote: > > so what i need to do is create somthing like this ? > > modules/foo/lib/form/FooForm.class.php

[symfony-users] Re: question regarding form

2009-03-05 Thread Jan De Coster
so what i need to do is create somthing like this ? modules/foo/lib/form/FooForm.class.php and modules/foo/lib/form/base/BaseFooForm.class.php ? kr, Paolo Mainardi wrote: > > > On Thu, Mar 5, 2009 at 11:40 AM, Jan De Coster <mailto:j...@we-create.be>> wrote: > > >

[symfony-users] question regarding form

2009-03-05 Thread Jan De Coster
is it possible to define a form in a module/lib folder ? can't find any documentation about this. Kr, Jan De Coster --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to t

[symfony-users] Re: frontend & backend routing

2009-03-04 Thread Jan De Coster
Did u cleared the cache ? kr, Tomasz Ignatiuk wrote: > It is strange because in dev everything works fine. But only in prod > environment this bug is shown. > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[symfony-users] question about propel and tinymce

2009-03-04 Thread Jan De Coster
hi, Is it possible to set the default editor for a form to the rich variant ? Kr, --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegro

[symfony-users] question about 500 errorcode

2009-03-02 Thread Jan De Coster
Hi, Is it possible to parse a 500 error with a module/action ? like a 404 ? Kr, Jan De Coster --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email

[symfony-users] Re: sfErrorLoggerPlugin

2009-03-02 Thread Jan De Coster
.4. > > What specifically did you change? create a patch and send it to me, I'll QA, > apply and test. > > - Original Message - > From: "Jan De Coster" > To: symfony-users@googlegroups.com > Sent: Monday, 2 March, 2009 1:50:15 PM GMT +00:00 GMT Bri

[symfony-users] sfErrorLoggerPlugin

2009-03-02 Thread Jan De Coster
Hi, I made some adjustments at the plugin so it's 1.2 ready ... is there anyway to get this in the working repo's ? Kr, Jan De Coster --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony u

[symfony-users] Re: I am unable to install sfErrorHandlerPlugin

2009-03-02 Thread Jan De Coster
Hi, I have the same problems with my 'cc' so what i do is 'sudo chmod -R 777 cache; symfony cc' and usualy does the job ... Kr, Lawrence Krubner wrote: > I want to use this plugin: > > http://www.symfony-project.org/plugins/sfErrorHandlerPlugin/1_0_7 > > The installation seemed to work correctl

[symfony-users] Re: sfWidgetFormTextareaTinyMCE() not working

2009-02-27 Thread Jan Schlosser
Hey, just out of curiosity: Did you include the TinyMCE Javascript (the library) into the HTML source? Regards, Jan Am 26.02.2009 um 15:18 schrieb we-create: > when i try to call this function with: > > 'inhoudnl' => new sfWidgetFormTextareaTinyMCE( > arr

[symfony-users] Re: Propel - Two columns of a table not_equal

2009-02-26 Thread Jan De Coster
$c->add(TablePeer::Column1, TablePeer::Column2, Criteria::NOT_LIKE); Or somthing like that ... -Oorspronkelijk bericht- Van: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] Namens Tomasz Ignatiuk Verzonden: donderdag 26 februari 2009 21:00 Aan: symfony users Onde

[symfony-users] Re: sfWidgetFormTextareaTinyMCE() not working

2009-02-26 Thread Jan De Coster
'width'=>550, 'height'=>350, 'config'=>'theme_advanced_disable: "anchor,image,cleanup,help"', 'theme' => sfConfig::get('app_tinymce_theme','advanced'), ), array(

[symfony-users] Propel 1.3 replication support in symfony

2009-02-16 Thread Bert-Jan
I wasn't using replication at that time: http://forum.symfony-project.org/index.php/m/51845/?srch=replication A more recent reference to that same thread doesn't include anything new either... http://forum.symfony-project.org/index.php/m/71153/ Does someone know the current status of thi

[symfony-users] Propel 1.3 questions

2009-01-23 Thread Bert-Jan
covered: when I change some fields of a Logins() object and ->save() it, the query isn't run through my query-rewriting class but is handled elsewhere, resulting in a table not found error. Thanks, Bert-Jan --~--~-~--~~~---~--~~ You received this message be

[symfony-users] Re: SfDT - Symfony Eclipse Plugin

2009-01-15 Thread Bert-Jan
t you're > looking for? > > greets > Sven > > > > Juan Fernando Obando Saldarriaga schrieb: >> I wanna know if this plugin adds a configuration menu for yaml files on >> "preferences" menu of eclipse 3.4 >> >> Thanks again for the plu

[symfony-users] Re: [sf 1.2] Using "#" as a separator in URL or ignore it

2009-01-07 Thread Bert-Jan
# may not be a very good idea.. probably the problem isn't with symfony but with the browser, since # is used to jump to an anchor on a page ( in index.php can be linked to with click). The page is loaded normally and the browser jumps to the jumphere-anchor, if it exists. The data after # is prob

[symfony-users] Re: Best way of verifying uri corresponence

2008-12-29 Thread Bert-Jan
Wouldn't it be much simpler to just make an a:active entry in your stylesheet ? > > Hi, > > I want to add a "selected" class name to every link that match the > current uri. My approach for verifying the correspondence between the > link (a route name, a group of module/action etc) and the uri is

[symfony-users] Re: Where to place wrapper class for external API?

2008-11-22 Thread Jan
I found it myself: 1. Call the file foo.class.php (where foo is replaced by the class' name) 2. Place it in /lib/ of the project 3. symfony cc 4. Use it. - Jan On 20 Nov., 11:50, Jan <[EMAIL PROTECTED]> wrote: > Hi, > > I'm pretty new to Symfony so please forgive

[symfony-users] Re: Doctrine related: Custom values

2008-11-20 Thread Jan
Sorry, my answer was total bogus. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email t

[symfony-users] Re: Doctrine related: Custom values

2008-11-20 Thread Jan
Shouldn't you use this? $player->setPasswordConfirmation('1234'); - Jan On 20 Nov., 16:12, Sebastian <[EMAIL PROTECTED]> wrote: > Hi. > > I need some help - again ;) . > > In a unit test I'm doing something like this: > > $player->mapVa

[symfony-users] Re: perform file writing in edit save

2008-11-20 Thread Jan
spaghetti code php script, you just have to integrate this in Symfony and add it to your save/edit function. As you are using init-admin interface I'm sorry I can't help you (I'm pretty new to this, too), but I am sure someone else can. - Jan On 20 Nov., 11:43, Asher Muhammad <[EMAIL

[symfony-users] Where to place wrapper class for external API?

2008-11-20 Thread Jan
th valid/invalid, user details, errors etc. - API response data is only valid for one session. Next login, I have to query the API again. Thanks, Jan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users&

[symfony-users] Where to get user_id from context and place it into my object?

2008-11-20 Thread Jan
is this the right way to go? Or am I looking on the wrong end and should better do this totally different? Help would be appreciated. - Jan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" gr

[symfony-users] Re: changing the location of template files

2008-02-02 Thread Jan-Peter Hagenmüller
I never saw any docs on the official sites. A templates/module structure does not meet symfony's standards, why would you need such "turn-around"? A full "template i18n" support - what functionality do you need? I used to use two methods to achieve it: (1) for static content in your templates u

[symfony-users] routing problem

2008-02-02 Thread Jan-Peter Hagenmüller
No, I'm using 1.0.11. But now - on a fresh new day and mind :-) I found the problem. I started a new project environment and migrated all apps and plugins one by one. Everything worked fine until the installation of the sfTCPDFPlugin... It seems that the config for that plugin breaks the connecti

[symfony-users] routing problem

2008-02-01 Thread Jan-Peter Hagenmüller
Hello, I use to prepend routing rules in my plugin's config.php There was no problem doing so until a few days, when I made some major refactorings. usually all routes including those prepended are "connected" before sfRouting parses them all and finds the matching rule: logs as expected for d