[symfony-users] modelo n:m embed forms

2009-08-13 Thread juaninf
gestor: id: { type: INTEGER, primaryKey: true, required: true, autoIncrement: true } nombre: { type: VARCHAR, size: '45' } dni: { type: VARCHAR, size: '45' } pedido: id: { type: INTEGER, primaryKey: true, required: true, autoIncrement: true } hola: { type: VARCHAR, size: '45

[symfony-users] i18n in meta tags

2009-08-13 Thread mintao
I just turned on the debugging mode for i18n. As it turned out it's possible to internationalize the meta tags as well (I'm using 1.2.8). But I've no clue what key I have to use in the translation file to get the meta-tags replaced by the internationalized values. [...] Thanks and best regar

[symfony-users] Re: Problem with new lines in text emails

2009-08-13 Thread John Masson
As Francois said you will need to add line breaks, but even still I went nuts one day over this, only to find a little blue bar in outlook (above the message) that says something along the lines of 'extra line breaks have been removed from ths message, click here to add them back in' Not sure

[symfony-users] Re: How can I get the sf_cache_key ??

2009-08-13 Thread Eno
On Thu, 13 Aug 2009, Nei Rauni Santos wrote: > I worked fine, but the variable > sf_cache_key=40cd750bba9870f18aada2478b24840a" is hardcoded, how can I get > this key dinamicaly?? You could set your own cache key. -- --~--~-~--~~~---~--~~ You received this m

[symfony-users] How can I get the sf_cache_key ??

2009-08-13 Thread Nei Rauni Santos
Hi, I'm trying to show the cache datetime on my template. can you help me? on my action I do it: $cacheManager = $this->getContext()->getViewCacheManager(); $component_uri = "@sf_cache_partial?module=dashboard&action=_translations&sf_cache_key=40cd750bba9870f18aada2478b24840a"; $this->l

[symfony-users] Re: Swift Mail

2009-08-13 Thread Eno
On Thu, 13 Aug 2009, DEEPAK BHATIA wrote: > > Yes, I know HTML very well but still need a good hand on it. > > On Thu, Aug 13, 2009 at 11:53 PM, Eno wrote: > > > > On Thu, 13 Aug 2009, DEEPAK BHATIA wrote: > > > >> I tried this and nto working > >> > >> $textbody = "Text to appear as hyperlink"

[symfony-users] Re: functional test and session

2009-08-13 Thread Chtipepere
I test this : $browser->test()->is($browser->getContext()->getUser()->hasAttribute ('values'), true); But whatever I do, the test returns false... It seems that session variables are not being stored during a test. Any idea ? Thanks On 13 août, 01:02, Chtipepere wrote: > Hi everybody, > > Does

[symfony-users] Re: Swift Mail

2009-08-13 Thread DEEPAK BHATIA
Yes, I know HTML very well but still need a good hand on it. On Thu, Aug 13, 2009 at 11:53 PM, Eno wrote: > > On Thu, 13 Aug 2009, DEEPAK BHATIA wrote: > >> I tried this and nto working >> >> $textbody = "Text to appear as hyperlink"; >> >> But I am not getting the hyperlink. > > > Perhaps learni

[symfony-users] Re: Swift Mail

2009-08-13 Thread Eno
On Thu, 13 Aug 2009, DEEPAK BHATIA wrote: > I tried this and nto working > > $textbody = "Text to appear as hyperlink"; > > But I am not getting the hyperlink. Perhaps learning HTML might be a good idea? -- --~--~-~--~~~---~--~~ You received this message

[symfony-users] Re: Swift Mail

2009-08-13 Thread DEEPAK BHATIA
Thanks.. On Thu, Aug 13, 2009 at 11:40 PM, Tom Haskins-Vaughan wrote: > > Surely you need to add the href? > > $textbody = "http://example.com";>Text to appear as hyperlink"; > > DEEPAK BHATIA wrote: >> I tried this and nto working >> >> $textbody = "Text to appear as hyperlink"; >> >> Bu

[symfony-users] Re: Swift Mail

2009-08-13 Thread Tom Haskins-Vaughan
Surely you need to add the href? $textbody = "http://example.com";>Text to appear as hyperlink"; DEEPAK BHATIA wrote: > I tried this and nto working > > $textbody = "Text to appear as hyperlink"; > > But I am not getting the hyperlink. > > Regards > > Deepak Bhatia > > On Thu, Aug 13, 2009

[symfony-users] Re: Swift Mail

