[symfony-users] R: Functional test: how to set JSON data in a POST method?

2011-04-22 Thread Massimiliano Arione
Il giorno giovedì 21 aprile 2011 17:48:41 UTC+2, Javier Garcia ha scritto:

 I want to create a functional test for an action that receives a POST 
 method with data in JSON format. 

 This is what I have: 

   info('set car')- 
   post('/user/'.$user-getId().'/set-car/'.$car-getId()'- 

   with('request')-ifFormat('json')-begin()- 
 isParameter('module', 'myModule')- 
 isParameter('action', 'myAction')- 
   end()- 

 But..where should I set the receiving json data? 

 sf 1.4 


You should pass data as second argument to post()

cheers
Massimiliano 

-- 
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] Re: JSON default content type

2011-04-04 Thread Massimiliano Arione
Open config/view.yml file in your application.
First 3 lines (excluding comments) are

default:
  http_metas:
content-type: text/html

you got a clue ;-)

cheers
Massimiliano

-- 
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] Re: Propel behavior problem

2011-03-17 Thread Massimiliano Arione
You should definitely use Propel 1.5
It's back-compatible with Propel 1.4 and much much more developer friendly.

cheers
Massimiliano

-- 
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] Re: Social network with symfony ?

2011-02-17 Thread Massimiliano Arione
On Wednesday, February 16, 2011 5:59:13 PM UTC+1, coolmec33 wrote:

 I want to know the feasibility of a social network (profiles, walls, 
 groups, friends ) with the symfony framework. 



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

cheers
Massimiliano Arione

-- 
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] Re: embedRelation updating an object with null attributes (Propel)

2011-02-15 Thread Massimiliano Arione
Embedded form is updated in form itself (in your case, in EventDateForm).
So, you can try to juggle with that form's methods (doSave and 
doUpdateObject)

cheers
Massimiliano

-- 
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] Re: Redirect with method POST

2011-02-11 Thread Massimiliano Arione
If you need to post a page without user interaction, use sfBrowser (in 
sfBrowserPlugin)

cheers
Massimiliano

-- 
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] Re: Updating symfony1.4 official documents

2011-01-17 Thread Massimiliano Arione
I second Shin.
Just another clue: this page http://www.symfony-project.org/installation , 
that should be one of most important pages of site, is clearly not up to 
date.

cheers
Massimiliano

-- 
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] Re: Functional Test : click....

2011-01-14 Thread Massimiliano Arione
'27' is the label of a link, something like a href=blabla27/a

cheers
Massimiliano

-- 
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] Re: Using UUIDs for primary keys vs AutoIncrementing/Sequence based primary keys

2011-01-04 Thread Massimiliano Arione
On 4 Gen, 13:41, Gareth McCumskey gmccums...@gmail.com wrote:
 To be perfectly honest, why bother? What advantage does turning a more
 efficient integer based, autoincrement ID column into a more inefficient,
 multi-byte character column, even if you could get autoincrement working
 for characters? Any app that requires a unique ID for the primary key should
 work fine integers. Characters just make database slower.

You can find discussions on mysql forum, stating that char key is
slower than integer key only if char is longer than 4.
IMHO a char primary key is nice when you need a key that is human
readable (e.g. for a state/province)
I used it myself with any problem.
Of course, you need to specify by hand a key value when/if you insert
a new row, but that's all.

cheers
Massimiliano

-- 
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] Re: Custom 404 - Problem with CSS

2010-12-20 Thread Massimiliano Arione
On 19 Dic, 21:45, Warringer warrin...@gmail.com wrote:
 I have build myself a custom 404 error page according to the very
 useful help on symfony-check.org.

 Now I have the problem that my custom header adds the default CSS
 spreadsheet to the rest of the CSS I have added.

That's a stylesheet, not a spreadsheet ;-)
Anyway, what is your question?

cheers
Massimiliano

-- 
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] Re: Symfony disable javascript execution on Ajax request

2010-12-11 Thread Massimiliano Arione
On 9 Dic, 11:52, bobey obal...@gmail.com wrote:
 Jquery mobile transforms html urls links and call them in ajax. When a
 symfony action is called this way, the layout is no longer decorates
 the template and no javascript is executed. For the layout, I have to
 add $this-setLayout('layout') in my action but I can't figured a way
 to authorize script execution in my template.

Maybe I'm missing something, but I can't really understand why you
need javascript in an ajax call :-|

cheers
Massimiliano

-- 
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] Re: Propel 1.5 select method problem

2010-12-06 Thread Massimiliano Arione
On 6 Dic, 13:19, gurkanoluc gurkano...@gmail.com wrote:
 I'm trying to use Symfony 1.4.8 wih sfPropel15Plugin. When i try to
 use methods like findPk it works very well. But when i try to use
 select function, it's not working. My Schema is 
 :http://paste.pocoo.org/show/301282/,
 My query code is :http://paste.pocoo.org/show/301283/. It generates
 error like this :http://paste.pocoo.org/show/301284/.

Try using phpName of field, e.g. Name instead of name.

cheers
Massimiilano

-- 
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] advent calendar 2010

2010-11-29 Thread Massimiliano Arione
There will be an advent calendar this year?
I hope so, since past advent calendars were a great opportunity for
community boost.
I remember that Italian symfony community is born with the 2008
advent, with just a few members, and now it has 130 members (and
counting).

cheers
Massimiliano

-- 
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] Re: How to set the title to each page dynamically

2010-11-28 Thread Massimiliano Arione
On 22 Nov, 06:36, Pradeep pradeep.pench...@gmail.com wrote:
 I found that title is being obtained from the layout.php which is
 being applied to all pages taking it from there. I wonder how to add
 the title to each page according to the type of the page showing
 necessary title.

If you need to automatically set the title for each of your module/
actions, you can simply extend sfResponse::getTitle() like so:

?php
class myResponse extends sfWebResponse
{
  public function getTitle()
  {
$module = sfContext::getInstance()-getRequest()-
getParameter('module', 'default');
$title = parent::getTitle();

return $module == 'default' ? $title : $module . ' - ' . $title;
  }
}

then you need to edit factories.yml in your app.
This can be very useful in backends

cheers
Massimiliano

-- 
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] Re: Creating a new tinyMCE widget

2010-11-24 Thread Massimiliano Arione
On 23 Nov, 17:33, Manu emmanuel.parf...@gmail.com wrote:
 Hi, I'm using tinyMCE in my forms and have noticed that I only use two
 configurations : a very limited one, for things like comments, and a
 more complex one, for the administators of the site.

Don't rely on bad things such sfWidgetFormTextareaTinyMCE.
Use plain textareas and give them an id or a class (in a semantic
way).
Then put your tinyMCE configuration in javascript file (javascript
should be always stay separated from the rest) and declare two
different cofiguration, based on your ids (or classes, as
appropriate).

cheers
Massimiliano

-- 
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] Re: OT - Translators and Translations

2010-11-22 Thread Massimiliano Arione
On 22 Nov, 10:40, Simone Fumagalli simone.fumaga...@gmail.com wrote:
 When I develop I18n project I always spend a lot of time (too much) to
 translate it. It's hard for me to keep translation files updated and
 share them with the translators. My translators don't know how to use
 programs like Virtaal/Pootle and the send me MS Words/Excel files ! (I
 let you imagine problems with UTF 8 and etc)

 I've 2 questions:

 1) Does anybody have hints or want to share best practices for manage
 the translation process ?
 2) Is there  a site/service where I can hire a translator and get my
 dictionary file in Xliff format ?

Use database instead of filesystem for XLIFF and build a backend
module to handle it.
If this is not an option for you, build the backend module anyway and
then pass the info from the database to your XLIFF files.

ciao
Massimiliano

-- 
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] Re: Admin generator - removing all delete links

2010-11-17 Thread Massimiliano Arione
On 17 Nov, 11:24, Manu emmanuel.parf...@gmail.com wrote:
 I removed the delete link from the list page, but I just found out
 that there is a delete link at the bottom of every edit page ... How
 do I remove that one ?

Use generator.yml to hide delete actions (see docs)
Then, you should also override delete actions in your controller.

cheers
Massimiliano

-- 
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] Re: Migrate full site

2010-11-16 Thread Massimiliano Arione
On 15 Nov, 14:54, matiasdig matias...@gmail.com wrote:
 Warning: sfCore::require(/home/elbuen/symfony/lib/symfony/log/
 sfLogger.class.php) [sfcore.require]: failed to open stream: No such
 file or directory in /www/elbuengustoverduras/symfony/lib/symfony/util/
 sfCore.class.php on line 163

The error message is just telling you what is the problem and where it
is.
Check your paths.

cheers
Massimiliano

-- 
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] Re: jq_submit_to_remote examples

2010-11-15 Thread Massimiliano Arione
On 15 Nov, 02:19, Martin Ibarra Cervantes ibarra.cervan...@gmail.com
wrote:
 Hi, guys, i want use jquery on my forms but i dont have idea how use this.

Stay away from any symfony plugin containing the word jQuery.
Just implement your form in the standard way, then add jQuery
javascripts as needed.
You can use jQuery form plugin  http://jquery.malsup.com/form/ or
anything else you prefer.

cheers
Massimiliano

-- 
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] Re: Question: The best way to embed javascript : in parial or in js files

2010-11-05 Thread Massimiliano Arione
On 4 Nov, 09:47, JoJo jojoyangd...@gmail.com wrote:
 As Gareth said, my concern is how to embed javascript function from partials
 between *head/head* tag.

You're wrong from the start: javascript tag can be put anywhere in the
html, and best place is in the bottom, just before body ends.
So, you can simply call use_javascript() in your partials, it just
works.

cheers
Massimiliano

-- 
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] Re: All new symfony developers please read...

2010-11-01 Thread Massimiliano Arione
On 29 Ott, 16:24, cordo...@gmail.com cordo...@gmail.com wrote:
 oh!!! What exactly are we missing in the English version?

