Re: [symfony-users] How to remove the "" from $widget->renderHelp()

2010-05-06 Thread Земсков Юрий
You have to add

$this->getWidgetSchema()->getFormFormatter()->setHelpFormat('%help%');

at the end of YourFormClass::configure() method

Âû ïèñàëè 6 ??? 2010 ?., 17:24:27:

> Hi,

> I got a tiny, but anooying, problem, when I use the $widget-
>>renderHelp() method, it adds me a , how to delete it ?

> Thank you.



-- 
Ñ óâàæåíèåì,
 ???   mailto:y...@zemskov.name

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re[2]: [symfony-users] Re: $this->getRequest()->isMethod('post')

2010-05-05 Thread Земсков Юрий




method declaration looks like 

public function executeSomething(sfWebRequest $request)

OR 

public function executeSomething()

? Try the first one.

Вы писали 5 мая 2010 г., 23:04:21:




>


Oh I tried that...it doesn't recognize the variable at all...what i did was

$request->isMethod('post')...so any clue?


On Tue, May 4, 2010 at 8:51 PM, fRAnKEnSTEin <shirkav...@gmail.com> wrote:

Hi there,

If you are inside some controller action you can try "$request-
>isMethod('post')" instead  "$this->getRequest()->isMethod('post')"

Tell me what happen if you give it a try...

Cheers

--

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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


-- 
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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en







-- 
С уважением,
 Земсков Юрий                          mailto:y...@zemskov.name





-- 
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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] sfForm button widgets?

2010-05-04 Thread Земсков Юрий
Hi,

need to make SForm (symfony 1.4)


Male
Female


Any  ideas (except using radios with one submit button) how to achieve
that? Plugins maybe? Thanks in advance.

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Re: save xml php

2010-04-08 Thread Земсков Юрий
button points browser to (js) window.location='balance/webmoneyXml'

action executeWebmoneyXml() retrieves data

modules/balance/templates/webmoneyXmlSuccess.php just echos xml code.

and  modules/balance/config/view.yml  setups  headers so xml code will
not be displayed, but downloaded by the browser.

Вы писали 8 апреля 2010 г., 14:49:04:

> then how do you let this code work if you by example press a button?
> and i will probaly also need to fix the absolute path of the xml file
> but i can solve this with an absolute path (so don't worry about that)

> already thanks for your solution

> On 8 apr, 11:19, Земсков Юрий  wrote:
>> I'm using this code in view.yml file located in /config/ folder of the
>> current module:
>>
>> webmoneyXmlSuccess:
>>   has_layout: false
>>   http_metas:
>> content-description: File Transfer
>> content-type: application/xml
>> content-disposition: 'attachment; filename=payment.xml'
>>
>> Au ienaee 8 ?? 2010 ?., 13:02:01:
>>
>>
>>
>>
>>
>> > I'm using symfony-1.4.3 and my php version is 5.3
>> > On 8 apr, 09:31, Stephane  wrote:
>> >> What is your symfony version ?
>>
>> >> Before Printing, Think about Your Environmental Responsibility!
>> >> Avant d'Imprimer, Pensez a Votre Responsabilitee Environnementale!
>>
>> >> On Thu, Apr 8, 2010 at 10:27 AM, kim  wrote:
>> >> > hmmm strange my symfony doesn't recognize the setHeader from
>> >> > getResponse()
>>
>> >> > greetings
>>
>> >> > On 7 apr, 16:45, Stephane  wrote:
>> >> > > $this->getReponse()->setHeader('Content-type', $documentMIMEType);
>> >> > > in your action ($this is instance of sfActions)
>>
>> >> > >http://www.symfony-project.org/api/1_0/sfWebResponse#method_sethttphe...
>>
>> >> > > Before Printing, Think about Your Environmental Responsibility!
>> >> > > Avant d'Imprimer, Pensez a Votre Responsabilitee Environnementale!
>>
>> >> > > On Wed, Apr 7, 2010 at 5:37 PM, kim  wrote:
>> >> > > > thnanks this is indeed what i'm searching for but i was wondering 
>> >> > > > how
>> >> > > > i can set this headers
>> >> > > > so that the user can select by himself where the file will be
>> >> > > > downloaded
>>
>> >> > > > greetings
>>
>> >> > > > On 7 apr, 15:31, "Christopher Schnell"  wrote:
>> >> > > > > You have to set the http headers. Unfortunately I don't have an
>> >> > example
>> >> > > > at
>> >> > > > > hand, but this should get you started.
>>
>> >> > > > > Don't forget to turn off layout.
>>
>> >> > > > > Regards,
>> >> > > > > Christopher.
>>
>> >> > > > > -Ursprungliche Nachricht-
>> >> > > > > Von: symfony-users@googlegroups.com [mailto:
>> >> > > > symfony-us...@googlegroups.com]
>> >> > > > > Im Auftrag von kim
>> >> > > > > Gesendet: Mittwoch, 7. April 2010 12:57
>> >> > > > > An: symfony users
>> >> > > > > Betreff: [symfony-users] save xml php
>>
>> >> > > > > hello,
>>
>> >> > > > > i have parsed a xml from a string with the simplexml_load_string()
>> >> > > > > function
>> >> > > > > but now i want to show a save file dialog so the user can download
>> >> > the
>> >> > > > > xml file
>> >> > > > > but how do i have to do this?
>>
>> >> > > > > thanks
>>
>> >> > > > > --
>> >> > > > > 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@googlegroups.com
>> >> > > > > To unsubscribe 

Re: [symfony-users] Re: save xml php

2010-04-08 Thread Земсков Юрий
I'm using this code in view.yml file located in /config/ folder of the
current module:

webmoneyXmlSuccess:
  has_layout: false
  http_metas:
content-description: File Transfer
content-type: application/xml
content-disposition: 'attachment; filename=payment.xml'



Âû ïèñàëè 8 ?? 2010 ?., 13:02:01:

> I'm using symfony-1.4.3 and my php version is 5.3

> On 8 apr, 09:31, Stéphane  wrote:
>> What is your symfony version ?
>>
>> Before Printing, Think about Your Environmental Responsibility!
>> Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!
>>
>>
>>
>> On Thu, Apr 8, 2010 at 10:27 AM, kim  wrote:
>> > hmmm strange my symfony doesn't recognize the setHeader from
>> > getResponse()
>>
>> > greetings
>>
>> > On 7 apr, 16:45, Stéphane  wrote:
>> > > $this->getReponse()->setHeader('Content-type', $documentMIMEType);
>> > > in your action ($this is instance of sfActions)
>>
>> > >http://www.symfony-project.org/api/1_0/sfWebResponse#method_sethttphe...
>>
>> > > Before Printing, Think about Your Environmental Responsibility!
>> > > Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!
>>
>> > > On Wed, Apr 7, 2010 at 5:37 PM, kim  wrote:
>> > > > thnanks this is indeed what i'm searching for but i was wondering how
>> > > > i can set this headers
>> > > > so that the user can select by himself where the file will be
>> > > > downloaded
>>
>> > > > greetings
>>
>> > > > On 7 apr, 15:31, "Christopher Schnell"  wrote:
>> > > > > You have to set the http headers. Unfortunately I don't have an
>> > example
>> > > > at
>> > > > > hand, but this should get you started.
>>
>> > > > > Don't forget to turn off layout.
>>
>> > > > > Regards,
>> > > > > Christopher.
>>
>> > > > > -Ursprüngliche Nachricht-
>> > > > > Von: symfony-users@googlegroups.com [mailto:
>> > > > symfony-us...@googlegroups.com]
>> > > > > Im Auftrag von kim
>> > > > > Gesendet: Mittwoch, 7. April 2010 12:57
>> > > > > An: symfony users
>> > > > > Betreff: [symfony-users] save xml php
>>
>> > > > > hello,
>>
>> > > > > i have parsed a xml from a string with the simplexml_load_string()
>> > > > > function
>> > > > > but now i want to show a save file dialog so the user can download
>> > the
>> > > > > xml file
>> > > > > but how do i have to do this?
>>
>> > > > > thanks
>>
>> > > > > --
>> > > > > 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@googlegroups.com
>> > > > > To unsubscribe from this group, send email to
>> > > > > symfony-users+unsubscr...@googlegroups.com
>> > 
>> > > > > For more options, visit this group athttp://
>> > > > groups.google.com/group/symfony-users?hl=en
>>
>> > > > > To unsubscribe, reply using "remove me" as the subject.
>>
>> > > > --
>> > > > 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@googlegroups.com
>> > > > To unsubscribe from this group, send email to
>> > > > symfony-users+unsubscr...@googlegroups.com
>> > 
>> > > > For more options, visit this group at
>> > > >http://groups.google.com/group/symfony-users?hl=en-Tekst uit
>> > oorspronkelijk bericht niet weergeven -
>>
>> > > - Tekst uit oorspronkelijk bericht weergeven -
>>
>> > --
>> > 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@googlegroups.com
>> > To unsubscribe from this group, send email to
>> > symfony-users+unsubscr...@googlegroups.com
>> > For more options, visit this group at
>> >http://groups.google.com/group/symfony-users?hl=en- Tekst uit 
>> >oorspronkelijk bericht niet weergeven -
>>
>> - Tekst uit oorspronkelijk bericht weergeven -



-- 
Ñ óâàæåíèåì,
 ???   mailto:y...@zemskov.name

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Re: sfAction Different In 1.4?

2010-02-26 Thread Земсков Юрий
He is extending sfAction, no sfActionS - so this is (was?) correct.

Âû ïèñàëè 25 ??? 2010 ?., 23:08:36:

> Function name should be like "executeIndex", but not just "execute".

> On Feb 25, 7:07 pm, Darren884  wrote:
>> I get this error:
>> Fatal error: Declaration of homeAction::execute() must be compatible
>> with that of sfComponent::execute() in /var/www/vhosts/blackhawk.biz/
>> symfony/apps/frontend/modules/pages/actions/homeAction.class.php  on
>> line 11
>>
>> When I use this code:
>> >
>> /**
>>  * home action.
>>  *
>>  * @packageBlack Hawk Tobacco
>>  * @subpackage pages
>>  * @author Darren Labey
>>  * @versionSVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z
>> Kris.Wallsmith $
>>  */
>> class homeAction extends sfAction
>> {
>>   public function execute(sfWebRequest $request)
>>   {
>>   }
>>
>> }
>>
>> My action is named homeAction.class.php
>>
>> Am I forgetting something in 1.4? Or has this changed or somethign?
>> Does anyone know?
>>
>> Thanks,
>> Darren



-- 
Ñ óâàæåíèåì,
 ???   mailto:y...@zemskov.name

-- 
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@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] JavaScript and Css Fails to Load from the View.yml