2009-08-13 Thread DEEPAK BHATIA
I tried this and nto working $textbody = "Text to appear as hyperlink"; But I am not getting the hyperlink. Regards Deepak Bhatia On Thu, Aug 13, 2009 at 6:52 PM, Donald Tyler wrote: > > You have two opening "b" tags in your body. The second one should be . > > > > --~--~-~--~~--

[symfony-users] Re: Problem with customized form

2009-08-13 Thread Aurélien Lansmanne
Ok.. fixed :) Added //(forgot it too) to my template. On 13 août, 19:00, Aurélien Lansmanne wrote: > Hello, > > I've got a little problem when I try to edit the way my form is > displayed. > > If I use > , everything works fine. > > If I want to render each widget or row individu

[symfony-users] Re: Bus error -- Error message when running propel:build-model

2009-08-13 Thread Bobo
Something that I forgot to add, the error message I got was not bus error, but this one: CLI has encountered a problem" (ModName: php5ts.dll) AppName: php.exe AppVer: 5.2.9.9 ModName: php5ts.dll ModVer: 5.2.9.9 Offset: 0010b00a And I am running in windows xp pro sp3 rather than

[symfony-users] Re: Bus error -- Error message when running propel:build-model

2009-08-13 Thread Bobo
Hi, I have exactly the same problem. After replacing CURRENT_TIMESTAMP with '-00-00 00:00:00' in the schema.yml, the symfony propel:build-model command no longer stopped at the "Running 'om' phing task" line and it ran successfully. I am using the PHP of xammp lite 1.7.1 and symfony 1.2.8.

[symfony-users] Re: Help text for nested form fields

2009-08-13 Thread Ca-Phun Ung
*bump* On Wed, Aug 12, 2009 at 4:45 PM, caphun wrote: > > Hi, > > Been looking around for answers to this but couldn't find one. Does > anyone know how to get the help text from generator.yml to pull > through to a nested form field? If that's not possible what's the best > way to manually set t

[symfony-users] Problem with customized form