Everything updated in the repository in the last 2 or 3 weeks (about)

 I am sure Fabien will take action if he notices.

So, please let him know.
I already did and I don't want to bother him too much.

cheers
Massimiliano

-- 
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] Re: Textarea onclick event?

2010-11-01 Thread Massimiliano Arione
On 31 Ott, 19:44, Parijat Kalia kaliapari...@gmail.com wrote:
 Hey guys,r unning into a silly doubt that should so not happen at all!

 I have a textarea tag,

 ?php echo textarea_tag('hint_box','','size=70x4',
 array('onclick'='javascript:alert(yo) ')) ;?

 and the onclick event is failing to render itself in the HTML tag.

 Any pointers what I am doing wrong here?

It's wrong to rely on html inline javascript.
You should move your javascript logic into a javascript file, relying
on javascript events. See http://api.jquery.com/click/

cheers
Massimiliano

-- 
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] Re: All new symfony developers please read...

2010-10-29 Thread Massimiliano Arione
I agree, gentle introduction is great.
Too bad is not up to date :-(

cheers
Massimiliano

-- 
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] Re: All new symfony developers please read...

2010-10-29 Thread Massimiliano Arione
On 29 Ott, 10:29, Gareth McCumskey gmccums...@gmail.com wrote:
 Yes it is ;)

 Fabian went through a lengthy process (along with a number of contributors)
 to update it.

Gareth,
I'm one of such contributors and I can tell you that it's just like
so: documents on symfony site are NOT up to date with github
repository.
You can check yourself: just look at last commit and you can see that
it's not on symfony site.
Or simply look at Italian translation (of which I am responsible), and
see that it's complete in repository and missing many chapters in
symfony site.
I asked Fabien to fix this a couple of weeks ago, and I'm still
waiting.
Again, too bad.

cheers
Massimiliano

-- 
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] Re: sfDoctrineGuard user profile one-to-one relationships

2010-10-25 Thread Massimiliano Arione
On 23 Ott, 01:31, Jonotron jonot...@gmail.com wrote:
 I want to create a one-to-one relationship between users and
 companies. Since I shouldn't be editing the sfDoctrineGuard schema's
 directlyI've created a sfGuardUserProfile model:

You can override plugin's schema without editing it:

http://www.symfony-project.org/gentle-introduction/1_4/en/17-Extending-Symfony#chapter_17_sub_doctrine

cheers
Massimiliano

-- 
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] Re: Any way to generate backend lists using div instead of table ?

2010-10-13 Thread Massimiliano Arione
On 12 Ott, 17:52, Javier Garci tirengar...@gmail.com wrote:
 anyway to generate backend lists using div instead of table ?
 Without modifying too much the symfony generator...

Why? Tableless is *not* an absolute value.

cheers
Massimiliano

-- 
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] Re: Propel route: new object with foreign key (sf 1.3.7)

2010-10-05 Thread Massimiliano Arione
On 4 Ott, 18:53, Christian alice...@googlemail.com wrote:
   So, i have to create a new route and modify the executeNew action?
 Is there no way to use the default @offer_refurbishment_new route?

You can use the default route, just pass any added parameter as query
string.
E.g.:  @offer_refurbishment_new?offer_id=1

cheers
Massimiliano

-- 
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] Re: Add description text after formWidgets in admin generator

2010-09-14 Thread Massimiliano Arione
On 14 Set, 12:43, axel at axel.zu...@gmail.com wrote:
 sometimes I would like to render a certain description text after a
 sfWidgetFormInputText rendered by admin generator.

 eg.
 SpecialTextAttribut [__] Please enter your bla bla bla

 any ideas how to achieve this?

You can find it in the docs:

http://www.symfony-project.org/forms/1_4/en/A-Widgets#chapter_a_sub_sethelp_sethelps_gethelps_gethelp

cheers
Massimiliano

-- 
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] Re: Tabs in Auto-Generated Code

2010-09-13 Thread Massimiliano Arione
On 13 Set, 13:35, Felix E. Klee felix.k...@inka.de wrote:
 On Sun, Sep 12, 2010 at 2:20 PM, Davide Borsatto lloy...@gmail.com wrote:
  Which generated file are you referring to? It may be a Propel or
  Doctrine issue.

 The tabs are indeed in the model files, auto generated by Propel 1.4.2.

 Thanks for pointing me in the right direction. Now it would be nice if
 Propel could be told to not insert tabs...

Of course: just add alternative_coding_standards in your config/
propel.ini, in this row (near the end of file):

propel.behavior.default=
symfony,symfony_i18n,alternative_coding_standards

then rebuild

cheers
Massimiliano

-- 
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] Re: Using mysql php functions in symfony

2010-09-07 Thread Massimiliano Arione
On 7 Set, 07:52, DEEPAK BHATIA toreachdee...@gmail.com wrote:
 I tried accessing some other database than specified in databases.yml. But
 below is not working. Please help.

     $con=mysql_connect(localhost,root,);
     if(!$con)
     {
       echo Database Connection Not Estabilished\n;
       exit(0);
     }
     $temp = mysql_select_db(rtdb);
     if($temp == false)
     {
       exit(0);
     }
     $query  = SELECT id FROM severity_table;
     $result = mysql_query($query);
     while ($row = mysql_fetch_array($result))
     {
       echo $row[id]; echo BR; echo HELLO;
     }

That's a really really wrong way.
Add the connection you need in your databases.yml config file, then
simply use it.

cheers
Massimiliano

-- 
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] Re: Translating the backend

2010-08-21 Thread Massimiliano Arione
On 21 Ago, 11:01, cosmy c.zec...@gmail.com wrote:
 What I have to modify to translate automatically the function buttons
 of the backend (if it's possibile..)?
 It's quite strange but I can't find anything about it (I don't need
 the Il18 and multilanguage support... I only want my backend in
 italian without correcting thousands of files) :)

Cosimo,
you can get help on Italian group http://groups.google.com/group/symfony-it
Anyway: if you want your backend translated, you need to activate i18n
and set it as default_culture.

cheers
Massimiliano

-- 
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] Re: IS there any manual to correct unit test system for integrating with sfGuard auth symfony?

2010-08-19 Thread Massimiliano Arione
On 19 Ago, 05:14, Maxim Oleinik maxim.olei...@gmail.com wrote:
 protected function authenticateUser(sfGuardUser $user)
 {
     // Init session
     $context = $this-browser-getContext(true);

     $context-getUser()-signIn($user);
     $context-getUser()-shutdown();
     $context-getStorage()-shutdown();

 }

Ugly!

try this one:

  public function login($username = 'foo', $password = 'bar')
  {
return $this-click('sign in', array('signin' = array(
  'username' = $username,
  'password' = $password,
)))-with('response')-isRedirected()-followRedirect();
  }

of course, replace 'foo' and 'bar' with your preferred default
credentials

cheers
Massimiliano

-- 
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] Re: Please help me to get rid of these warning messages

2010-08-18 Thread Massimiliano Arione
On 18 Ago, 10:03, ajit csa...@gmail.com wrote:
 I am getting this warning messages...Please help me to get rid of
 those messages.

 Warning: constant() [function.constant]: Couldn't find constant
 Region::PEER in /var/www/dms/lib/symfony/plugins/sfPropelPlugin/lib/
 widget/sfWidgetFormPropelChoice.class.php on line 79

 Warning: call_user_func(Array) [function.call-user-func]: First
 argument is expected to be a valid callback in /var/www/dms/lib/
 symfony/plugins/sfPropelPlugin/lib/widget/
 sfWidgetFormPropelChoice.class.php on line 87

 Warning: Invalid argument supplied for foreach() in /var/www/dms/lib/
 symfony/plugins/sfPropelPlugin/lib/widget/
 sfWidgetFormPropelChoice.class.php on line 101

Looks like you're using sfWidgetFormPropelChoice with some wrong
parameters.

cheers
Massimiliano

-- 
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] Re: Adding time to a date symfony 1.4

2010-08-18 Thread Massimiliano Arione
On 18 Ago, 10:34, François SEDE francois.s...@gmail.com wrote:
 Hi everyone.

 I want to add the value of an sfWidgetFormI18nTime to an
 sfWidgetFormJqueryDate and store it into a column in my database but
 it doesn't work.

Don't use sfWidgetFormJqueryDate.
See http://garakkio.altervista.org/datepickerui/

cheers
Massimiliano

-- 
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] Re: sfWidgetFormDate datepicker range problem

2010-08-18 Thread Massimiliano Arione
On 17 Ago, 13:50, wueb webmaster@gmail.com wrote:
 I'm using sfWidgetFormDate with a datepicker (http://
 garakkio.altervista.org/datepicker/)

 The code in the form is:

 $years = range(date(Y),1980);
 $this-widgetSchema['date_const'] = new sfWidgetFormDate(array('years'
 = array_combine($years, $years),'format' = '%day% - %month% - %year
 %'));

 My problem is when i open the datepicker the default date  selected on
 the datepicker is always on the lowest. In this case the datepicker
 will be opened on the year of 1980, while i want it in 2010.

 Anyone knows how can i change this?

 Cheers.

 (PS: even if i change the positions, range(1980,date(Y)); the lower
 year come always first)

I'm the author (garakkio).
I advice you to use instead http://garakkio.altervista.org/datepickerui/
, that is more advanced, and automatically set the date to current
one, if date is empty.
Otherwise, you have to set the default date to the current one on
yourself.
The behaviour of calendar is to show the selected date when datepicker
is opened.

cheers
Massimiliano

-- 
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] Re: IS there any manual to correct unit test system for integrating with sfGuard auth symfony?

2010-08-17 Thread Massimiliano Arione
On 17 Ago, 05:32, RusAlex interpret...@gmail.com wrote:
 I've installed sfGuard plugin and now most of old tests didn't work
 well. They need to be authenticated to the frontend system. Is there
 any official decision ?

Just create your own test class, like explained in
http://www.symfony-project.org/jobeet/1_4/Propel/en/09#chapter_09_test_data
You can then easily create a login() method that does the login for
you, by submitting the login form

cheers
Massimiliano

-- 
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] Re: basic Action module/action does not exist