2010-02-14 Thread Земсков Юрий
has_layout: on
should be
has_layout: true

1.4  comes with a new version of yaml parser, and true is the only valid
boolean  true  in  it.  Same mistake "killed" my security.yml files,
maybe it is the reason why your view.yml isn't working.

Âû ïèñàëè 13 ??? 2010 ?., 23:50:55:

> Guys,
> I am trying to set up a new project. I want to include some css files
> and javascript files via the global view.yml. I have placed the
> javascript files under web/js/ and placed the css under web/css/. I
> would expect that the auto loader would pick up these files. I have
> tried to include the files in the layout.php file with the lines
> 
> 
> 
> 
> 

> However I still do not see the javascript or css appear. Any help
> would be greatly appricated as I am totally stumped?

> This is my view.yml

> # You can find more information about this file on the symfony
> website:
> # http://www.symfony-project.org/reference/1_4/en/13-View

> default:
>   http_metas:
> content-type: text/html

>   metas:
> #title:symfony project
> #description:  symfony project
> #keywords: symfony, project
> #language: en
> #robots:   index, follow

>   stylesheets:[main.css]

>   javascripts:[jquery.js]

>   has_layout: on
>   layout: layout



-- 
Ñ óâàæåíèåì,
 ???   mailto:y...@zemskov.name

-- 
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-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] Using SQL Aggregate functions in propel generate admin

2010-02-13 Thread Земсков Юрий
Hello,

there is a table `stat_main`:
id | user_id | date | hit | uniq | money

and  a  propel  generated admin module for it.

