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

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

[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

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

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

[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

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

[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 "s

[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

[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

[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

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

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

[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

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

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

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

[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

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

[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

[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

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

[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

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

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

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

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

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

[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

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

[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

[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);

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

[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

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

[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),

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

[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

[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

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

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

[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

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

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

[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

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

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

[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

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

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

[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

[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

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

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

[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

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

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

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

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

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

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

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

[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

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

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

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

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

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

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

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

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

[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

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

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

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

[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 wrote: > Ok my real schema is: > > estudiante: >      id: ~ >      nombres:                      { type: varchar(2

[symfony-users] Re: Invoice Model

2010-03-31 Thread Massimiliano Arione
$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 i

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

[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 wrote: > I have implemented this, but i

[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 wrote: > 2010/3/28 Antoine S. : > > > Hi, > > > You can refine the cache (cache.yml) at any level : application, > > module, action, component, partial >

[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 wrote: > Hi, > > i have an edit form with a choice widget with radio buttons. > > Symfony renders the options in a column, but

[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: 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 wrote: > Hi, > > these are my steps: > > - I have added this line to 'frontend/config/settings.yml' > > all: >    settings: >      default_culture:        es_ES > > - I

[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 wrote: > Hello everybody, > > I just want to apologize before starting explain my problem for my > english which can be bad. > > I have

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

[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 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'authentificat

[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 wrote: > Hello all, > I am currently migrating an app from Symphony 1.2 to 1.4 > I am using an s

[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 wrote: > I'm using Propel in Symfony 1.3.3.  If I have a database table named > 'myDatabaseTable' and would like the propel generated

[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 wrote: > If you want to make OR term in Propel, you need to make a Criterion > object that adds the OR terms to the Criteri

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

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

2010-03-12 Thread Massimiliano Arione
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 securit

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

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

2010-03-01 Thread Massimiliano Arione
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 cond

[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 wrote: > Hi all, >

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

[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 wrote: > Hi > > I have a table with unique index of 3 columns. So I use this: > >     $this->validatorSchema->setPostValidator( >       new sfValidatorPropelUnique(array('mod

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

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

  1   2   >