2010-08-17 Thread Massimiliano Arione
On 17 Ago, 06:43, Abraham amontil...@gmail.com wrote:
 any ideas to overcome my problem?

What is your problem? It's not really clear in your message.

cheers
Massimiliano

-- 
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] Re: a good IDE for Symfony

2010-08-04 Thread Massimiliano Arione
On 4 Ago, 07:58, pghoratiu pghora...@gmail.com wrote:
 Check out Komodo edithttp://www.activestate.com/komodo-edit
 some of my colleagues use it.

I also use Komodo and advice to use it.
It's fast, open, cross-platform.

cheers
Massimiliano

-- 
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] Re: Symfony 1.4 and PayPal

2010-08-04 Thread Massimiliano Arione
On 3 Ago, 03:11, Diego Bello dbe...@gmail.com wrote:
 I'm building an e-commerce site with Symfony 1.4. Right now I have the
 shopping cart and I want to do the payment with Paypal. I got the
 expresscheckout.php and paypalfunctions.php files but I don't know where to
 put them.

First place to search should always be plugins:

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

cheers
Massimiliano

-- 
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] Re: include_js/css VS partials

2010-07-29 Thread Massimiliano Arione
On 17 Lug, 20:15, comb sa...@gmx.net wrote:
 I found much on the web regarding the topic, but no solution! :(
 Normally one would include the css and js in the head. But if I call

 ?php use_javascript('xyz.js');
     php use_stylesheet('xyz.css') ?

 from an partial, they are not included, because the helpers in the
 head of the layout are executed already.
 Putting the helpers to the bottom of the layout includes ALL, but this
 fails caused by html-standards.

 How can I manage to include the js/css needed from partials in the
 head of the html-document, too?

You should use just one css file (for performance issues).
Also for performances, you should move include_javascripts from head
to body, just in the end.

cheers
Massimiliano

-- 
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] xhtml11 validation

2010-07-20 Thread Massimiliano Arione
I'm trying to switch my site from xhtml1.0 strict to xhtml1.1
I check validation with functional tests, using isValid(true) and
everything was fine.
After swtiching to 1.1, I started to get a lot of errors like these:

failed to load external entity file:///[...]/cache/sf_tester_response/
w3/TR/xhtml-modularization/DTD/xhtml-datatypes-1.mod
failed to load external entity file:///[...]/cache/sf_tester_response/
w3/TR/xhtml-modularization/DTD/xhtml-qname-1.mod

(I omitted the project path)

It seems that some xhtml11 modules are not properly loaded.
I searched around and only found changeset 23520, that moved modules
from online to local: http://trac.symfony-project.org/changeset/23520

any hint?
Should I file a bug?

thanks in advance
Massimiliano

-- 
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] Re: Where to extend sfGuardUserPeer class?

2010-07-19 Thread Massimiliano Arione
You can override a plugin's empty class by copying its file in main
lib/ directory and defining your custom methods there.

cheers
Massimiliano

-- 
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] Re: somebody have worked with FormFilter? :: getting 'Array to String conversion' Notice

2010-07-13 Thread Massimiliano Arione
On 13 Lug, 02:36, B.O.G germanaolivei...@gmail.com wrote:
 I have a sfWidgetFormFilterDate, and every time i 'click' Filter
 button i get and 'Array to String conversion' Notice

 If i remove de Date Filter the error disappear, what is going on ?

it could depend on your date filter validator.
Check it

cheers
Massimiliano

-- 
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] Re: Rich text editor with upload image plugin

2010-07-05 Thread Massimiliano Arione
On 5 Lug, 14:11, Mariano Sola mariano.s...@gmail.com wrote:
 thanks for your answer!

 could you send me some example?

Just install the latest version of sfAssetsLibraryPlugin from
http://svn.symfony-project.com/plugins/sfAssetsLibraryPlugin/branches/1.3/
and use it in any textarea.

cheers
Massimiliano

-- 
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] Re: Rich text editor with upload image plugin

2010-07-04 Thread Massimiliano Arione
On 1 Lug, 22:10, Mariano Sola mariano.s...@gmail.com wrote:
 Has anyone worked with any rich text editor with the upload image option
 activated in Symfony 1.4?

 I did some tests with TinyMCE and iBrowser but I wasn't be able to make it
 works.

sfAssetsLibraryPlugin

-- 
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] Re: Important sfDoctrineApplyPlugin news

2010-07-02 Thread Massimiliano Arione
On 1 Lug, 21:28, Tom Boutell t...@punkave.com wrote:
 * Forms are now empty extensions of Base versions so you can do the
 usual Symfony thing to override them at the project level (you can
 also use my app.yml approach)

Is there any specific reason for not using the standard prefix
Plugin, e.g. PluginFooBarForm?
Don't you think that prefix Base could lead to confusion with
generated forms?

cheers
Massimiliano

-- 
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] Re: importing a symfony made website back into symfony??

2010-06-28 Thread Massimiliano Arione
On 26 Giu, 18:47, martyn b...@worldonline.nl wrote:
 how can we fix a handfull of errors, without needing to hack/break
 into the php code cause it might cause severe probs elsewhere.

Well, the answer is simple: just do tests. Unit tests, functional
tests.
When your test coverage will be good, you can change what you want
without fear.

cheers
Massimiliano

-- 
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] Re: How to pass PHP values to addJavascript() (or something else) ?

2010-06-24 Thread Massimiliano Arione
On 24 Giu, 08:05, Tom Ptacnik to...@tomor.cz wrote:
 So if I need to get some variables in javascript from the app, you
 advice is to generate it into the DOM?

 Example: I need to detect which culture is set. Then i should generate
 div id=culture style=display:none;en/div into the DOM and then
 in the javascript read the value of the div by id?

If you just need the culture, you should get it from html tag. (in the
lang attribute)
Of course, you should before set it in html tag, but it's trivial:
just set it in layout.php

cheers
Massimiliano

-- 
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] Re: How to pass PHP values to addJavascript() (or something else) ?

2010-06-23 Thread Massimiliano Arione
On 22 Giu, 10:03, François franc...@robichet.com wrote:
 I'd like to pass values to my JS script when I call it. So I look the
 API for the addJavascript() method, herre is it :

You shouldn't pass variables from php to javascript.
Javascript should be always unobtrusive, so the only point of contact
between your html (and php) and your javascript should be the DOM.
Just insert your php variables somewhere in your page (e.g. in a
hidden field of a form), then retrieve them with javascript (with
jQuery, it's really simple)

cheers
Massimiliano

-- 
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] Re: Set form value from controler

2010-06-22 Thread Massimiliano Arione
On 21 Giu, 19:49, titiyoyo terence.pi...@gmail.com wrote:
 i have a simple and basic quesion here about symfony : how can i set
 values into a form field from the controller in symfony ?

 I looked again and again and again without finding an answer.

 So for now i have this below.

 Please help me, it's quite urgent !!

 public function executeNew(sfWebRequest $request)
   {
         $fiche = new Fiche();
         $fiche-save();

         $a = $fiche-getId();

         $this-form = new ArtisteForm($artiste);
   }

If ArtisteForm is a model form, you need to pass an object of that
model (in the code you provided, you're passing a non-existent
variable)

cheers
Massimilano

-- 
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] Re: methods wiped out by svn export - using externals

2010-06-21 Thread Massimiliano Arione
On 17 Giu, 12:13, Daniel Lohse annismcken...@googlemail.com wrote:
 What you can do is copy the sfGuardUser.php to your lib/ folder and make your 
 modifications there. This should work. The sfGuardUser.php file should be 
 empty.

That's  very interesting.
I never heard anything about it, but it would be really nice if it
could be working.
Unfortunately, I can't find any documentation about copying empty
model class files in main lib directory to override plugin ones.
I also tried myself, the copied file is just ignored (of course,
unless you delete the plugin one, but it's something we're trying to
avoid).
I always see this as a Propel lack, since Doctrine has a better
handling of issue, generating model classes in main lib directory. And
I say this as a Propel fan.

cheers
Massimiliano

-- 
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] Re: Functional tests for Form validators?

2010-06-15 Thread Massimiliano Arione
On 14 Giu, 16:12, Christopher Schnell ty...@mda.ch wrote:
 As I am writing lots of functional tests these days, I was wondering if one
 should test the standard validators of a form.

 Let's say, we have a change Password form. This simple form with three
 fields would require lots of tests, for example

 .         Is the current password correct ?

 .         Is the new passwort long enough

 .         Is the new password entered twice

 .         .

 Now all these tests are implemented with standard validators. Would it be
 just lazy not to test these cases?

 How many tests do you write for such things?

I think you should test them.
You are not unit-testing validators, you are testing if your
application is running fine.
What if in 2 months someone accidentally remove a validator? If you
test it, you're done. If not, you can get trouble.

cheers
Massimiliano

-- 
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] Re: GuardUser in doctrine class

2010-06-11 Thread Massimiliano Arione
On 6 Giu, 16:14, Alvaro Garcia maxpo...@gmail.com wrote:
 In my doctrine class (lib/model/doctrine/XXX.class.php) I have overwritten
 the constructor.
 The reason is I need to validate that an user can load this object
 (photograph in my case).
 Then, when I load a collection of photographs ($photoAlbum-getPhotos()) the
 constructor
 check the permissions.

 To do it I need that the doctrine class can access to the sfGuardUser.
 Is there any possibility for this class to access the user without being
 passed as a parameter?