Using StatMain obj-s is fine  for  each  individual  user,  but for
backend page I want to use MySQL  SUM() in a query, like
'SELECT  date,  SUM(hit),  SUM(money) GROUP BY date'.

Any ideas how to use this in propel admin generated module? Maybe with
custom  peer  method or something (I have no ideas how to hydrate this
aggregate columns into objects). Thanks in advance for any thoughts and ideas.

-- 
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-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



Re[2]: [symfony-users] Admin generator without CSS

2010-02-09 Thread Земсков Юрий
http://www.symfony-project.org/getting-started/1_4/en/05-Web-Server-Configuration#chapter_05_sub_web_server_configuration

Read about 'alias /sf'

Âû ïèñàëè 9 ??? 2010 ?., 18:54:28:

> On 2/9/2010 10:49 AM, NOOVEO - Christophe Brun wrote:
>> You should run the
>> "plugin:publish-assets"
>> task from your CLI to fix that
>>

> I'm having the same problem. I've run the task plugin:publish-assets and
> sfDoctrineGuard folder was copied to /web directory but not sf_admin 
> files. Any way to do this manually?

> -- 
> Cheers
> ReynierPM



-- 
Ñ óâàæåíèåì,
 ???   mailto:y...@zemskov.name

-- 
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-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



Re[2]: [symfony-users] AJAX Helpers

2010-02-09 Thread Земсков Юрий




Is this the same old obtrusive _javascript_ version.

Вы писали 9 февраля 2010 г., 10:44:06:




>


Is this the same old obtrusive _javascript_ version or has it been refactored as an unobtrusive version?


2010/2/9 Земсков Юрий <y...@zemskov.name>

http://www.symfony-project.org/plugins/sfProtoculousPlugin

;)

Вы писали 9 февраля 2010 г., 10:20:27:




>


Hi,
 
It seems link_to_remote and form_remote_tag has been deprectaed in Symfony 1.4. How do we achieve this functionality in Symfony 1.4.
 
The Jobeet tutorial for 1.4 discusses briefly about AJAX.
 
Thanks in advance.
 
Regards
 
Deepak Bhatia
-- 
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 to symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.







-- 
С уважением,
 Земсков Юрий                          mailto:y...@zemskov.name
-- 
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 to symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.



-- 
Gareth McCumskey
http://garethmccumskey.blogspot.com
twitter: @garethmcc

-- 
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-users+unsubscr...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.







-- 
С уважением,
 Земсков Юрий                          mailto:y...@zemskov.name





-- 
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-users+unsubscr...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.




Re: [symfony-users] AJAX Helpers

2010-02-08 Thread Земсков Юрий




http://www.symfony-project.org/plugins/sfProtoculousPlugin

;)

Вы писали 9 февраля 2010 г., 10:20:27:




>


Hi,
 
It seems link_to_remote and form_remote_tag has been deprectaed in Symfony 1.4. How do we achieve this functionality in Symfony 1.4.
 
The Jobeet tutorial for 1.4 discusses briefly about AJAX.
 
Thanks in advance.
 
Regards
 
Deepak Bhatia
-- 
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-users+unsubscr...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.







-- 
С уважением,
 Земсков Юрий                          mailto:y...@zemskov.name





-- 
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-users+unsubscr...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.




Re: [symfony-users] Using an action to generate an image as an image tag src attribute

2010-01-28 Thread Земсков Юрий
 
true)) ?>

raw-name  option prevents symfony from adding '.png' at the end of the
image url.

Âû ïèñàëè 28 ?? 2010 ?., 11:06:38:

> Hi guys,

> I am probably missing something obvious but is it possible for me to
> pass in an img tags src attribute the url to an action that will then
> output a dynamically generated image?

> Example: Instead of a direct link to an image like

> 

> I want to do :

> 

> I know about changing headers and so on on the action side of things
> to push out a binary element as opposed to a regular symfony view.
> Just wondering what I might need to change routing-wise (if at all) to
> get this to work. Maybe I shouldn't even be using the image_tag helper
> at all?

> 

> -- 
> Gareth McCumskey
> http://garethmccumskey.blogspot.com
> twitter: @garethmcc



-- 
Ñ óâàæåíèåì,
 ???   mailto:y...@zemskov.name

-- 
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-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.