[symfony-users] R: Get sfUser object in sfWebRequest class

2011-06-11 Thread Massimiliano Arione
Try with sfContext::getInstance()->getUser()

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


Re: [symfony-users] Create dynamic folder and save files in it.

2011-02-25 Thread Massimiliano Arione
On Friday, February 25, 2011 9:41:40 AM UTC+1, GarethMc wrote:
>
> Create the directory in the uploads folder using the mkdir function 
> (http://php.net/manual/en/function.mkdir.php) and then store the 
> uploaded file in there.


Be aware: you must validate the type of uploaded file.
Otherwise, you risk security issues, e.g. if a malicious user uploads a php 
file.

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: sfWidgetFormPropelChoice newbie problem help needed please

2011-02-15 Thread Massimiliano Arione
You're code is a mess... you should really really try to clean it.
Why the hell are you putting logic in your template? :-(

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

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

2010-12-30 Thread Massimiliano Arione
On 29 Dic, 17:58, "emanu.ti"  wrote:
> Hi, I want to use sfWidgetFormChoice with "multiple" => true
> parameter. Here is my code:

You need to set "multiple" option in your validator.

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

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  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  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  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  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 
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  wrote:
> As Gareth said, my concern is how to embed javascript function from partials
> between ** 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: Textarea onclick event?

2010-11-01 Thread Massimiliano Arione
On 31 Ott, 19:44, Parijat Kalia  wrote:
> Hey guys,r unning into a silly doubt that should so not happen at all!
>
> I have a textarea tag,
>
>  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-11-01 Thread Massimiliano Arione
On 29 Ott, 16:24, "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: All new symfony developers please read...

2010-10-29 Thread Massimiliano Arione
On 29 Ott, 10:29, Gareth McCumskey  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: 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: sfDoctrineGuard user profile one-to-one relationships

2010-10-25 Thread Massimiliano Arione
On 23 Ott, 01:31, Jonotron  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 instead of ?

2010-10-13 Thread Massimiliano Arione
On 12 Ott, 17:52, Javier Garci  wrote:
> anyway to generate backend lists using  instead of  ?
> 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  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  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"  wrote:
> On Sun, Sep 12, 2010 at 2:20 PM, Davide Borsatto  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  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 ""; 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  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-20 Thread Massimiliano Arione
On 19 Ago, 16:41, Christopher Schnell 
wrote:
> You are talking about functional tests, but the original post was about unit 
> tests.

Indeed, topic is about unit testing, but the subject doesn't make
sense with that.
There's no "frontend" in unit tests, nor authentication.
So we can assume we're talking about functional tests

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

2010-08-18 Thread Massimiliano Arione
On 17 Ago, 13:50, wueb  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: Adding time to a date symfony 1.4

2010-08-18 Thread Massimiliano Arione
On 18 Ago, 10:34, François SEDE  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: Please help me to get rid of these warning messages

2010-08-18 Thread Massimiliano Arione
On 18 Ago, 10:03, ajit  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: basic Action module/action does not exist

2010-08-17 Thread Massimiliano Arione
On 17 Ago, 06:43, Abraham  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: 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  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: Symfony 1.4 and PayPal

2010-08-04 Thread Massimiliano Arione
On 3 Ago, 03:11, Diego Bello  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: a good IDE for Symfony

2010-08-04 Thread Massimiliano Arione
On 4 Ago, 07:58, pghoratiu  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: include_js/css VS partials

2010-07-29 Thread Massimiliano Arione
On 17 Lug, 20:15, comb  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_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-18 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"  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: where to put ajax url

2010-07-09 Thread Massimiliano Arione
On 8 Lug, 15:13, Kevin  wrote:
> In my fight to keep all my javascript unobtrusive I have been
> wondering what the best practice to place the ajax urls so they work
> in all environments (dev/staging/production).
>
> There has been a discussion about this before but it mostly dealt with
> link hrefs.  I am asking more about form widgets.  I don't like using
> a custom widget for say an autocomplete because it breaks
> unobtrusiveness.  I would rather use a simple text input widget.
>
> What I have done is placed a meta tag in the layout:
>
> 
>
> and in the javascript something like:
>
> $.getJSON($("meta[name=tag_link]").attr('content')...
>
> Anybody have any other (better) suggestions?

I usually rely on an hidden field in my forms.
It need to be a "fake" field, i.e. not a field added in form object,
but simply written in template (so it's ignored when form is bound)

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  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  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  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-27 Thread Massimiliano Arione
On 26 Giu, 18:47, martyn  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  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
> en 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  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  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  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"  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  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  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  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  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-23 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  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  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 
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-30 Thread Massimiliano Arione
On 29 Apr, 15:36, Gareth McCumskey  wrote:
> I know you are talking about ajax. So, for the sake of brevity< i
> include an example of  the way it could be done in symfony 1.0 using
> the helpers:

symfony 1.0 is unsupported since a long time.
Wonder why newer versions drop the ugly helpers like link_to_remote...

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  wrote:
> Or return an array from the action to the template/partial and have php do:
>
> 
>   
>     
>   
> 

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

2010-04-28 Thread Massimiliano Arione
You should return a json encoded text in your controller.
The view layer is skipped.
Then let the javascript insert the list elements by manipulating the
DOM.

cheers
Massimiliano

On 27 Apr, 16:37, Tofuwarrior  wrote:
> Ho Both,
>
> Thanks for your thoughts on this.
>
> If you can spare the time, I have one further question about this
>
> I am currently returning the  that the tree menu function needs
> from the action which calls a fetchTree function which is currently in
> the model. This was just for development purposes and I can see I
> shouoldn't be writing html in the model -  I need to put it in the
> appropriate place. The function grabs the child folders and child
> files for the given parent and then writes the  on this basis.
>
> What is the best way to separate this out in symfony - do I need to
> use a helper for this, maybe a partial? ( I don't yet fully understand
> these and when they should be used. ) and then pass the child folders
> and files to this which can output the html that is returned to the
> ajax function ?
>
> My assumption is that I should grab the child objects in the action by
> calling peer methods, assign them as variables and then call something
> that will take these values and output the  which is then returned
> by the action to the ajax.
>
> Thanks,
>
> Paul
>
> --
> 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: Propel nested set and sfOutputEscaperIteratorDecorator - too many queries

2010-04-28 Thread Massimiliano Arione
On 27 Apr, 18:27, Rytis Daugirdas  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  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  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  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 21 Apr, 14:39, Gareth McCumskey  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-20 Thread Massimiliano Arione
On 19 Apr, 16:46, Tofuwarrior  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-19 Thread Massimiliano Arione
On 19 Apr, 14:43, Tofuwarrior  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 section with symphony components?

2010-04-15 Thread Massimiliano Arione
On 15 Apr, 08:12, Lutz  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  wrote:
> No rekarnar,
>
> still it doesn't Work. Any other suggestion?
>
> I am getting this in browsers:
>
> ==
> http://www.abcd.com";>Welcome Text  strong>
>
> ==
>
> and in HTML:
>
> ==
>  Welcome 
> Text
> ==
>
> 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  wrote:
>
> > Try $sf_data->get('variable_name',ESC_RAW);
>
> > On Apr 6, 7:18 pm, Apul Gupta  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  wrote:
>
> > > > Did you try to set escaping-strategy = off in the settings.yml of 
> > > > single module?
>
> > > > Denis
>
> > > > 2010/4/5 Apul Gupta :
>
> > > > > 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

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  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: Invoice Model

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  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  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  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: propel relation m:n

Can you post your real schema? The one above is uncomplete.

On 30 Mar, 18:16, Julian Reyes 
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

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  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: question about cache

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  wrote:
> 2010/3/28 Antoine S. :
>
> > 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: Question about choice widget

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  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  to
> this:
>
> 
> 
> Chico
> 
> 
>
> 
>
> Chica
> 
> 
> 
>
> 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: Invoice Model

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

[symfony-users] Re: Trying to translate sfDoctrineGuardPlugin

Just use standard messages.es.xml file in your app/APPNAME/i18n
directory.

cheers
Massimiliano

On 29 Mar, 10:29, Javier Garcia  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:
>
> 
>  "http://www.oasis-open.org/committees/xliff/documents/xliff.dtd"; >
> 
> 
> 
> 
> 
> Username
> Usuario
> 
> 
> Password
> Contrase a
> 
> 
> Remember
> Recordar
> 
> 
> Signin
> Conectar
> 
> 
> Forgot your password?
>  Olvido su contrase a?
> 
> 
> You don't have the required permission to access this page.
> No tiene los permisos requeridos para acceder a esta
> p gina.
> 
> 
> 
> 
>
> With those two things I still get 'Forgot your password' instead of
> ' Olvido su contrase a?'.
>
> I have tried also with writing this:
>
> 
>
> 
> 
> 
> 
>
> 
>  __('Forgot your password?', array(), 'sf_guard') ?>
> 
>
> instead of this:
>
>  __('Forgot your password?') ?>
>
> 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: How to install sfPiwikPlugin with Symfony 1.4

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  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: sfWidgetFormJqueryDate - Bug when selecting in list the 8th or 9th of a month

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

http://www.symfony-project.org/plugins/sfDoctrineGuardPlugin/4_0_1?tab=plugin_readme

On 23 Mar, 14:59, safa boubekri  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: Sf 1.4 + Propel + Sqlite : unproper handling of bool criteria

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  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: Propel: Change generated classname

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

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

What if client has javascript disabled?

On 15 Mar, 18:38, Javier Garcia  wrote:
> Ok, this is the solution:
>
>                 ')">next
>
> Javi
>
> On Mar 15, 5:59 pm, Javier Garcia  wrote:
>
> > Hi,
>
> > i have this line below that shows a link to go the next page of a list.
>
> > Next page
>
> > 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:build-schema not working[jobeet]

On 12 Mar, 05:10, Tahar Yazid Touaibia  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

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

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

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

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

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

On 22 Feb, 20:49, Diego Bello  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

Override sfValidatorPropelUnique and define a method isUpdate() that
return always false

On 15 Feb, 15:54, Tomasz Ignatiuk  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.

Just define your object as a class in lib/model.

On 9 Feb, 01:35, "Pat Fong"  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

Yes

On 3 Feb, 16:43, Carlos Henrique  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.



  1   2   >