That's a bad idea.
You should perform a such control in your controller, not in the
model.
The object should know anything about the current user.
I suggest you to write a method like this one in you model class:

  public function checkUser(sfGuardUser$user)
  {
return $this-getUser()-getid() == $user-getId();
  }

and then in you action

  public function executeFoo(sfWebRequest $request)
  {
$this-object = $this-getRoute()-getObject();
$this-forwardUnless($this-obejct-checkUser($this-getUser()-
getGuardUser()), sfConfig::get('sf_secure_module'),
sfConfig::get('sf_secure_action'));
  }


cheers
Massimiliano

-- 
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] Re: combining functional and unit tests?

2010-06-02 Thread Massimiliano Arione
You can simply use propel tester. See
http://www.symfony-project.org/jobeet/1_4/Propel/en/11#chapter_11_the_propel_tester

cheers
Massimiliano

On 2 Giu, 00:18, Jeremy Thomerson jer...@thomersonfamily.com wrote:
 I have written a functional test that tests my site's registration flow.  At
 the end of the test, I am calling my account peer and using lime to test
 that the account that was just registered is all in the database correctly.
  The test runs great if I run it by itself (test:functional frontend
 registrationActions), but it gives me an error if I run all functional
 tests together (test:functional frontend).  It doesn't like the additional
 tests that I am doing with just lime.

-- 
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] Re: Symfony 1.4 Alias

2010-05-31 Thread Massimiliano Arione
The alias is needed only for the sf folder.
If you won't (or can't) use an alias, you can just copy sf folder
under your web folder

cheers
Massimiliano

On 31 Mag, 13:56, RedQueen s.p.alle...@gmail.com wrote:
 On the main page of Symfony we can find a lot of guides. And it really
 help but sometime it dont answer all questions. One of this question
 is What if I don't want any alias?. All tutorials explain we have to
 add few lines to apache config file to use the alias. But I dont want
 any alias... I just want to write simple URL and get on my site. What
 sohould I do?

-- 
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] Re: Propel Behavior: Adding static methods

2010-05-25 Thread Massimiliano Arione
What about bundled propel behaviors?

cheers
Massimiliano

On 25 Mag, 01:20, rekarnar rekar...@gmail.com wrote:
 Hi guys,

 I'm trying to write some methods into my peer class's using a propel
 behavior

 (http://www.propelorm.org/wiki/Documentation/1.5/
 Behaviors#WritingaBehavior)

 But I seem to be having no luck, is there a plugin or any examples
 around that you could point me towards?

 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

-- 
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] Re: tinyMCE jQuery + symfony 1.4

2010-05-24 Thread Massimiliano Arione
The idea behind the tinyMCE widget (like any other js widget) is bad.
It's javascript! All you need is include it and refer to correct id/
class in DOM, no need to use php for that.

cheers
Massimiliano

On 22 Mag, 17:59, godbout guillaume.lecler...@gmail.com wrote:
 Hi!

 I've got some problems to make the tinyMCE jQuery works. I've
 installed the FormExtra plugin, edited the view YAML, and used the
 widget. I have a javascript error telling me that .tinyMCE is not
 declared and by checking the javascript I can see that it refers to
 the basic tinyMCE javascript but not to the jQuery one. The thing is
 then, I guess I have to extend the tinyMCE widget that is coming with
 FormExtra, but I have no idea how to do that.

 Do I have to create a new widget that extend the tinyMCE?
 Where do I put the new class files?

 I've read some stuff and I kind of understand I need to create the
 configure and render class, but I can't find a really good explanation
 in the docs.

 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 
 athttp://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


[symfony-users] Re: Generated methods in peer class'

2010-05-21 Thread Massimiliano Arione
You can write a Propel behavior, that allows to add both static and
non-static methods.
Refer to Propel documentation

cheers
Massimiliano

On 21 Mag, 02:57, rekarnar rekar...@gmail.com wrote:
 Fromhttp://www.symfony-project.org/cookbook/1_2/en/behaviors:

 Unfortunately, as of PHP 5, static method calls cannot be caught by a
 __call(). This means that symfony behaviors are not able to add new
 methods to the Peer classes.

 So my question is, how should I go about adding common methods into my
 peer class's?

 --
 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

-- 
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] Re: Compatibility PHP 5.3

2010-05-16 Thread Massimiliano Arione
On 15 Mag, 22:15, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com
wrote:
 Anyone who has experienced using Symfony on PHP 5.3?
 Did it all run fine? No compatibility errors / bugs?

 The Symfony versions 1.1, 1.2, 1.4?

Take a look to this ticket http://trac.symfony-project.org/ticket/8563

Other issues are minor.

cheers
Massimiliano

-- 
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] Re: :-( please help. ajax problem - noob to ajax -probably simple

2010-04-29 Thread Massimiliano Arione
On 29 Apr, 09:17, Gareth McCumskey gmccums...@gmail.com wrote:
 Or return an array from the action to the template/partial and have php do:

 ul
   ?php foreach ($array as $array_item): ?
     li?php echo $array_item ?/li
   ?php endforeach; ?
 /ul

We're talking about ajax.
You just can't output any html anywhere, unless you want to use ugly
innerHTML js function.

cheers
Massimiliano

-- 
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] Re: Propel nested set and sfOutputEscaperIteratorDecorator - too many queries

2010-04-28 Thread Massimiliano Arione
On 27 Apr, 18:27, Rytis Daugirdas rytis.daugir...@gmail.com wrote:
 Since when iterators are overkill? IMO, your suggestion is overkill.
 Propel documentation clearly states that a tree can be easily
 traversed via its iterator interface. Why should I write additional
 code (however simple) to get the functionality that is already
 provided? Besides, since I need the level of each node, your
 suggestion is not suitable as it too makes query count depend on the
 number of nodes retreived.

Well, it's just my opinion.
You don't need to write additional code, the retrieveTree() method
already retrieve the entire tree, with all levels calculated, in one
query.

cheers
Massimiliano

-- 
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] Re: Propel nested set and sfOutputEscaperIteratorDecorator - too many queries

2010-04-27 Thread Massimiliano Arione
On 26 Apr, 18:11, Rytis Daugirdas rytis.daugir...@gmail.com wrote:
 To output a list of nodes, obviously.

It looks a bit overkilled to me.
Just retrieve the whole table ordered by left, and you'll get the
entire tree.

cheers
Massimiiano

-- 
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] Re: Propel nested set and sfOutputEscaperIteratorDecorator - too many queries

2010-04-26 Thread Massimiliano Arione
It's not clear to me why you want to use an iterator in a template.

cheers
Massimiliano

On 26 Apr, 10:56, Rytis Daugirdas rytis.daugir...@gmail.com wrote:
 Hello,

 When using Propel's nested set behaviour, iteration over a node set in
 a template (with output escaping enabled) produces too many queries.

 Here's an example:http://pastebin.com/KTzDfvwd

 Using the unescaped iterator works fine. Is that a bug in
 sfOutputEscaperIteratorDecorator? If not, how should the problem be
 solved?

 Regards,
 Rytis

 --
 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

-- 
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] Re: :-( please help. ajax problem - noob to ajax -probably simple

2010-04-23 Thread Massimiliano Arione
On 21 Apr, 15:14, Paul Burdon p...@clearintent.co.uk wrote:
 Could you clarify what the 'proper' way is please.
 Thanks.

Of course.
The proper way is to write html as if javascript wouldn't exist.
Then, write javascript files that use the document load event to look
into dom, modify the dom itself and add other events (that use ajax)

cheers
Massimiliano

-- 
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] Re: :-( please help. ajax problem - noob to ajax -probably simple

2010-04-21 Thread Massimiliano Arione
On 19 Apr, 16:46, Tofuwarrior psbur...@googlemail.com wrote:
 As a general principle is my approach ( ie pull the data from an
 action into the jQuery) correct.

I don't think your approach is fully correct.
You should never mix javascript and php code.
You should write php (and so html) as if javascript wouldn't exist.
Then, in a second step, add user interface enhancement with pure
javascript files.
It's a matter of separation of concerns: html (php) for structure, css
for presentation, javascript for behavior

cheers
Massimiliano

-- 
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] Re: :-( please help. ajax problem - noob to ajax -probably simple

2010-04-21 Thread Massimiliano Arione
On 21 Apr, 14:39, Gareth McCumskey gmccums...@gmail.com wrote:
 And if you had to create a restful api that returns content as JSON?
 Returning JSON using renderText is perfectly valid and does not break
 the seperation of concerns. The actions responsibility is to recieve a
 request, gather data needed for the response and pass that data to the
 template and/or requesting service. JSON is just a data format (well
 within the actions field of responsibilities) not Javascript.

Of course, I didn't mean the json part when I spoke of separation.
That part is perfect, and after all is the only way to use ajax.
The wrong part is the use of jq_javascript_tag() helper, that
implies writing javascript code into html.

cheers
Massimiliano

-- 
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] Re: :-( please help. ajax problem - noob to ajax -probably simple

2010-04-19 Thread Massimiliano Arione
On 19 Apr, 14:43, Tofuwarrior psbur...@googlemail.com wrote:
 I don't want a template, I just want to get the raw output of this
 action into this javascript function and I figure this is the
 problem.

So, you replied yourself: just skip the view in your action.
You can do it with return $this-renderText('your js stuff')

cheers
Massimiliano

-- 
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] Re: The 'right' way to update content in a div section with symphony components?

2010-04-15 Thread Massimiliano Arione
On 15 Apr, 08:12, Lutz lutz.p...@gmail.com wrote:
 So, is there a way to get the redered result for a component, so
 instead 'include_component' something like 'render_component'? in
 symphony?

http://www.symfony-project.org/api/1_4/PartialHelper#method_get_component

-- 
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

To unsubscribe, reply using remove me as the subject.


[symfony-users] Re: sfOutputEscaper behaviour

2010-04-07 Thread Massimiliano Arione
try

$variable-getRawValue()

cheers
Massimiliano