2009-08-13 Thread Aurélien Lansmanne
Hello, I've got a little problem when I try to edit the way my form is displayed. If I use , everything works fine. If I want to render each widget or row individually, the form doesn't work anymore. I get the error : [csrf token: Required.] (I'm using renderRow() ?> , etc.. ) If I compare bo

[symfony-users] Re: Very Very strange propel problem "Cannot fetch ColumnMap for undefined column: "

2009-08-13 Thread François CONSTANT
not dumb, propel looks for the field startdate because it's somewhere in your code. symfony propel:build-model symfony cc If you want to make sure that your table is OK, look into data/ the generated sql. You can copy paste the sql to create your table from here without changing all the tables.

[symfony-users] sfDoctrineGuardPlugin for "owner" like permissions

2009-08-13 Thread gino pilotino
Hello, i'm pretty new to symfony. I'm trying to get a "owner" like beahviour on a object/model with sfGuardDoctrinePlugin. What i'm trying to do is to associate a model with a sfGuardGroup like this: MyModel: columns: some_column: ~ sf_guard_group_id: ~ relations: sfGuardGroup:

[symfony-users] Re: Very Very strange propel problem "Cannot fetch ColumnMap for undefined column: "

2009-08-13 Thread alvaro
Dumb question, but did have you rebuild the model? propel-build-model? On Aug 13, 2009, at 3:59 PM, JackJones wrote: > > Hi All > > I spend more than one day on this problem. I think, i tried everything > but the problem is still there: > > I have a table calendar. The structure bevor my chan

[symfony-users] sfPropelPlugin - nestedset addIncludes problem

2009-08-13 Thread Vojta
When set addIncludes false in propel.ini, it does not work for nested set... I thought it is a bug in Propel, but according to this ticket, probably not: http://propel.phpdb.org/trac/ticket/678 By the way, is there eny explanation of all propel.ini settings ? --~--~-~--~~~

[symfony-users] Very Very strange propel problem "Cannot fetch ColumnMap for undefined column: "

2009-08-13 Thread JackJones
Hi All I spend more than one day on this problem. I think, i tried everything but the problem is still there: I have a table calendar. The structure bevor my changes was: calendar: id: name: startdate: enddate: ==> now i have deletet the field "startdate" and "enddate". - remove it form t

[symfony-users] doctrine & store procedures

2009-08-13 Thread roberto german puentes diaz
Hi to all. Everybody know that a store procedure is faster than a sql statement. Is possible for Doctrine generate Stores? Maybe store for SELECT. R -- Cr. Puentes Diaz MP 10.12726.9 Córdoba - Argentina www.puentesdiaz.com.ar/blog/ www.puentesdiaz.com.ar/blog/novedades www.puentesdiaz.com.ar/

[symfony-users] Re: Analyse doctrine queries

2009-08-13 Thread klemens_u
Hi Eno, in my case there is quite complex logic involved including a lot of sfDoctrineForms etc. So it's not so easy anymore to trace at which point Doctrine executes a query escpecially when a lot of relations are involved. There's also the second part of my question about the execution time of

[symfony-users] Re: Swift Mail

2009-08-13 Thread DEEPAK BHATIA
Thanks.. On Thu, Aug 13, 2009 at 6:52 PM, Donald Tyler wrote: > > You have two opening "b" tags in your body. The second one should be . > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony u

[symfony-users] Re: Swift Mail

2009-08-13 Thread Donald Tyler
You have two opening "b" tags in your body. The second one should be . --~--~-~--~~~---~--~~ 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 uns

[symfony-users] Re: Analyse doctrine queries

2009-08-13 Thread Eno
On Thu, 13 Aug 2009, klemens_u wrote: > > bubbling this up... > Im guessing noone answered because its a bit of a strange question. I mean, you wrote an action, so you should know where the queries are coming from?! > On Aug 12, 4:14 pm, klemens_u wrote: > > I'm using symfony 1.2.7 with

[symfony-users] Re: Symfony Project configuration on another machine

2009-08-13 Thread Eno
On Thu, 13 Aug 2009, mirfan wrote: > I have configured my symfony project on UBUNTU machine now i want to > configure the same on another ubuntu machine i copy the project to > second machine but it just give me that you have no permission to > access the file or folder, how i will configure it

[symfony-users] Re: Problem with new lines in text emails

2009-08-13 Thread François CONSTANT
Hi, if it's a classic email, you must put '\n' or '\r\n' to go to the next line. In Eclipse, a new line is probably a '\r'. I think that it depends on the charset U're using in Eclipse. If you use HTML, manage that with paragraphs and tags inside paragraphs. Hope it helps, On Aug 13, 9:41 am,

[symfony-users] Re: Swift Mail

2009-08-13 Thread Mr_chon
Hi, Not sure this has its place in a symfony group... Anyways, if you're using Swift v3, the way I've made that work was : $message = new Swift_Message('your subject'); $message->attach(new Swift_Message_part($mailBody, 'text/html')); then you can send it... On 13 août, 12:50, DEEPAK BHATIA

[symfony-users] Swift Mail

2009-08-13 Thread DEEPAK BHATIA
Hi, As per the below code, the mail is send as "text/html". $mailBody=""."This is the message"."" But the message is not bold. Thanks Deepak === try { // Create the mailer and message objects $mailer = new Swift(new Swift_Connection_NativeM

[symfony-users] ajax form

2009-08-13 Thread Nosok
Hello, I have a submit form which adds a message to the list under this form. It is an ajax form. But now I placed a new link near this form, called "blog". And I have to make to things: The first: if I click this link, the list of messages under the form must change to the list of blog posts. Thi

[symfony-users] Re: Analyse doctrine queries

2009-08-13 Thread klemens_u
bubbling this up... On Aug 12, 4:14 pm, klemens_u wrote: > I'm using symfony 1.2.7 with Doctrine 1.0 and I have an action which > produces far too much database queries. > > What are your best practices to find out where the queries come from > and how much time they consume? > > The web debug t

[symfony-users] Re: install sfcaptcha plugin for symfony 1.2.8

2009-08-13 Thread shakir33
hi, me to i have the same problem so please if you found the solution, tell me plese thanks On 29 juil, 09:06, blueyes wrote: > hello every body, > there is any one who installed the sfCaptcha plugin for the symfony > 1.2.8 because i didn't found haw to install it and i didn't found the > p

[symfony-users] Problem with new lines in text emails

2009-08-13 Thread Sumedh
Hi Friends, We send text emails using symfony 1.0... A peculiar problem is with newlines...sometimes, even if a line is written on a new line in the editor (Eclipse), it is not taken as new line in Outlook...and the line just continues in the same line... When I make it 2 new lines in the templ

[symfony-users] Re: Problem in downloading a file via an action...

2009-08-13 Thread Sumedh
The problem was solved when I used an ordinary form instead of AJAX one. On Aug 11, 4:04 pm, juzek wrote: > //content-disposition, attachement// sets only filename under which > the file will be saved from the browser. > it doesn't send the file to the browser , in  fact. > > Try using > > $this

[symfony-users] Symfony Project configuration on another machine

2009-08-13 Thread mirfan
Hi everyone, I have configured my symfony project on UBUNTU machine now i want to configure the same on another ubuntu machine i copy the project to second machine but it just give me that you have no permission to access the file or folder, how i will configure it please help me. --~--~-