[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()'-

[symfony-users] Re: JSON default content type

2011-04-04 Thread Massimiliano Arione
Open config/view.yml file in your application. First 3 lines (excluding comments) are default: http_metas: content-type: text/html you got a clue ;-) cheers Massimiliano -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You

[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

[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

[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

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

2011-01-14 Thread Massimiliano Arione
'27' is the label of a link, something like a href=blabla27/a cheers Massimiliano -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post

[symfony-users] Re: Using UUIDs for primary keys vs AutoIncrementing/Sequence based primary keys

2011-01-04 Thread Massimiliano Arione
On 4 Gen, 13:41, Gareth McCumskey gmccums...@gmail.com wrote: To be perfectly honest, why bother? What advantage does turning a more efficient integer based, autoincrement ID column into a more inefficient, multi-byte character column, even if you could get autoincrement working for

[symfony-users] Re: Custom 404 - Problem with CSS

2010-12-20 Thread Massimiliano Arione
On 19 Dic, 21:45, Warringer warrin...@gmail.com wrote: I have build myself a custom 404 error page according to the very useful help on symfony-check.org. Now I have the problem that my custom header adds the default CSS spreadsheet to the rest of the CSS I have added. That's a stylesheet,

[symfony-users] Re: Symfony disable javascript execution on Ajax request

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

[symfony-users] Re: Propel 1.5 select method problem

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

[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

[symfony-users] Re: How to set the title to each page dynamically

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

[symfony-users] Re: Creating a new tinyMCE widget

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

[symfony-users] Re: OT - Translators and Translations

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

[symfony-users] Re: Admin generator - removing all delete links

2010-11-17 Thread Massimiliano Arione
On 17 Nov, 11:24, Manu emmanuel.parf...@gmail.com wrote: I removed the delete link from the list page, but I just found out that there is a delete link at the bottom of every edit page ... How do I remove that one ? Use generator.yml to hide delete actions (see docs) Then, you should also

[symfony-users] Re: Migrate full site

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

[symfony-users] Re: jq_submit_to_remote examples

2010-11-15 Thread Massimiliano Arione
On 15 Nov, 02:19, Martin Ibarra Cervantes ibarra.cervan...@gmail.com wrote: Hi, guys, i want use jquery on my forms but i dont have idea how use this. Stay away from any symfony plugin containing the word jQuery. Just implement your form in the standard way, then add jQuery javascripts as

[symfony-users] Re: Question: The best way to embed javascript : in parial or in js files

2010-11-05 Thread Massimiliano Arione
On 4 Nov, 09:47, JoJo jojoyangd...@gmail.com wrote: As Gareth said, my concern is how to embed javascript function from partials between *head/head* tag. You're wrong from the start: javascript tag can be put anywhere in the html, and best place is in the bottom, just before body ends. So, you

[symfony-users] Re: All new symfony developers please read...

2010-11-01 Thread Massimiliano Arione
On 29 Ott, 16:24, cordo...@gmail.com cordo...@gmail.com wrote: oh!!! What exactly are we missing in the English version? Everything updated in the repository in the last 2 or 3 weeks (about) I am sure Fabien will take action if he notices. So, please let him know. I already did and I don't

[symfony-users] Re: Textarea onclick event?

2010-11-01 Thread Massimiliano Arione
On 31 Ott, 19:44, Parijat Kalia kaliapari...@gmail.com wrote: Hey guys,r unning into a silly doubt that should so not happen at all! I have a textarea tag, ?php echo textarea_tag('hint_box','','size=70x4', array('onclick'='javascript:alert(yo) ')) ;? and the onclick event is failing to

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

[symfony-users] Re: All new symfony developers please read...

2010-10-29 Thread Massimiliano Arione
On 29 Ott, 10:29, Gareth McCumskey gmccums...@gmail.com wrote: Yes it is ;) Fabian went through a lengthy process (along with a number of contributors) to update it. Gareth, I'm one of such contributors and I can tell you that it's just like so: documents on symfony site are NOT up to date

[symfony-users] Re: sfDoctrineGuard user profile one-to-one relationships

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

[symfony-users] Re: Any way to generate backend lists using div instead of table ?

2010-10-13 Thread Massimiliano Arione
On 12 Ott, 17:52, Javier Garci tirengar...@gmail.com wrote: anyway to generate backend lists using div instead of table ? Without modifying too much the symfony generator... Why? Tableless is *not* an absolute value. cheers Massimiliano -- If you want to report a vulnerability issue on

[symfony-users] Re: Propel route: new object with foreign key (sf 1.3.7)

2010-10-05 Thread Massimiliano Arione
On 4 Ott, 18:53, Christian alice...@googlemail.com wrote:   So, i have to create a new route and modify the executeNew action? Is there no way to use the default @offer_refurbishment_new route? You can use the default route, just pass any added parameter as query string. E.g.:

[symfony-users] Re: Add description text after formWidgets in admin generator

2010-09-14 Thread Massimiliano Arione
On 14 Set, 12:43, axel at axel.zu...@gmail.com wrote: sometimes I would like to render a certain description text after a sfWidgetFormInputText rendered by admin generator. eg. SpecialTextAttribut [__] Please enter your bla bla bla any ideas how to achieve this? You can find it in

[symfony-users] Re: Tabs in Auto-Generated Code

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

[symfony-users] Re: Using mysql php functions in symfony

2010-09-07 Thread Massimiliano Arione
On 7 Set, 07:52, DEEPAK BHATIA toreachdee...@gmail.com wrote: I tried accessing some other database than specified in databases.yml. But below is not working. Please help.     $con=mysql_connect(localhost,root,);     if(!$con)     {       echo Database Connection Not Estabilished\n;      

[symfony-users] Re: Translating the backend

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

[symfony-users] Re: IS there any manual to correct unit test system for integrating with sfGuard auth symfony?

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

[symfony-users] Re: Please help me to get rid of these warning messages

2010-08-18 Thread Massimiliano Arione
On 18 Ago, 10:03, ajit csa...@gmail.com wrote: I am getting this warning messages...Please help me to get rid of those messages. Warning: constant() [function.constant]: Couldn't find constant Region::PEER in /var/www/dms/lib/symfony/plugins/sfPropelPlugin/lib/

[symfony-users] Re: Adding time to a date symfony 1.4

2010-08-18 Thread Massimiliano Arione
On 18 Ago, 10:34, François SEDE francois.s...@gmail.com wrote: Hi everyone. I want to add the value of an sfWidgetFormI18nTime to an sfWidgetFormJqueryDate and store it into a column in my database but it doesn't work. Don't use sfWidgetFormJqueryDate. See

[symfony-users] Re: sfWidgetFormDate datepicker range problem

2010-08-18 Thread Massimiliano Arione
On 17 Ago, 13:50, wueb webmaster@gmail.com wrote: I'm using sfWidgetFormDate with a datepicker (http:// garakkio.altervista.org/datepicker/) The code in the form is: $years = range(date(Y),1980); $this-widgetSchema['date_const'] = new sfWidgetFormDate(array('years' =

[symfony-users] Re: IS there any manual to correct unit test system for integrating with sfGuard auth symfony?

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

[symfony-users] Re: basic Action module/action does not exist

2010-08-17 Thread Massimiliano Arione
On 17 Ago, 06:43, Abraham amontil...@gmail.com wrote: any ideas to overcome my problem? What is your problem? It's not really clear in your message. cheers Massimiliano -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received

[symfony-users] Re: a good IDE for Symfony

2010-08-04 Thread Massimiliano Arione
On 4 Ago, 07:58, pghoratiu pghora...@gmail.com wrote: Check out Komodo edithttp://www.activestate.com/komodo-edit some of my colleagues use it. I also use Komodo and advice to use it. It's fast, open, cross-platform. cheers Massimiliano -- If you want to report a vulnerability issue on

[symfony-users] Re: Symfony 1.4 and PayPal

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

[symfony-users] Re: include_js/css VS partials

2010-07-29 Thread Massimiliano Arione
On 17 Lug, 20:15, comb sa...@gmx.net wrote: I found much on the web regarding the topic, but no solution! :( Normally one would include the css and js in the head. But if I call ?php use_javascript('xyz.js');     php use_stylesheet('xyz.css') ? from an partial, they are not included,

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

[symfony-users] Re: Where to extend sfGuardUserPeer class?

2010-07-19 Thread Massimiliano Arione
You can override a plugin's empty class by copying its file in main lib/ directory and defining your custom methods there. cheers Massimiliano -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are

[symfony-users] Re: somebody have worked with FormFilter? :: getting 'Array to String conversion' Notice

2010-07-13 Thread Massimiliano Arione
On 13 Lug, 02:36, B.O.G germanaolivei...@gmail.com wrote: I have a sfWidgetFormFilterDate, and every time i 'click' Filter button i get and 'Array to String conversion' Notice If i remove de Date Filter the error disappear, what is going on ? it could depend on your date filter validator.

[symfony-users] Re: Rich text editor with upload image plugin

2010-07-05 Thread Massimiliano Arione
On 5 Lug, 14:11, Mariano Sola mariano.s...@gmail.com wrote: thanks for your answer! could you send me some example? Just install the latest version of sfAssetsLibraryPlugin from http://svn.symfony-project.com/plugins/sfAssetsLibraryPlugin/branches/1.3/ and use it in any textarea. cheers

[symfony-users] Re: Rich text editor with upload image plugin

2010-07-04 Thread Massimiliano Arione
On 1 Lug, 22:10, Mariano Sola mariano.s...@gmail.com wrote: Has anyone worked with any rich text editor with the upload image option activated in Symfony 1.4? I did some tests with TinyMCE and iBrowser but I wasn't be able to make it works. sfAssetsLibraryPlugin -- If you want to report a

[symfony-users] Re: Important sfDoctrineApplyPlugin news

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

[symfony-users] Re: importing a symfony made website back into symfony??

2010-06-28 Thread Massimiliano Arione
On 26 Giu, 18:47, martyn b...@worldonline.nl wrote: how can we fix a handfull of errors, without needing to hack/break into the php code cause it might cause severe probs elsewhere. Well, the answer is simple: just do tests. Unit tests, functional tests. When your test coverage will be good,

[symfony-users] Re: How to pass PHP values to addJavascript() (or something else) ?

2010-06-24 Thread Massimiliano Arione
On 24 Giu, 08:05, Tom Ptacnik to...@tomor.cz wrote: So if I need to get some variables in javascript from the app, you advice is to generate it into the DOM? Example: I need to detect which culture is set. Then i should generate div id=culture style=display:none;en/div into the DOM and then

[symfony-users] Re: How to pass PHP values to addJavascript() (or something else) ?

2010-06-23 Thread Massimiliano Arione
On 22 Giu, 10:03, François franc...@robichet.com wrote: I'd like to pass values to my JS script when I call it. So I look the API for the addJavascript() method, herre is it : You shouldn't pass variables from php to javascript. Javascript should be always unobtrusive, so the only point of

[symfony-users] Re: Set form value from controler

2010-06-22 Thread Massimiliano Arione
On 21 Giu, 19:49, titiyoyo terence.pi...@gmail.com wrote: i have a simple and basic quesion here about symfony : how can i set values into a form field from the controller in symfony ? I looked again and again and again without finding an answer. So for now i have this below. Please help

[symfony-users] Re: methods wiped out by svn export - using externals

2010-06-21 Thread Massimiliano Arione
On 17 Giu, 12:13, Daniel Lohse annismcken...@googlemail.com wrote: What you can do is copy the sfGuardUser.php to your lib/ folder and make your modifications there. This should work. The sfGuardUser.php file should be empty. That's very interesting. I never heard anything about it, but it

[symfony-users] Re: Functional tests for Form validators?

2010-06-15 Thread Massimiliano Arione
On 14 Giu, 16:12, Christopher Schnell ty...@mda.ch wrote: As I am writing lots of functional tests these days, I was wondering if one should test the standard validators of a form. Let's say, we have a change Password form. This simple form with three fields would require lots of tests, for

[symfony-users] Re: GuardUser in doctrine class

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

[symfony-users] Re: combining functional and unit tests?

2010-06-02 Thread Massimiliano Arione
You can simply use propel tester. See http://www.symfony-project.org/jobeet/1_4/Propel/en/11#chapter_11_the_propel_tester cheers Massimiliano On 2 Giu, 00:18, Jeremy Thomerson jer...@thomersonfamily.com wrote: I have written a functional test that tests my site's registration flow.  At the end

[symfony-users] Re: Symfony 1.4 Alias

2010-05-31 Thread Massimiliano Arione
The alias is needed only for the sf folder. If you won't (or can't) use an alias, you can just copy sf folder under your web folder cheers Massimiliano On 31 Mag, 13:56, RedQueen s.p.alle...@gmail.com wrote: On the main page of Symfony we can find a lot of guides. And it really help but

[symfony-users] Re: Propel Behavior: Adding static methods

2010-05-25 Thread Massimiliano Arione
What about bundled propel behaviors? cheers Massimiliano On 25 Mag, 01:20, rekarnar rekar...@gmail.com wrote: Hi guys, I'm trying to write some methods into my peer class's using a propel behavior (http://www.propelorm.org/wiki/Documentation/1.5/ Behaviors#WritingaBehavior) But I seem

[symfony-users] Re: tinyMCE jQuery + symfony 1.4

2010-05-24 Thread Massimiliano Arione
The idea behind the tinyMCE widget (like any other js widget) is bad. It's javascript! All you need is include it and refer to correct id/ class in DOM, no need to use php for that. cheers Massimiliano On 22 Mag, 17:59, godbout guillaume.lecler...@gmail.com wrote: Hi! I've got some problems

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

2010-05-21 Thread Massimiliano Arione
You can write a Propel behavior, that allows to add both static and non-static methods. Refer to Propel documentation cheers Massimiliano On 21 Mag, 02:57, rekarnar rekar...@gmail.com wrote: Fromhttp://www.symfony-project.org/cookbook/1_2/en/behaviors: Unfortunately, as of PHP 5, static

[symfony-users] Re: Compatibility PHP 5.3

2010-05-16 Thread Massimiliano Arione
On 15 Mag, 22:15, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: Anyone who has experienced using Symfony on PHP 5.3? Did it all run fine? No compatibility errors / bugs? The Symfony versions 1.1, 1.2, 1.4? Take a look to this ticket http://trac.symfony-project.org/ticket/8563 Other

[symfony-users] Re: :-( please help. ajax problem - noob to ajax -probably simple

2010-04-29 Thread Massimiliano Arione
On 29 Apr, 09:17, Gareth McCumskey gmccums...@gmail.com wrote: Or return an array from the action to the template/partial and have php do: ul   ?php foreach ($array as $array_item): ?     li?php echo $array_item ?/li   ?php endforeach; ? /ul We're talking about ajax. You just can't output

[symfony-users] Re: Propel nested set and sfOutputEscaperIteratorDecorator - too many queries

2010-04-28 Thread Massimiliano Arione
On 27 Apr, 18:27, Rytis Daugirdas rytis.daugir...@gmail.com wrote: Since when iterators are overkill? IMO, your suggestion is overkill. Propel documentation clearly states that a tree can be easily traversed via its iterator interface. Why should I write additional code (however simple) to get

[symfony-users] Re: Propel nested set and sfOutputEscaperIteratorDecorator - too many queries

2010-04-27 Thread Massimiliano Arione
On 26 Apr, 18:11, Rytis Daugirdas rytis.daugir...@gmail.com wrote: To output a list of nodes, obviously. It looks a bit overkilled to me. Just retrieve the whole table ordered by left, and you'll get the entire tree. cheers Massimiiano -- If you want to report a vulnerability issue on

[symfony-users] Re: Propel nested set and sfOutputEscaperIteratorDecorator - too many queries

2010-04-26 Thread Massimiliano Arione
It's not clear to me why you want to use an iterator in a template. cheers Massimiliano On 26 Apr, 10:56, Rytis Daugirdas rytis.daugir...@gmail.com wrote: Hello, When using Propel's nested set behaviour, iteration over a node set in a template (with output escaping enabled) produces too many

[symfony-users] Re: :-( please help. ajax problem - noob to ajax -probably simple

2010-04-23 Thread Massimiliano Arione
On 21 Apr, 15:14, Paul Burdon p...@clearintent.co.uk wrote: Could you clarify what the 'proper' way is please. Thanks. Of course. The proper way is to write html as if javascript wouldn't exist. Then, write javascript files that use the document load event to look into dom, modify the dom

[symfony-users] Re: :-( please help. ajax problem - noob to ajax -probably simple

2010-04-21 Thread Massimiliano Arione
On 19 Apr, 16:46, Tofuwarrior psbur...@googlemail.com wrote: As a general principle is my approach ( ie pull the data from an action into the jQuery) correct. I don't think your approach is fully correct. You should never mix javascript and php code. You should write php (and so html) as if

[symfony-users] Re: :-( please help. ajax problem - noob to ajax -probably simple

2010-04-21 Thread Massimiliano Arione
On 21 Apr, 14:39, Gareth McCumskey gmccums...@gmail.com wrote: And if you had to create a restful api that returns content as JSON? Returning JSON using renderText is perfectly valid and does not break the seperation of concerns. The actions responsibility is to recieve a request, gather data

[symfony-users] Re: :-( please help. ajax problem - noob to ajax -probably simple

2010-04-19 Thread Massimiliano Arione
On 19 Apr, 14:43, Tofuwarrior psbur...@googlemail.com wrote: I don't want a template, I just want to get the raw output of this action into this javascript function and I figure this is the problem. So, you replied yourself: just skip the view in your action. You can do it with return

[symfony-users] Re: The 'right' way to update content in a div section with symphony components?

2010-04-15 Thread Massimiliano Arione
On 15 Apr, 08:12, Lutz lutz.p...@gmail.com wrote: So, is there a way to get the redered result for a component, so instead 'include_component' something like 'render_component'? in symphony? http://www.symfony-project.org/api/1_4/PartialHelper#method_get_component -- If you want to report a

[symfony-users] Re: sfOutputEscaper behaviour

2010-04-07 Thread Massimiliano Arione
try $variable-getRawValue() cheers Massimiliano On 7 Apr, 06:07, Apul Gupta apulmca...@gmail.com wrote: No rekarnar, still it doesn't Work. Any other suggestion? I am getting this in browsers: == stronga title=title

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

2010-04-01 Thread Massimiliano Arione
OK, you must remove the id field from acudiente_estudiante model, and add primaryKey: true to both estudiante and acudiente fields. cheers Massimiliano On 1 Apr, 01:40, Julian Reyes julian.reyes.escri...@gmail.com wrote: Ok my real schema is: estudiante:      id: ~      nombres:            

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

2010-03-31 Thread Massimiliano Arione
Can you post your real schema? The one above is uncomplete. On 30 Mar, 18:16, Julian Reyes julian.reyes.escri...@gmail.com wrote: Hi i have a problem with this type or relations. in the jobeet tutorial explain the ORM make it relations many to many automaticly buts don't works. only saved

[symfony-users] Re: Invoice Model

2010-03-31 Thread Massimiliano Arione
if the $this-getObject() != null. Because when it is null the embed form(Invoiceline) is saved with the variable invoiceid = null. thank you. On Mar 30, 2:20 pm, Massimiliano Arione garak...@gmail.com wrote: You don't need to check. The getObject() method returns null if no object

[symfony-users] Re: Invoice Model

2010-03-30 Thread Massimiliano Arione
You don't need to check. The getObject() method returns null if no object associated, and this is fine with form instance. Just avoid to echo object's id in the form's configure why are you doing this??? cheers Massimiliano On 30 Mar, 01:07, Veríssimo jveriss...@gmail.com wrote: I have

[symfony-users] Re: Trying to translate sfDoctrineGuardPlugin

2010-03-29 Thread Massimiliano Arione
Just use standard messages.es.xml file in your app/APPNAME/i18n directory. cheers Massimiliano On 29 Mar, 10:29, Javier Garcia tirengar...@gmail.com wrote: Hi, these are my steps: - I have added this line to 'frontend/config/settings.yml' all:    settings:      default_culture:        

[symfony-users] Re: Invoice Model

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

[symfony-users] Re: Question about choice widget

2010-03-29 Thread Massimiliano Arione
You jsut need to customize your css, forcing your li's as inline. No need to modify your template or your formatter. cheers Massimiliano On 25 Mar, 20:03, Javier Garcia tirengar...@gmail.com wrote: Hi, i have an edit form with a choice widget with radio buttons. Symfony renders the options

[symfony-users] Re: question about cache

2010-03-29 Thread Massimiliano Arione
The solution is to not cache the entire action. Just cache parts of it (e.g. partials) cheers Massimiliano On 28 Mar, 22:42, Michał Piotrowski mkkp...@gmail.com wrote: 2010/3/28 Antoine S. antoine.spodobal...@gmail.com: Hi, You can refine the cache (cache.yml) at any level : application,

[symfony-users] Re: demande_inscription

2010-03-25 Thread Massimiliano Arione
http://www.symfony-project.org/plugins/sfDoctrineGuardPlugin/4_0_1?tab=plugin_readme On 23 Mar, 14:59, safa boubekri boubekri.s...@gmail.com wrote: bonjour je suis ingénieur d'état génie  logiciel  maintenant je développe une application avec symfony je trouve des difficultés  pou créer  une

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

2010-03-25 Thread Massimiliano Arione
Just don't use that plugin. Instead, you should use a pure javascript solution, that is the best approach. See http://garakkio.altervista.org/datepicker/ cheers Massimiliano -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You

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

2010-03-25 Thread Massimiliano Arione
Just RTFM http://www.symfony-project.org/plugins/sfPiwikPlugin/1_0_1?tab=plugin_readme symfony plugin:install sfPiwikPlugin -s=beta On 24 Mar, 12:08, Mickael mickael.derv...@gmail.com wrote: Hello everybody, I just want to apologize before starting explain my problem for my english which

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

2010-03-18 Thread Massimiliano Arione
You can try with alternative schema syntax: http://www.symfony-project.org/cookbook/1_2/en/alternative_schema cheers Massimiliano On 17 Mar, 17:37, Brandon Turner btur...@bltweb.net wrote: I'm using Propel in Symfony 1.3.3.  If I have a database table named 'myDatabaseTable' and would like the

[symfony-users] Re: Sf 1.4 + Propel + Sqlite : unproper handling of bool criteria

2010-03-18 Thread Massimiliano Arione
Are those fields defined as boolean in your schema? Anyway, if you put your code in the correct model class, it's not overwritten at every generation. cheers Massimiliano On 17 Mar, 14:18, SlimShaggy filthy.m...@gmail.com wrote: Hello all, I am currently migrating an app from Symphony 1.2 to

[symfony-users] Re: Question about an AJAX link and the dev and prod enviroments

2010-03-16 Thread Massimiliano Arione
What if client has javascript disabled? On 15 Mar, 18:38, Javier Garcia tirengar...@gmail.com wrote: Ok, this is the solution:                 a href=# onclick=new Ajax.Updater('lista_miembros', '?php echo url_for(miembros/filtrar?page=2); ?')next/a Javi On Mar 15, 5:59 pm, Javier

[symfony-users] Re: Propel extend Criteria different functions

2010-03-16 Thread Massimiliano Arione
Did you try Propel criteria builder? http://propel.jondh.me.uk/criteria/analyse Also, you can use sfPropel15plugin and benefit from new Query syntax. On 15 Mar, 14:43, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: If you want to make OR term in Propel, you need to make a Criterion

[symfony-users] Re: propel:build-schema not working[jobeet]

2010-03-12 Thread Massimiliano Arione
On 12 Mar, 05:10, Tahar Yazid Touaibia ytouaib...@gmail.com wrote: in the tutorial, i did not see any instruction concerning : --orm=Propel http://www.symfony-project.org/jobeet/1_4/Propel/en/01#chapter_01_sub_project_creation -- If you want to report a vulnerability issue on symfony, please

[symfony-users] Re: symfony Forms in Action

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

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

2010-03-01 Thread Massimiliano Arione
a Lot Massimiliano, Can you send me a link to where I can read more informations about it? 2010/2/26 Massimiliano Arione garak...@gmail.com view.yml is deprecated in favors of helpers used directly in the templates or methods called from actions. You can use a conditional helper

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

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

[symfony-users] Re: Forms howto symfony 1.4

2010-02-24 Thread Massimiliano Arione
http://www.symfony-project.org/forms/1_4/ On 22 Feb, 20:49, Diego Bello dbe...@gmail.com wrote: Hi guys, Is there any documentation about how to use forms in symfony 1.4?. What I want to do is to change a field from text input to select. I tried rewritting the form putting the new content

[symfony-users] Re: sfValidatorPropelUnique with sfValidatorPropelChoiceMany

2010-02-16 Thread Massimiliano Arione
Override sfValidatorPropelUnique and define a method isUpdate() that return always false On 15 Feb, 15:54, Tomasz Ignatiuk tomek.ignat...@gmail.com wrote: Hi I have a table with unique index of 3 columns. So I use this:     $this-validatorSchema-setPostValidator(       new

[symfony-users] Re: Model with no DB requirements.

2010-02-10 Thread Massimiliano Arione
Just define your object as a class in lib/model. On 9 Feb, 01:35, Pat Fong pf...@globaldatacompany.com wrote: Occasionally I come accross an object that I need in my application which doesnt require being saved to the DB. I usually define this object through the schema as I would any other

[symfony-users] Re: Date Input Widgets in Symfony 1.2 ... 1.4

2010-02-04 Thread Massimiliano Arione
Yes On 3 Feb, 16:43, Carlos Henrique chasi...@gmail.com wrote: Someone implemented Input Widgets in Symfony 1.2 ... 1.4? Thanks -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to

[symfony-users] Re: Definitive guide for 1.3 and 1.4

2010-01-25 Thread Massimiliano Arione
The question arose many times, but unfortunately there's no solution for now. Once I also asked if we can translate the book, since we already did it for the 1.0/1.1 version (it's in the wiki), but Fabien replied negatively. I think the book it's not in the plans of documentation anymore, maybe

[symfony-users] Re: sfPropelParanoidBehaviorPlugin not available any more?

2010-01-21 Thread Massimiliano Arione
You can use the new propel behaviors: soft_delete behavior replaces sfPropelParanoidBehaviorPlugin On 21 Gen, 11:04, Stefan Paschke symfony.pasc...@gmail.com wrote: Hello migrating my project to 1.3 / 1.4, I just noticed sfPropelParanoidBehaviorPlugin is not working any more. I tried

[symfony-users] Re: Best way to get 2 cache versions : anonymous / authenticated users

2010-01-18 Thread Massimiliano Arione
On 18 Gen, 10:05, Nicolas CHARLOT nicolas.char...@gmail.com wrote: I need to store 2 versions of a same action depending on user status (authenticated and member or not). The solution I founded was to write my own viewCacheManager: It works but all actions are cached twice and it's not

[symfony-users] Re: sfWidgetFormJQueryDate option format is no longer supported in version 1.1.1?

2010-01-13 Thread Massimiliano Arione
On 12 Gen, 14:40, dziobacz aaabbbcccda...@gmail.com wrote: Massimiliano maybe you could create a plugin from your solution and place it here:http://www.symfony-project.org/plugins/? :) I don't think a symfony plugin makes sense. Consider that my solution is a *pure-javascript* one. There's no

[symfony-users] Re: sfWidgetFormJQueryDate option format is no longer supported in version 1.1.1?

2010-01-12 Thread Massimiliano Arione
On 12 Gen, 07:57, dziobacz aaabbbcccda...@gmail.com wrote: I would like to use also format in sfWidgetFormJQueryDate in symfony 1.4. Here is my ticket:http://trac.symfony-project.org/ticket/8093#preview You can give there your suggestions so maybe fabien faster solve this problem. What is

[symfony-users] Re: Offbeat: open source vs closed source technologies

2010-01-08 Thread Massimiliano Arione
I think the major point is: a closed product is depending on a company. if that company decides to stop support, or do any else bad decistion, you're finished. With open source, you can at last do it yourself, but also (and better) pay any other company or single developer to help you. In a closed

[symfony-users] Re: sfWidgetFormJQueryDate option format is no longer supported in version 1.1.1?

2010-01-07 Thread Massimiliano Arione
Tom, I fixed the layout issue. Thanks for reporting it. Massimiliano On 5 Gen, 19:38, Tom Ptacnik to...@tomor.cz wrote: I wanted to add a link to a printscreen to imageshack (with your datepicker in Opera), but when I add a link into this reply window it show me an error that I can't post

[symfony-users] Re: sfWidgetFormJQueryDate option format is no longer supported in version 1.1.1?

2010-01-05 Thread Massimiliano Arione
/ and I would need dd/mm/ ( Date.format = 'dd.mm.'; is included in date_de.js ) On 31 Dez. 2009, 17:01, Massimiliano Arione garak...@gmail.com wrote: Forget sfWidgetFormJQuery and try this full-javascript solution:http://garakkio.altervista.org/datepicker/ On 29 Dic, 13:58, axel

  1   2   >