On 7 Apr, 06:07, Apul Gupta apulmca...@gmail.com wrote:
 No rekarnar,

 still it doesn't Work. Any other suggestion?

 I am getting this in browsers:

 ==
 stronga title=title href=http://www.abcd.com;Welcome Text/a /
 strong

 ==

 and in HTML:

 ==
  lt;stronggt;lt;a title=title href=http://www.abcd.comgt;Welcome 
 Textlt;/agt;
 ==

 I can fix the problem using settings.yml file in module/application
 but, I just want to know that why $sf_data-getRaw() not working
 expectedly.

 Please help to fix the issue.

 On Apr 7, 7:03 am, rekarnar rekar...@gmail.com wrote:

  Try $sf_data-get('variable_name',ESC_RAW);

  On Apr 6, 7:18 pm, Apul Gupta apulmca...@gmail.com wrote:

   I haven't use that but I know that it will work. But, Can't we get un-
   escaped data without doing any YML changes as It is mentioned in
   Documentation that, We will get raw data by using $sf_data-

   getRaw('sf_content');

   Why this is not working expectedly? I am using Symfony 1.4.2 version.

   Any idea?

   ---
   Thanks
   Apul Gupta

   On Apr 6, 10:19 am, Denis Golovin golovin.de...@gmail.com wrote:

Did you try to set escaping-strategy = off in the settings.yml of 
single module?

Denis

2010/4/5 Apul Gupta apulmca...@gmail.com:

 Hi,

 Actually, I want to show some HTML text from the database to a
 template.

 I am using
 echo $sf_data-getRaw('sf_content');

 to get un-escaped value from the database but still it shows escaped
 data to me. What should I do to get unescaped value?

 I don't want to SET escaping-strategy = off in settings.yml for the
 entire application.

 I will appreciate any help.

 ---
 Thanks
 Apul Gupta

 --
 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

 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


[symfony-users] Re: propel relation m:n

2010-04-01 Thread Massimiliano Arione
OK, you must remove the id field from acudiente_estudiante model, and
add primaryKey: true to both estudiante and acudiente fields.

cheers
Massimiliano

On 1 Apr, 01:40, Julian Reyes julian.reyes.escri...@gmail.com wrote:
 Ok my real schema is:

 estudiante:
      id: ~
      nombres:                      { type: varchar(255), required: true }
      apellidos:                    { type: varchar(255), required: true }
      sexo:                         { type: integer, foreignTable: sexo,
 foreignReference: id, required: true, onDelete: CASCADE}
      fecha_nacimiento:             { type: timestamp,    required: true }
      lugar_nacimiento:             { type: varchar(255), required: true }
      tipo_documento:               { type: integer, foreignTable:
 tipo_documento, foreignReference: id, required: true, onDelete: CASCADE}
      numero_documento:             { type: varchar(30), required: true,
 index: unique }
      direccion_residencia:         { type: varchar(255), required: true }
      telefono:                     { type: varchar(15), required: true }

    acudiente_estudiante:
      id: ~
      estudiante:                   { type: integer, foreignTable:
 estudiante, foreignReference: id, required: true, onDelete: CASCADE,
 index: unique}
      acudiente:                    { type: integer, foreignTable:
 acudiente, foreignReference: id, required: true, onDelete: CASCADE,
 index: unique}

    acudiente:
      id: ~
      nombres:                      { type: varchar(255), required: true }
      apellidos:                    { type: varchar(255), required: true }
      tipo_documento:               { type: integer, foreignTable:
 tipo_documento, foreignReference: id, required: true, onDelete: CASCADE}
      numero_documento:             { type: varchar(30), required: true,
 index: unique }
      direccion_residencia:         { type: varchar(255), required: true }
      telefono:                     { type: varchar(15), required: true }

-- 
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

To unsubscribe, reply using remove me as the subject.


[symfony-users] Re: propel relation m:n

2010-03-31 Thread Massimiliano Arione
Can you post your real schema? The one above is uncomplete.

On 30 Mar, 18:16, Julian Reyes julian.reyes.escri...@gmail.com
wrote:
 Hi

 i have a problem with this type or relations.

 in the jobeet tutorial explain the ORM make it relations many to many
 automaticly buts don't works. only saved student and guardian  but no
 student_guardian

 example schema:
      student: ~
      guardian: ~
      studiant_guardian: ~

 ok. i need put an embebed guardian form into the student and when i
 click on save the orm save it for me the three tables student, guardian
 and studentguardian.

 can help me someone with this problem.

 thanks in advance for helping.

 Julian Reyes

-- 
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

To unsubscribe, reply using remove me as the subject.


[symfony-users] Re: Invoice Model

2010-03-31 Thread Massimiliano Arione
Did you read the entire chapter?
See 
http://www.symfony-project.org/more-with-symfony/1_4/en/06-Advanced-Forms#chapter_06_saving_object_forms

cheers
Massimiliano

On 30 Mar, 19:56, Veríssimo jveriss...@gmail.com wrote:
 The echo was just a debug line, but I should only use the embed form
 only if the $this-getObject() != null. Because when it is null the
 embed form(Invoiceline) is saved with the variable invoiceid = null.

 thank you.

 On Mar 30, 2:20 pm, Massimiliano Arione garak...@gmail.com wrote:

  You don't need to check.
  The getObject() method returns null if no object associated, and this
  is fine with form instance.
  Just avoid to echo object's id in the form's configure why are you
  doing this???

  cheers
  Massimiliano

  On 30 Mar, 01:07, Veríssimo jveriss...@gmail.com wrote:

   I have implemented this, but i only have the Object after a previous
   have saved it.

   Do i have to do something like check ($this-getObject()) as a object?

     public function configure()
     {
      $subForm = new sfForm();
     for ($i = 0; $i  2; $i++)
     {
       $linharecibo = new Linharecibo();
       $linharecibo-Recibo = $this-getObject(); #This line does not
   have a object the first time
       echo 'Raios'.$linharecibo-Recibo-getId();
       $form = new LinhareciboForm($linharecibo);

       $subForm-embedForm($i, $form);
     }
     $this-embedForm('Linhas', $subForm);

     }

-- 
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

To unsubscribe, reply using remove me as the subject.


[symfony-users] Re: Invoice Model

2010-03-30 Thread Massimiliano Arione
You don't need to check.
The getObject() method returns null if no object associated, and this
is fine with form instance.
Just avoid to echo object's id in the form's configure why are you
doing this???

cheers
Massimiliano

On 30 Mar, 01:07, Veríssimo jveriss...@gmail.com wrote:
 I have implemented this, but i only have the Object after a previous
 have saved it.

 Do i have to do something like check ($this-getObject()) as a object?

   public function configure()
   {
    $subForm = new sfForm();
   for ($i = 0; $i  2; $i++)
   {
     $linharecibo = new Linharecibo();
     $linharecibo-Recibo = $this-getObject(); #This line does not
 have a object the first time
     echo 'Raios'.$linharecibo-Recibo-getId();
     $form = new LinhareciboForm($linharecibo);

     $subForm-embedForm($i, $form);
   }
   $this-embedForm('Linhas', $subForm);

   }

-- 
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

To unsubscribe from this group, send email to 
symfony-users+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


[symfony-users] Re: Trying to translate sfDoctrineGuardPlugin

2010-03-29 Thread Massimiliano Arione
Just use standard messages.es.xml file in your app/APPNAME/i18n
directory.

cheers
Massimiliano

On 29 Mar, 10:29, Javier Garcia tirengar...@gmail.com wrote:
 Hi,

 these are my steps:

 - I have added this line to 'frontend/config/settings.yml'

 all:
    settings:
      default_culture:        es_ES

 - I have created a file called
 'plugins/sfDoctrineGuardPlugin/i18n/sf_guard.es_ES.xml' with this content:

 ?xml version=1.0 encoding=UTF-8 ?
 !DOCTYPE xliff PUBLIC -//XLIFF//DTD XLIFF//EN
 http://www.oasis-open.org/committees/xliff/documents/xliff.dtd; 
 xliff version=1.0
 file original=global source-language=en datatype=plaintext
 header/
 body
 trans-unit
 sourceUsername/source
 targetUsuario/target
 /trans-unit
 trans-unit
 sourcePassword/source
 targetContrase a/target
 /trans-unit
 trans-unit
 sourceRemember/source
 targetRecordar/target
 /trans-unit
 trans-unit
 sourceSignin/source
 targetConectar/target
 /trans-unit
 trans-unit
 sourceForgot your password?/source
 target Olvido su contrase a?/target
 /trans-unit
 trans-unit
 sourceYou don't have the required permission to access this page./source
 targetNo tiene los permisos requeridos para acceder a esta
 p gina./target
 /trans-unit
 /body
 /file
 /xliff

 With those two things I still get 'Forgot your password' instead of
 ' Olvido su contrase a?'.

 I have tried also with writing this:

 ?php use_helper('I18N') ?

 form action=?php echo url_for('@sf_guard_signin') ? method=post
 table
 ?php echo $form ?
 /table

 input type=submit value=?php echo __('sign in') ? /
 a href=?php echo url_for('@sf_guard_password') ??php echo
 __('Forgot your password?', array(), 'sf_guard') ?/a
 /form

 instead of this:

 a href=?php echo url_for('@sf_guard_password') ??php echo
 __('Forgot your password?') ?/a

 I have also cleaned the cookies.

 But it still doesnt work..

 Any help?

 Javi

-- 
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

To unsubscribe from this group, send email to 
symfony-users+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


[symfony-users] Re: Invoice Model

2010-03-29 Thread Massimiliano Arione
In this documentation chapter 
http://www.symfony-project.org/more-with-symfony/1_4/en/06-Advanced-Forms
you can find a problem like yours, explained.
Also, I suggest you to use compact syntax for your schema.yml, you can
improve readability a lot

cheers
Massimiliano

On 28 Mar, 14:17, Veríssimo jveriss...@gmail.com wrote:
 Dear all.

 I'm new to symphony and i have been reading the Joobet tutorial to
 make my first symphony application.

 i have the following  schema related with the invoice model, with
 these classes;

 Client, invoice, invoice lines.
 Invoiceline:
   connection: doctrine
   tableName: invoiceline
   columns:
     id:
       type: integer(8)
       fixed: false
       unsigned: false
       primary: true
       autoincrement: false
     idinvoice:
       type: integer(8)
       fixed: false
       unsigned: false
       primary: true
       autoincrement: false
     idproduto:
       type: integer(8)
       fixed: false
       unsigned: false
       primary: false
       notnull: true
       autoincrement: false
     quatidade:
       type: integer(4)
       fixed: false
       unsigned: false
       primary: false
       notnull: true
       autoincrement: false
     total:
       type: float()
       fixed: false
       unsigned: false
       primary: false
       notnull: true
       autoincrement: false
   relations:
     Produto:
       local: idproduto
       foreign: id
       type: one
     Invoice:
       local: idinvoice
       foreign: id
       type: one
 Invoice:
   connection: doctrine
   tableName: invoice
   columns:
     id:
       type: integer(8)
       fixed: false
       unsigned: false
       primary: true
       autoincrement: true
     idclient:
       type: integer(8)
       fixed: false
       unsigned: false
       primary: false
       notnull: true
       autoincrement: false
     data:
       type: date(25)
       fixed: false
       unsigned: false
       primary: false
       notnull: true
       autoincrement: false
     valortotal:
       type: float()
       fixed: false
       unsigned: false
       primary: false
       notnull: true
       autoincrement: false
     descricao:
       type: string(255)
       fixed: false
       unsigned: false
       primary: false
       notnull: true
       autoincrement: false
     ficheiro:
       type: string(255)
       fixed: false
       unsigned: false
       primary: false
       notnull: true
       autoincrement: false
   relations:
     Client:
       local: idclient
       foreign: id
       type: one
     Invoiceline:
       local: id
       foreign: idinvoice
       type: many
 Client:
   connection: doctrine
   tableName: client
   columns:
     id:
       type: integer(8)
       fixed: false
       unsigned: false
       primary: true
       autoincrement: true
     categoria_id:
       type: integer(8)
       fixed: false
       unsigned: false
       primary: false
       notnull: true
       autoincrement: false
     pagtipo_id:
       type: integer(8)
       fixed: false
       unsigned: false
       primary: false
       notnull: true
       autoincrement: false
     identificacao:
       type: string(255)
       fixed: false
       unsigned: false
       primary: false
       notnull: true
       autoincrement: false
     nome:
       type: string(255)
       fixed: false
       unsigned: false
       primary: false
       notnull: true
       autoincrement: false
     nif:
       type: integer(8)
       fixed: false
       unsigned: false
       primary: false
       notnull: true
       autoincrement: false
     morada_cc:
       type: string(255)
       fixed: false
       unsigned: false
       primary: false
       notnull: false
       autoincrement: false
     morada_ii:
       type: string(255)
       fixed: false
       unsigned: false
       primary: false
       notnull: false
       autoincrement: false
     telefone:
       type: string(14)
       fixed: false
       unsigned: false
       primary: false
       notnull: false
       autoincrement: false
     entrada:
       type: date
       fixed: false
       unsigned: false
       primary: false
       notnull: true
       autoincrement: false
     saida:
       type: date
       fixed: false
       unsigned: false
       primary: false
       notnull: false
       autoincrement: false
     nascimento:
       type: date
       fixed: false
       unsigned: false
       primary: false
       notnull: true
       autoincrement: false
     foto:
       type: string(255)
       fixed: false
       unsigned: false
       primary: false
       notnull: false
       autoincrement: false
     activo:
       type: integer(1)
       fixed: false
       unsigned: false
       primary: false
       default: '1'
       notnull: true
       autoincrement: false
     email:
       type: string(255)
       fixed: false
       unsigned: false
       primary: false
       notnull: false
       autoincrement: false
     created_at:
       type: 

[symfony-users] Re: Question about choice widget

2010-03-29 Thread Massimiliano Arione
You jsut need to customize your css, forcing your li's as inline.
No need to modify your template or your formatter.

cheers
Massimiliano

On 25 Mar, 20:03, Javier Garcia tirengar...@gmail.com wrote:
 Hi,

 i have an edit form with a choice widget with radio buttons.

 Symfony renders the options in a column, but I wanted the choices in the
 same line this way:

 Sexo: Chico (o) Chica ()

 So i have modified the code from the line ?php echo $form['sexo']? to
 this:

 ul
 li id=chico
 label class=etiqueta_opcion_sexo for=usuario_sexo_0Chico/label
 input type=radio id=usuario_sexo_0 value=0 name=usuario[sexo]
 /li

 li

 label class=etiqueta_opcion_sexo for=usuario_sexo_1Chica/label
 input type=radio id=usuario_sexo_1 value=1 name=usuario[sexo]
 /li
 /ul

 But now, how can i set the checked one? Using if's? or is there any more
 elegant way?

 Regards

 Javi

-- 
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

To unsubscribe from this group, send email to 
symfony-users+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


[symfony-users] Re: question about cache

2010-03-29 Thread Massimiliano Arione
The solution is to not cache the entire action. Just cache parts of it
(e.g. partials)

cheers
Massimiliano

On 28 Mar, 22:42, Michał Piotrowski mkkp...@gmail.com wrote:
 2010/3/28 Antoine S. antoine.spodobal...@gmail.com:

  Hi,

  You can refine the cache (cache.yml) at any level : application,
  module, action, component, partial

  see the doc

 Can you point me to the doc that you are referring?

 I have checked in symfony 1.4 refernece The cache.yml Configuration 
 File,http://www.symfony-project.org/book/1_2/12-Cachinghttp://www.symfony-project.org/jobeet/1_4/Doctrine/en/21
 and few others returned by google.

 It always works in this 
 wayhttp://www.symfony-project.org/images/jobeet/1_4/21/flow_cache_page.png

 Maybe I'm blind, but I don't see any way to execute an action here...

 Regards,
 Michal

-- 
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

To unsubscribe from this group, send email to 
symfony-users+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


[symfony-users] Re: demande_inscription

2010-03-25 Thread Massimiliano Arione
http://www.symfony-project.org/plugins/sfDoctrineGuardPlugin/4_0_1?tab=plugin_readme

On 23 Mar, 14:59, safa boubekri boubekri.s...@gmail.com wrote:
 bonjour je suis ingénieur d'état génie  logiciel  maintenant je
 développe une application avec symfony

 je trouve des difficultés  pou créer  une page d'authentification

  SVP  comment  puisse-je  créer  une page authentification   en
 symfony  avec sfDoctrineGuardPlugin

-- 
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

To unsubscribe from this group, send email to 
symfony-users+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


[symfony-users] Re: sfWidgetFormJqueryDate - Bug when selecting in list the 8th or 9th of a month

2010-03-25 Thread Massimiliano Arione
Just don't use that plugin.
Instead, you should use a pure javascript solution, that is the best
approach.
See http://garakkio.altervista.org/datepicker/

cheers
Massimiliano

-- 
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

To unsubscribe from this group, send email to 
symfony-users+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


[symfony-users] Re: How to install sfPiwikPlugin with Symfony 1.4

2010-03-25 Thread Massimiliano Arione
Just RTFM 
http://www.symfony-project.org/plugins/sfPiwikPlugin/1_0_1?tab=plugin_readme

symfony plugin:install sfPiwikPlugin -s=beta


On 24 Mar, 12:08, Mickael mickael.derv...@gmail.com wrote:
 Hello everybody,

 I just want to apologize before starting explain my problem for my
 english which can be bad.

 I have a website developped with Symfony 1.4 and I would like to
 install the sfPiwikPlugin which is normally compatable with this
 version of Symfony. But when I try to write in a DOS Console :
 symfony plugin:install sfPiwikPlugin
 I get a message saying that it couldn't find this sfPiwikPlugin.
 So I know there is a manual install for every plugin but I don't
 understand how I have to do.
 Someone could help me please? What should I do step by step ?

 Thanks in advance,

 Mickael

-- 
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

To unsubscribe from this group, send email to 
symfony-users+unsubscribegooglegroups.com or reply to this email with the words 
REMOVE ME as the subject.


[symfony-users] Re: Propel: Change generated classname

2010-03-18 Thread Massimiliano Arione
You can try with alternative schema syntax:
http://www.symfony-project.org/cookbook/1_2/en/alternative_schema

cheers
Massimiliano

On 17 Mar, 17:37, Brandon Turner btur...@bltweb.net wrote:
 I'm using Propel in Symfony 1.3.3.  If I have a database table named
 'myDatabaseTable' and would like the propel generated classname to be
 MyDatabaseTable, does anyone know how I can do this?  Currently,
 propel generates Mydatabasetable for the classname.

 I have tried using the phpName table attribute but it does not work due
 to this two year old bug:http://trac.symfony-project.org/ticket/4156

 Here is a snippet from my schema:

 schema.yml

 propel:
   myDatabaseTable:
     _attributes:  { phpName: MyDatabaseTable }
     id:  { type: Integer, required: true, primaryKey: true,
 autoIncrement: true }
     amount: { type: Integer }

 Thanks for any help.  For the past two years I've just been commenting
 out the lines indicated in ticket #4156, but I'd like to do this
 correctly as I migrate to 1.4.

-- 
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] Re: Sf 1.4 + Propel + Sqlite : unproper handling of bool criteria

2010-03-18 Thread Massimiliano Arione
Are those fields defined as boolean in your schema?
Anyway, if you put your code in the correct model class, it's not
overwritten at every generation.

cheers
Massimiliano

On 17 Mar, 14:18, SlimShaggy filthy.m...@gmail.com wrote:
 Hello all,
 I am currently migrating an app from Symphony 1.2 to 1.4
 I am using an sqlite db and I encountered a problem with the generated
 queries regarding booleans.

 Here is a part of my source code:
 $c = new Criteria();
 $c-add(ShowPeer::IS_PUBLISHED,true);
 $c-add(ShowPeer::IS_CANCELED,false);

 And here is the generated SQL query:
 SELECT DISTINCT show.ID, show.TITLE, (...)
 WHERE show.IS_PUBLISHED=true AND show.IS_CANCELED=false (...)

 What used to retrieve the data I was looking for no longer works!
 No error generated, just an empty result. On the other end, if I copy
  paste the query in sqlitebrowser I do get an error:
 no such column: true

 That is, booleans don't exist in Sqlite they are just treated as
 integers. It all work fine if I convert true-1 and false-0 in the
 SQL. How comes Sf/propel can't handle this anymore ?

 I tryed to mess around, changing my criteria to
 $c-add(ShowPeer::IS_PUBLISHED,'1');
 $c-add(ShowPeer::IS_CANCELED,'0');
 But even after cleaning the cache it's still generating the same
 query.

 Any clue, someone ? This is driving me nuts

 Vince

-- 
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] Re: Question about an AJAX link and the dev and prod enviroments

2010-03-16 Thread Massimiliano Arione
What if client has javascript disabled?

On 15 Mar, 18:38, Javier Garcia tirengar...@gmail.com wrote:
 Ok, this is the solution:

                 a href=# onclick=new Ajax.Updater('lista_miembros', 
 '?php echo
 url_for(miembros/filtrar?page=2); ?')next/a

 Javi

 On Mar 15, 5:59 pm, Javier Garcia tirengar...@gmail.com wrote:

  Hi,

  i have this line below that shows a link to go the next page of a list.

  a href=# onclick=new Ajax.Updater('lista_miembros',
  '/frontend_dev.php/miembros/filtrar?page=2')Next page/a

  The problem: as expected, it only works in the development enviroment of
  the frontend (frontend_dev.php).

  My question: what should i to get it work on both enviroments
  (production and development)? Using if's and getting the environment
  being used is the only way, or is there any cooler way?

  Javi

-- 
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] Re: Propel extend Criteria different functions

2010-03-16 Thread Massimiliano Arione
Did you try Propel criteria builder? http://propel.jondh.me.uk/criteria/analyse
Also, you can use sfPropel15plugin and benefit from new Query syntax.

On 15 Mar, 14:43, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com
wrote:
 If you want to make OR term in Propel, you need to make a Criterion
 object that adds the OR terms to the Criteria object.

 Now I build my Criteria by use of several functions. This is the
 first:

         public static function getAttentionCriteria(Criteria $oCriteria =
 NULL){
                 if($oCriteria == NULL) $oCriteria = new Criteria();
                 else $oCriteria = clone $oCriteria;

                 $oCriteria-setDistinct(self::ID);
                 $oCriterion = $oCriteria-getNewCriterion(self::ADDRESS, '',
 Criteria::EQUAL);
                 $oCriterion-addOr($oCriteria-getNewCriterion(self::CITY,    
 '',
 Criteria::EQUAL));
                 $oCriteria-add($oCriterion);

                 return $oCriteria;
         }

 Another function needs to use the very same Criteria, but with an
 extra OR term added. This is the function:

         public static function getExtendedAttentionCriteria(Criteria
 $oCriteria = NULL){
                 if($oCriteria == NULL) $oCriteria = new Criteria();
                 else $oCriteria = clone $oCriteria;

                 $oCriteria = self::getAttentionCriteria($oCriteria);

                 $oCriterion = $oCriteria -getNewCriterion(self::IMAGE_ID, 
 NULL,
 Criteria::EQUAL);
                 $oCriteria-addOr($oCriterion);

                 return $oCriteria;
         }

 But the last extra OR term (self::IMAGE_ID is equal to NULL) is always
 only added in an AND term.
 How can I extend the first Criteria from getAttentionCriteria and add
 the self::IMAGE_ID is equal to NULL as an OR term?

-- 
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] Re: propel:build-schema not working[jobeet]

2010-03-12 Thread Massimiliano Arione
On 12 Mar, 05:10, Tahar Yazid Touaibia ytouaib...@gmail.com wrote:
 in the tutorial, i did not see any instruction concerning :
 --orm=Propel

http://www.symfony-project.org/jobeet/1_4/Propel/en/01#chapter_01_sub_project_creation

-- 
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] Re: symfony Forms in Action

2010-03-05 Thread Massimiliano Arione
Unfortunately, the form docs are almost abandoned.
I wrote the update for symfony 1.4 myself, but more work is needed.
I asked Fabien at symfony live, he told me to rearrange the chapters
and to add a chapter on embedding forms.
If you want to help, please write on symfony-docs group

cheers
Massimiliano

On 2 Mar, 18:36, danceric eric.lecl...@gmail.com wrote:
 Hi,
 I've seen a link to the 'symfony Forms in Action' in the symfony blog,
 I'm wondering why it's not linked on the 'Documentation' page, it's a
 helpful resource.

 http://www.symfony-project.org/forms/

-- 
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] Re: Does 1.4 or any plugin allow to configure Javascript (view.yml) by environment ?

2010-03-01 Thread Massimiliano Arione
Sorry, no link.
Just refer to official documentation.
You only need to create a custom helper, copying use_javascript()
function from AssetHelper and adding a simple logic base on
sfConfig::get('sf_web_debug')

cheers
Massimiliano

On 26 Feb, 18:43, Bruno Reis bruno.p.r...@gmail.com wrote:
 Thanks a Lot Massimiliano,

 Can you send me a link to where I can read more informations about it?

 2010/2/26 Massimiliano Arione garak...@gmail.com

  view.yml is deprecated in favors of helpers used directly in the
  templates or methods called from actions.
  You can use a conditional helper that checks for sf_debug config
  variable (that's even better than rely on environments)

  cheers
  Massimiliano

  On 26 Feb, 00:43, Bruno Reis bruno.p.r...@gmail.com wrote:
   Hi all,

   We are working here to deploy a new site done with symfony. We still
  working
   with 1.2, but plan to upgrade soon.
   One thing that is being hard to do here is to config different
  javascripts
   for production ( to use a minified one ).

   Does 1.4 or any plugin allow this to be done in a clean and simple way ?

   I´m using a workaroud here, setting up the js array in app.yml and then
   using this on view.yml, but it´s pretty ugly. And is quite limited either
   since app.yml cannot be extended on modules.

  --
  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.comsymfony-users%2bunsubscr...@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


[symfony-users] Re: Does 1.4 or any plugin allow to configure Javascript (view.yml) by environment ?

2010-02-26 Thread Massimiliano Arione
view.yml is deprecated in favors of helpers used directly in the
templates or methods called from actions.
You can use a conditional helper that checks for sf_debug config
variable (that's even better than rely on environments)

cheers
Massimiliano

On 26 Feb, 00:43, Bruno Reis bruno.p.r...@gmail.com wrote:
 Hi all,

 We are working here to deploy a new site done with symfony. We still working
 with 1.2, but plan to upgrade soon.
 One thing that is being hard to do here is to config different javascripts
 for production ( to use a minified one ).

 Does 1.4 or any plugin allow this to be done in a clean and simple way ?

 I´m using a workaroud here, setting up the js array in app.yml and then
 using this on view.yml, but it´s pretty ugly. And is quite limited either
 since app.yml cannot be extended on modules.

-- 
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] Re: Forms howto symfony 1.4

2010-02-24 Thread Massimiliano Arione
http://www.symfony-project.org/forms/1_4/

On 22 Feb, 20:49, Diego Bello dbe...@gmail.com wrote:
 Hi guys,

 Is there any documentation about how to use forms in symfony 1.4?.
 What I want to do is to change a field from text input to select.

 I tried rewritting the form putting the new content in
 lib/form/doctrine/, but the text input is still showing so I think I
 need some more background on forms handling in Symfony. I really miss
 the definitive guide for 1.3 and 1.4 versions :S.

 Regards,
 --
 Diego Bello Carreño

-- 
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] Re: sfValidatorPropelUnique with sfValidatorPropelChoiceMany

2010-02-16 Thread Massimiliano Arione
Override sfValidatorPropelUnique and define a method isUpdate() that
return always false

On 15 Feb, 15:54, Tomasz Ignatiuk tomek.ignat...@gmail.com wrote:
 Hi

 I have a table with unique index of 3 columns. So I use this:

     $this-validatorSchema-setPostValidator(
       new sfValidatorPropelUnique(array('model' = 'ProduktPartner',
 'column' = array('partner', 'product', 'language')))
     );

 It works well.
 But I would like to make some changes in the form. To give a
 possibility to choose one partner, one product and many languages. I
 have changed processForm to save for each language different object
 with the same partner and product. But then, sfValidatorPropelUnique
 doesn't work. Any ideas how to solve this problem out?

-- 
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] Re: Model with no DB requirements.

2010-02-10 Thread Massimiliano Arione
Just define your object as a class in lib/model.

On 9 Feb, 01:35, Pat Fong pf...@globaldatacompany.com wrote:
 Occasionally I come accross an object that I need in my application
 which doesnt require being saved to the DB.

 I usually define this object through the schema as I would any other
 object and that works fine. I guess the problem I have is that it
 creates unessecary tables in the DB, not a big deal but not as clean as
 I would like.

 Is there any way to avoid this or a better approach that someone could
 suggest ?

 Cheers,
 Pat

-- 
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] Re: Date Input Widgets in Symfony 1.2 ... 1.4

2010-02-04 Thread Massimiliano Arione
Yes

On 3 Feb, 16:43, Carlos Henrique chasi...@gmail.com wrote:
 Someone implemented Input Widgets in Symfony 1.2 ... 1.4?

 Thanks

-- 
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] Re: Definitive guide for 1.3 and 1.4

2010-01-25 Thread Massimiliano Arione
The question arose many times, but unfortunately there's no solution
for now.
Once I also asked if we can translate the book, since we already did
it for the 1.0/1.1 version (it's in the wiki), but Fabien replied
negatively.
I think the book it's not in the plans of documentation anymore, maybe
for political reasons? Of course, only Fabien can reply.
I saw many moans in symfony forum about that I think we should do
a collective effort to take this problem to attention of core team: we
can keep to write here, but also write in forum and in the
documentation group

Massimiliano

-- 
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] Re: sfPropelParanoidBehaviorPlugin not available any more?

2010-01-21 Thread Massimiliano Arione
You can use the new propel behaviors: soft_delete behavior replaces
sfPropelParanoidBehaviorPlugin

On 21 Gen, 11:04, Stefan Paschke symfony.pasc...@gmail.com wrote:
 Hello

 migrating my project to 1.3 / 1.4, I just noticed 
 sfPropelParanoidBehaviorPlugin is not working any more. I tried re-installing 
 with

 symfony plugin:install sfPropelParanoidBehaviorPlugin

 but I get the error message

 No release available for plugin sfPropelParanoidBehaviorPlugin

 symfony-project.org says the plugin is stable and compatible with versions 
 1.0 thru 1.4. Anyone know what the problem ist? Anyone using this plugin with 
 1.3 / 1.4?

 regards

 Stefan
-- 
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] Re: Best way to get 2 cache versions : anonymous / authenticated users

2010-01-18 Thread Massimiliano Arione
On 18 Gen, 10:05, Nicolas CHARLOT nicolas.char...@gmail.com wrote:
 I need to store 2 versions of a same action depending on user status 
 (authenticated and member or not).

 The solution I founded was to write my own viewCacheManager:
 It works but all actions are cached twice and it's not necessary. I'm looking 
 for the best practice to do that.

 ?php

 class myViewCacheManager extends sfViewCacheManager
 {
   public function generateCacheKey($internalUri, $hostName = '', $vary = '', 
 $contextualPrefix = '')
   {
     $internalUri .= strpos($internalUri, '?') !== false ? 'member=' : 
 '?member=';
     $internalUri .= 
 sfContext::getInstance()-getUser()-canViewRestrictedMemberContent() ? '1' : 
 '0';

     return parent::generateCacheKey($internalUri, $hostName, $vary, 
 $contextualPrefix);
   }

 }

Nicholas, IMHO your solution is good.
I don't know any other solution for a such problem.
Why do you say that a double cache is not necessary? Indeed, it's
exactly what you need!
-- 
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] Re: sfWidgetFormJQueryDate option format is no longer supported in version 1.1.1?

2010-01-13 Thread Massimiliano Arione
On 12 Gen, 14:40, dziobacz aaabbbcccda...@gmail.com wrote:
 Massimiliano maybe you could create a plugin from your solution and
 place it here:http://www.symfony-project.org/plugins/? :)

I don't think a symfony plugin makes sense.
Consider that my solution is a *pure-javascript* one. There's no php
inside :-)
Also, it's suitable for any date select (even if it's ready to work
with symfony ones)
Instead, maybe I'll do a single package to download and extract into a
symfony project, to just work.

Massimiliano
-- 
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] Re: sfWidgetFormJQueryDate option format is no longer supported in version 1.1.1?

2010-01-12 Thread Massimiliano Arione
On 12 Gen, 07:57, dziobacz aaabbbcccda...@gmail.com wrote:
 I would like to use also format in sfWidgetFormJQueryDate in symfony
 1.4. Here is my ticket:http://trac.symfony-project.org/ticket/8093#preview
 You can give there your suggestions so maybe fabien faster solve this
 problem.
 What is more I think current format: mm-dd- is wrong because in
 normal countries people use dd-mm- or at least -mm-dd. I don't
 know country where date has that strange format: mm-dd- xD

I'm sorry for repeating myself, but: just don't use
sfWidgetFormJQueryDate.
Use sfWidgetFormDate, or even sfWidgetFormDateTime (or even i18n ones)
with a pure javascript (jquery) solution: 
http://garakkio.altervista.org/datepicker/
-- 
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] Re: Offbeat: open source vs closed source technologies

2010-01-08 Thread Massimiliano Arione
I think the major point is: a closed product is depending on a
company. if that company decides to stop support, or do any else bad
decistion, you're finished.
With open source, you can at last do it yourself, but also (and
better) pay any other company or single developer to help you.
In a closed product, you can be stuck with bugs that company don't
want to fix (this is a real case with ms office), while in an open one
you can DIY (or get it done by someone else, same as above).

On 8 Gen, 11:27, Lee Bolding l...@leesbian.net wrote:
 I think these days, the line between open source and closed source  
 is somewhat blurred - and this is a good thing.

 You now have premium open source - with the likes of RHEL, SugarCRM,  
 MySQL and Magento. Microsoft technologies are no longer exclusively  
 closed - I'm currently working with a team of 9 .net/wpf/silverlight  
 developers that are all using open source technology, along with big  
 ticket items such as BizTalk. Pragmatism at it's best - using the  
 correct tool for the job.

 MySQL may be free, but my database on this project is going to have  
 half a billion rows - I can't see relying on community support for  
 solving scalability issues to be clever - intact, it's a massive risk  
 on the project risk register. Luckily, as I mentioned already - there  
 are MySQL professional services.

 The whole IIS/windows server licensing issue is also beginning to  
 disappear - if you want a well supported, enterprise grade, stable and  
 scalable PHP environment, you'll likely want Zend Server - which costs  
 around the same as a Windows Server license. Apache, lighttp, nginx  
 etc are all free, but who actually supports them? If your server goes  
 bump in the night, who you gonna call?

 As always, you get what you pay for. This is true regardless of open  
 source vs closed. If you do open source on the cheap you'll get bad  
 coders that will produce crap, then disappear. Spend more and you'll  
 get a better application, that requires less maintenance and because  
 it's built well, easier to maintain and the developers won't disappear  
 because they're terrified of supporting their own bad code.

 Open source vs closed? IMHO, makes no difference unless you hire bad  
 developers or are unable to maintain a good relationship with your  
 developers.

 Sent from my iWheel

 On 8 Jan 2010, at 08:46, Parijat Kalia kaliapari...@gmail.com wrote:

  Hey guys,

  Just lighting up everyone's day, would like to get as many as  
  possible arguments on this. Me and a friend of mine, had a debate  
  last evening, about open source(PHP) vs closed source technologies
  (DOT NET).He raised the following points:

  1. He feels that open source is not reliable whereas closed source  
  is. The logic being that, once the application is developed and  
  sold, if it runs into some kind of a bug or an error, there is  
  support team for closed source technologies who are going to come  
  and help you fix it, whereas this is not a guarantee in open source  
  technologies.

  2. Development for a successful open source technology is community  
  dependent, implying the choice is still on a faithful group of  
  users, whereas in closed source technologies it is more reliable  
  because it is being backed by a company (microsoft for .NET and SAP  
  for SAP). f

   3. The third point that was raised is, closed source technologies  
  enforce quality control as opposed to open source technologies,  
  where the onus on quality control in case of the latter, is more on  
  the developer himself.

  The reasoning I could offer was that big companies such as Yahoo  
  ( symfony), facebook (php), and Twitter (rails) rely on open source  
  technologies, surely they are aware of the above points but still  
  choose to go with open source rather than closed source  
  technologies. Money is not the most important criteria for these  
  companies, and there definitely is a better reason why they choose  
  open rather than closed source technologies.

  However, it is still not convincing me for I found myself agreeing  
  to the points my friend raised in favor of closed source  
  technologies. Can anyone shed a light on this?

  Thanks!!!
  --
  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 
  athttp://groups.google.com/group/symfony-users?hl=en
  .
-- 
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] Re: sfWidgetFormJQueryDate option format is no longer supported in version 1.1.1?

2010-01-07 Thread Massimiliano Arione
Tom, I fixed the layout issue.
Thanks for reporting it.

Massimiliano

On 5 Gen, 19:38, Tom Ptacnik to...@tomor.cz wrote:
 I wanted to add a link to a printscreen to imageshack (with your
 datepicker in Opera), but when I add a link into this reply window
 it show me an error that I can't post it...

 On 5 led, 19:23, Tom Ptacnik to...@tomor.cz wrote:

  Hello Axel, I like your solution, but in Opera (v. 10.10) it has
  broken layout little bit ...
-- 
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] Re: sfWidgetFormJQueryDate option format is no longer supported in version 1.1.1?

2010-01-05 Thread Massimiliano Arione
Axel,
my solution is totally independ from date format.
On my page (liked above) there is also an example with day/month/year


On 4 Gen, 13:17, axel at axel.zu...@gmail.com wrote:
 Hi Massimiliano,

 when I use your datepicker solution I still have the problem that the
 date selects are mm/dd/ and I would need dd/mm/
 ( Date.format = 'dd.mm.'; is included in date_de.js )

 On 31 Dez. 2009, 17:01, Massimiliano Arione garak...@gmail.com
 wrote:

  Forget sfWidgetFormJQuery and try this full-javascript 
  solution:http://garakkio.altervista.org/datepicker/

  On 29 Dic, 13:58, axel at axel.zu...@gmail.com wrote:

   after upgrading to symonfy 1.3 and sfFormExtraPlugin  1.1.1 the
   format option is no longer supported by sfWidgetFormJQuery

       $this-setWidgets(array(
         'from_date'    = new sfWidgetFormJQueryDate(array(
                'image'='/images/icons/calendar_view_month.gif',
                'format' = '%day%-%month%-%year%',
                'culture' = 'de_AT')
                ),
       ));

   is there another way to change the date format (from mm-dd- to dd-
   mm-)?

--

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.




  1   2   >