Re: [symfony-users] Versionable behavior not working for Doctrine query

2011-06-09 Thread Gábor Fási
Doctrine's Versionable behavior has no dql update listener. Retrieve the BankUser object first, update and save that and it'll work. On Thu, Jun 9, 2011 at 06:47, Raju yadavrajesh25j...@gmail.com wrote: hi , versionable not working on this query  public function

Re: [symfony-users] Re: Versionable behavior not working for Doctrine query

2011-06-09 Thread Gábor Fási
;  $a-set('bank_name', 'yadav')  -save(); its insert a new record and make its version also, how can i make a versional listener for dql. On Jun 9, 2:53 pm, Gábor Fási maerl...@gmail.com wrote: Doctrine's Versionable behavior has no dql update listener. Retrieve the BankUser object first

Re: [symfony-users] Multiple projects, changing the httpd.conf file

2011-06-05 Thread Gábor Fási
The following is how I set up a new project. The steps are for linux, but the same logic was applicable on windows when I last checked. First, edit /etc/hosts (IIRC it's somewhere under c:\windows with the same name) to add a new domain: 127.0.0.1 projectname.local Edit httpd.conf to add a

Re: [symfony-users] Strange routing

2011-05-30 Thread Gábor Fási
Enable mod_rewrite. -- mrl On Sun, May 29, 2011 at 12:11, Michele Pierri michele442-symf...@yahoo.it wrote: Hi, I have this routing file: # You can find more information about this file on the symfony website: # http://www.symfony-project.org/reference/1_4/en/10-Routing # default rules

Re: [symfony-users] Doctrine build-model problem

2011-05-30 Thread Gábor Fási
Show us your schema.yml. -- mrl On Sun, May 29, 2011 at 02:11, Nabil Karous karous1na...@gmail.com wrote: Hi I have problem with symfony Doctrine : build-model  help please -message ERREUR doctrine  generating model classes file+    

Re: [symfony-users] Doctrine or Propel

2011-05-26 Thread Gábor Fási
Doctrine. It's the default ORM since 1.3, and it's easier for a beginner. --mrl On Thu, May 26, 2011 at 11:34, jlassi zied jlassi.z...@gmail.com wrote: Hi , I'am newer in symfony and I want to know with wich ORM to develop ? doctine or propel ? Thanks . -- If you want to report a

Re: [symfony-users] how to check if email address existed in db

2011-05-23 Thread Gábor Fási
Two points: - you're trying to overwrite the existing validator of the email field - as the error message says: sfValidatorPropelUnique may only be used as a post validator. Here's an example: $this-validatorSchema-setPostValidator( new sfValidatorPropelUnique(array( throw_global_error =

Re: [symfony-users] How to overload the method which load the values in an edit form ?

2011-05-11 Thread Gábor Fási
Overwrite the updateDefaultsFromObject function. http://trac.symfony-project.org/browser/branches/1.4/lib/plugins/sfDoctrinePlugin/lib/form/sfFormDoctrine.class.php#L254 On Tue, May 10, 2011 at 13:46, Vincent B. vincent.bounho...@gmail.com wrote: Hi, I work with Symfony 1.4. I try to find a

Re: [symfony-users] letter

2011-05-08 Thread Gábor Fási
http://www.doctrine-project.org/projects/orm/1.2/docs/manual/behaviors/en On Sat, May 7, 2011 at 11:02, salmyke salm...@live.fr wrote: when I red the documentation in symfony day I fin actAs: { Timestampable: ~ } realy I didn't know what is the rol of this property in symfony 1.4 -- If you

Re: [symfony-users] cronjob not working

2011-05-06 Thread Gábor Fási
Not sure what you have in your crontab right now, but in your original post you have a 'root' between the time and the command, and that's causing the problem - remove it and you'll be fine. Keep in mind that the command is run as the user who's crontab it is in - guess you want to run it as

Re: [symfony-users] How to access the view context from model?

2011-05-05 Thread Gábor Fási
I assume you're using sf1. Use `sfConfig::get(sf_web_dir)` to get the webroot directory. On Thu, May 5, 2011 at 20:43, theinterned ned...@gmail.com wrote: Hi, I am trying to read the contents of a public directory from my Model. Currently I am doing this: public function getFiles() {    

Re: [symfony-users] Re: [symfony2] set magic_quotes_gpc to off on home level ?

2011-05-02 Thread Gábor Fási
By the time your script starts running, the variables are already escaped, so that ini_set won't help. On Mon, May 2, 2011 at 16:27, Carl carl.par...@gmail.com wrote: Dang, that's a shame that disabling it in your .htaccess file doesn't do the trick. I was hoping it would work since that's the

Re: [symfony-users] permissions issue please help

2011-04-20 Thread Gábor Fási
You may need root rights to change the permissions. On debian prefix the command with `sudo`, on gentoo you'll need to `su` first, others I don't know. On Wed, Apr 20, 2011 at 16:02, Helloise Smit helloi...@miranetworks.net wrote: i run ./symfony project:permissions then get: Permissions on

Re: [symfony-users] symfony propel:build-model - Giving Error

2011-04-19 Thread Gábor Fási
Make sure you have enabled the xslt php module and restarted apache. On Apr 19, 2011 11:27 AM, Kush kushagra...@gmail.com wrote: Hi, We have installed apache friends xampp - 1.7.4 but we are getting the below error in build-model command C:\xampp\htdocs\workspace\smssymfony

Re: [symfony-users] Problem with sfWidgetFormI18nChoiceCurrency

2011-04-15 Thread Gábor Fási
Starting from 1.3, all content passed from the action to the view gets automatically escaped - including that field of your. Gets wrapped in an sfOutputEscaperObjectDecorator instance. I believe it works just like when doctrine objects get passed to the view, you can get the unescaped data with

Re: [symfony-users] Re: Aw: riddle me this

2011-04-15 Thread Gábor Fási
It is yet to be released as stable. On Apr 15, 2011 10:28 PM, violyn coyotenefari...@gmail.com wrote: I am using PR6 now... a thanks I see what you are saying. I thought though that Symfony 2 was released -- was that retracted? -- If you want to report a vulnerability issue on symfony,

Re: [symfony-users] Route not working when POST

2011-04-12 Thread Gábor Fási
By default sfPropelRoute is only accessible by get. Add this after param: requirements: sf_method: [get, post] and it shall work. On Tue, Apr 12, 2011 at 13:25, coviex cov...@gmail.com wrote: Hi, How could this route --- profile:  url: /profile/:login/*  class: sfPropelRoute  options:

Re: [symfony-users] how to revert back to previous vs of symfony??

2011-04-12 Thread Gábor Fási
If you install symfony via pear it's system-global. If you want to keep different version for each project, do an svn checkout in the projectroot/lib/vendor/symfony folder. Each release can be found in /tags on svn. On Tue, Apr 12, 2011 at 13:41, Helloise Smit helloi...@miranetworks.net wrote: I

Re: [symfony-users] how to revert back to previous vs of symfony??

2011-04-12 Thread Gábor Fási
Go to projectroot/lib/vendor, remove your current symfony directory (which is most probably a symlink), then do svn export http://svn.symfony-project.com/tags/RELEASE_1_4_2/ symfony On Tue, Apr 12, 2011 at 15:56, Helloise Smit helloi...@miranetworks.net wrote: i managed to revert back to

Re: [symfony-users] how to revert back to previous vs of symfony??

2011-04-12 Thread Gábor Fási
It's not in the webroot, but in your project's root folder. On Tue, Apr 12, 2011 at 16:08, Helloise Smit helloi...@miranetworks.net wrote: i dont have a lib/vendor so i should first: ...webroot$ mkdir /lib/vendor                   cd lib/vendor ...webroot/lib/vendor$ svn export

Re: [symfony-users] Re: how to revert back to previous vs of symfony??

2011-04-12 Thread Gábor Fási
That command creates a symfony directory and puts sf1.4.2 there - to undo, you just need to remove the newly created symfony folder. On Tue, Apr 12, 2011 at 17:30, Helloise Smit helloi...@miranetworks.net wrote: thank you very much but for now i need to undo: ...webroot/lib/vendor$ svn export

Re: [symfony-users] how to include footer

2011-04-05 Thread Gábor Fási
This should be working. Show us the relevant parts of both files. On Tue, Apr 5, 2011 at 03:34, Laxmi laxmipsa...@gmail.com wrote: I tried to include footer below  ?php  echo $sf_content ? using include_slot('footer'), Where i defined slot in a module called home/ indexsuccess.php. but i did

Re: [symfony-users] Re: how to include footer

2011-04-05 Thread Gábor Fási
/a           a class=footer_link href=Company/a ?php end_slot();? Thanks for your reply On Apr 4, 11:51 pm, Gábor Fási maerl...@gmail.com wrote: This should be working. Show us the relevant parts of both files. On Tue, Apr 5, 2011 at 03:34, Laxmi laxmipsa...@gmail.com wrote: I tried to include footer below

Re: [symfony-users] Re: Fatal error: Call to a member function getprenom() on a non-object

2011-03-31 Thread Gábor Fási
Var_dump $utilisateur. Judging from the message doctrine doesn't find a matching record, thus returns false. Also check the query that is run. On Mar 31, 2011 12:20 PM, mohamed sabri ben sassi mohamedsabri.bensa...@gmail.com wrote: its the same thing i wont work have you an other solution

Re: [symfony-users] Re: Fatal error: Call to a member function getprenom() on a non-object

2011-03-31 Thread Gábor Fási
: help 2011/3/31 mohamed sabri ben sassi mohamedsabri.bensa...@gmail.com its correct s 2011/3/31 Gábor Fási maerl...@gmail.com Var_dump $utilisateur. Judging from the message doctrine doesn't find a matching record, thus returns false. Also check the query

Re: [symfony-users] MP4 mime type sfValidatorFile troubles with IE6

2011-03-31 Thread Gábor Fási
Check what mime type is sent by IE. You can use wireshark, or do a quick n' dirty die(var_dump($_FILE)) in your action. On Mar 31, 2011 8:35 PM, _kud kud.g...@gmail.com wrote: Hello, I've some troubles with IE6 (oh, really?), I'd like to validate my mp4 uploaded file but sf 1.4 answers me it's

Re: [symfony-users] shows only id not the name-string

2011-03-29 Thread Gábor Fási
Create the __toString() function in your City class. On Tue, Mar 29, 2011 at 19:42, -Jab- jabirah...@gmail.com wrote: i have relation set as http://pastebin.com/L9J1z36m but on the add page it only shows ids and not names in the drop down it shows 1,2 where as i expect the city names not sure

Re: [symfony-users] Variable set in action empty inside view.

2011-03-17 Thread Gábor Fási
Does the web debug bar show $js as being passed to the view? What does `var_dump($js)` echo? On Thu, Mar 17, 2011 at 05:34, Joeline Becker xxxtenderloving...@googlemail.com wrote: Hello, I have something like this in my actions.class.php public function executeIndex(sfWebRequest $request)  

Re: [symfony-users] Problem with Sending an email with a task

2011-03-17 Thread Gábor Fási
You sure you meant dmContext, and not sfContext? 2011/3/17 Philippe Mangé phili...@magicmanage.be: Hi all, I am having the following error: PHP Catchable fatal error:  Argument 1 passed to dmContext::createInstance() must be an instance of sfApplicationConfiguration, instance of

Re: [symfony-users] Question about a .css file that is not loaded in all the pages of the backend.

2011-03-14 Thread Gábor Fási
Do you have include_stylesheets in your layout? Any of your view.ymls contain a [-background] directive? On Mon, Mar 14, 2011 at 12:03, Javier Garcia tirengar...@gmail.com wrote: Hi, I have this file apps/backend/config/view.yml. default:  http_metas:    content-type: text/html  metas:  

Re: [symfony-users] How to add sorting options to relationship accessors

2011-03-12 Thread Gábor Fási
You can add orderBy to your relation definition like this: Gallery: columns: title: string(255) relations: Images: local: id foreign: gallery_id foreignAlias: Gallery type: many orderBy: position taken from

Re: [symfony-users] sfWidgetFormDate default date not working

2011-03-08 Thread Gábor Fási
Symfony's going to interpret it via strtotime[1], so use a format it understands, like Y-m-d. Alternatively, you can pass a unix timestamp there. [1] http://trac.symfony-project.org/browser/branches/1.4/lib/widget/sfWidgetFormDate.class.php#L73 On Mon, Mar 7, 2011 at 20:00, GaB

Re: [symfony-users] How to change default sfValidatorString max length message?

2011-03-06 Thread Gábor Fási
Just a tip, but won't `sfValidatorBase::setDefaultMessage(max_length, whatever)` work? This is how I set default required and invalid messages in my project configuration class. On Tue, Jan 18, 2011 at 18:47, Basil Hussain basil.huss...@experience-engine.co.uk wrote: I have a couple of forms

Re: [symfony-users] Remember: how to create a Doctrine project in symfony 1.2?

2011-03-02 Thread Gábor Fási
Remember has nothing to do with it, when you have the documentation. public function setup() { $this-enablePlugins(array('sfDoctrinePlugin')); $this-disablePlugins(array('sfPropelPlugin')); } On Wed, Mar 2, 2011 at 10:29, Javier Garcia tirengar...@gmail.com wrote: Hi, someone can remember

Re: [symfony-users] Form widgets

2011-02-24 Thread Gábor Fási
That's not the case anymore in 1.3 and 1.4. The default autoloader in debug mode became sfAutoloadAgain[1], which reloads the class cache if you're trying to load a nonexistent class. [1]

Re: [symfony-users] I get a 500 instead of a 404

2011-02-23 Thread Gábor Fási
Public is only usable within class context - you're missing the `class defaultActions extends sfActions` line and the connecting brackets. On Wed, Feb 23, 2011 at 17:00, Manu emmanuel.parf...@gmail.com wrote: Hi, I've created custom 404 error pages for my symfony application, but they don't

Re: [symfony-users]

2011-02-23 Thread Gábor Fási
Did you edit the file? The version in svn [1] has __toString at a different place, and without arguments. [1] http://trac.symfony-project.org/browser/plugins/DbFinderPlugin/trunk/lib/sfModelFinder.php On Wed, Feb 23, 2011 at 19:13, Maryam FATIHI maryam.e...@gmail.com wrote: Hi everybody! I'm

Re: [symfony-users] Is sfWidgetFormPropelChoiceMany class deprecated in sf 1.4?

2011-02-21 Thread Gábor Fási
sfWidgetFormPropelChoice, with multiple=true. That's only what ~Many did anyway. On Mon, Feb 21, 2011 at 16:46, Javier Garcia tirengar...@gmail.com wrote: Hi, is sfWidgetFormPropelChoiceMany class deprecated? why? what class should i use? Javier -- If you want to report a vulnerability

Re: [symfony-users] Re: [Symfony2] Executing code before the controller action was called

2011-02-15 Thread Gábor Fási
if I find a solution. On Feb 14, 3:13 pm, Gábor Fási maerl...@gmail.com wrote: This is exactly what the Advanced Routing chapter of the More with symfony book is about:http://www.symfony-project.org/more-with-symfony/1_4/en/02-Advanced-R... -- If you want to report a vulnerability issue

Re: [symfony-users] [Symfony2] Executing code before the controller action was called

2011-02-14 Thread Gábor Fási
This is exactly what the Advanced Routing chapter of the More with symfony book is about: http://www.symfony-project.org/more-with-symfony/1_4/en/02-Advanced-Routing On Mon, Feb 14, 2011 at 19:12, Nikita Korotaev websir...@gmail.com wrote: Hi everyone, I would like to to make a some kind of a

Re: [symfony-users] save() - doctrine saving or updating record

2011-02-12 Thread Gábor Fási
$this-isNew() On Sat, Feb 12, 2011 at 19:23, introvert aljaz.faj...@gmail.com wrote: Hello, I want to override save() function for my model. Is there any way to know if the function being called to INSERT new or UPDATE the existing record? Thanks for help -- If you want to report a

Re: [symfony-users] Question about sfOutputEscaperArrayDecorator

2011-02-07 Thread Gábor Fási
It is useful to prevent html injection (and a few similar) attacks. Imagine the following: someone registers as h1username/h1, and then you create a user list page. If you'd simply output the name, his name would be quite big, but with symfony's output escaping simply echoing `$user-username` is

Re: [symfony-users] Form problems

2011-02-07 Thread Gábor Fási
Try using sfValidatorDate. Here's a working example (you'll need to adapt the format): new sfValidatorDate(array(date_format = '~(?Pyear\d{4})\.(?Pmonth\d{2})\.(?Pday\d{2})~'))); On Mon, Feb 7, 2011 at 18:41, StephaneQ stephanequan...@gmail.com wrote: Hello, I have 2 problems with a custom

Re: [symfony-users] [Symfony2] need sample use FileField to file upload

2011-02-02 Thread Gábor Fási
Your form is missing the enctype attribute. On Wed, Feb 2, 2011 at 16:04, stfalcon stepan.tanasiyc...@gmail.com wrote: In my symfony2 sample project https://github.com/stfalcon/portfolio I need upload screenshots to projects. I try use FileField and debug him. But can't get it to work... I

Re: [symfony-users] is it possible to have security set at the application level?

2011-02-01 Thread Gábor Fási
apps/appname/config/security.yml? On Tue, Feb 1, 2011 at 21:53, matt lawre...@thesecondroad.org wrote: Writing a lot of security.yml files for each module seems tedious. I've got 20 modules and they all need some security settings. Is there a way to set all this info at the application level?

Re: [symfony-users] Web page text content i18n

2011-01-30 Thread Gábor Fási
Xliff dictionaries are cached as php arrays, pretty hard to beat that. On Jan 31, 2011 12:23 AM, Pau Peris sibok1...@gmail.com wrote: hi, to handle web page text content translation (i18n) on a web page is it always recommended to use xliff dictionaries or ddbb storage? To handle i18n on a web

Re: [symfony-users] Re: German umlauts not retrieved correctly from db

2011-01-27 Thread Gábor Fási
: 10    * Benutzer: root@localhost    * MySQL-Zeichensatz: UTF-8 Unicode (utf8) Any idea? Do you know where to set the charset/collation using Symfony 2? regards Peter On 23 Jan., 16:12, Gábor Fási maerl...@gmail.com wrote: How do you insert the data? Do they look correct in phpmyadmin

Re: [symfony-users] German umlauts not retrieved correctly from db

2011-01-23 Thread Gábor Fási
How do you insert the data? Do they look correct in phpmyadmin, after making sure it uses utf8-encoded connection? On Sun, Jan 23, 2011 at 15:59, pzwosta peter.zwo...@gmx.de wrote: Hi, using Doctrine German Umlauts are not retrieved correctly from database. - My database is defined with

Re: [symfony-users] I recently upgraded to a new install.

2011-01-20 Thread Gábor Fási
1.4 includes swiftmailer, 1.2 did not, so the programmer most likely installed it as a plugin. Disable that plugin and update your mail-related code to use the built-in method. For details, check the mailer chapter of the book. On Jan 19, 2011 6:56 PM, Llew melinko2...@gmail.com wrote: -- If you

Re: [symfony-users] Remember checkbox sfGuardAuth

2011-01-19 Thread Gábor Fási
Did you set up the remember me filter? On Tue, Jan 18, 2011 at 13:03, sinu govind sinugov...@gmail.com wrote: Hi, I am using the sfForkedDoctrineApplyPlugin and in my layout.php I have the following to display the sfGuardAuth signin form echo get_component('sfGuardAuth', 'signin_form');

Re: [symfony-users] I18n does not encode special chars - W3C validation fails

2011-01-18 Thread Gábor Fási
In xml you also need to strore it encoded - so when you store amp; in the xml, it comes out as a simple amperstand on the other end. If you need an encoded one in your output, you need to double-encode it in the xml: amp;amp;. On Mon, Jan 17, 2011 at 16:01, chrigu eber...@gmail.com wrote: Hi

Re: [symfony-users] Save the output of a task.

2011-01-11 Thread Gábor Fási
You also need to redirect the stderr: task foo.txt 21 this redirects it to the stdout, so it gets logged to the same file. On Tue, Jan 11, 2011 at 15:56, Javier Garcia tirengar...@gmail.com wrote: Hi, i have a long error message when i execute a task. In order to save the output i'm

Re: [symfony-users] Doctrine i18n Choice Widget

2011-01-10 Thread Gábor Fási
Implement the __toString() function in the zodiac class. On Sun, Jan 9, 2011 at 05:11, Nils Abegg nils.ab...@googlemail.com wrote: Hey Guys, i have the following schema.yml and i want to get the zodiac sign ID as a selectbox with the zodiac signs in the users language. But i only get the

Re: [symfony-users] - Symfony 1.4.8 - Problems with a redirect() inside of a try...catch construct in action code

2011-01-10 Thread Gábor Fási
Creating your own exception class is the best way, but I'd still like to add this alternative: using multiple catch bocks after a try: try { //your stuff } catch (sfStopException $e) { throw $e; //rethrowing it, nothing else to do } catch (Exception $e) { //handle error } On Mon, Jan 10,

Re: [symfony-users] Question about fixtures: the object is not defined in your data file.

2011-01-10 Thread Gábor Fási
Be careful, the YAML parser won't like you if you mess up with Indentation. Keep in mind the following simple tips when adding PHP code to a YAML file: * The ?php ? statements must always start the line or be embedded in a value. * If a ?php ? statement ends a line, you need to explicly

Re: [symfony-users] How to include a form in a template in every page?

2011-01-07 Thread Gábor Fási
This is what components are for. Here's an example from jobeet: http://www.symfony-project.org/jobeet/1_4/Doctrine/en/19#chapter_19_language_switching On Fri, Jan 7, 2011 at 07:33, Eric B ebenza...@gmail.com wrote: Hi, This may sound like a newbie question, but I just can't figure out the

Re: [symfony-users] I18n format_date() in task

2010-12-28 Thread Gábor Fási
Try passing the culture parameter. function format_date($date, $format = 'd', $culture = null, $charset = null) On Tue, Dec 28, 2010 at 11:20, hribo hribo...@gmail.com wrote: Hi all, I want to use cron to send email by using symfony task, in symfony 1.4.9 My email is i18n mail and should be

Re: [symfony-users] confirm message on submit

2010-12-26 Thread Gábor Fási
You will need javascript, if you want a confirm box before submitting. And by the way: submit_tag also used JS. On Sun, Dec 26, 2010 at 12:58, jimpass cedricd...@gmail.com wrote: Hi, I'd like to have a confirm dialog box when i submit my form , something like this : ?php echo

Re: [symfony-users] best way to hide form fields in front_end based on credentials?

2010-12-20 Thread Gábor Fási
Inject the user in the form's constructor via the $options parameter, use that in the configure() function. On Mon, Dec 20, 2010 at 16:27, Stan McFarland sfmc...@gmail.com wrote: Hi, I guess the subject says it all.  :)  Looking for suggestions as to how best to hide specific form fields (not

Re: [symfony-users] Symfony page executed twice

2010-12-19 Thread Gábor Fási
Make sure you have no images with an empty src attribute. In a similar was also check css and js includes. On Thu, Dec 16, 2010 at 22:28, Norman peinorman...@gmail.com wrote: Hi, I have a counter incremented each time an object is printed on a page. I realized that this counter is always

Re: [symfony-users] Symfony 1.2

2010-12-05 Thread Gábor Fási
Not that I know of. Symfony was supposed to run with magic_quotes off anyway. On Sun, Dec 5, 2010 at 12:55, JohanE johan.a.edl...@gmail.com wrote: Hi! I'm running symfony 1.2.10 on an Ubuntu server. I upgraded the php version recently to 5.3. The system seems to run ok.. However, do you

Re: [symfony-users] Symfony 1.4 + Doctrine + OCI8

2010-12-02 Thread Gábor Fási
You cannot. Doctrine is built on top of PDO. On Thu, Dec 2, 2010 at 18:08, Vikos make.webp...@gmail.com wrote: Hi Guys! I need to use Oracel 10g XE in my current project (Symfony 1.4 doctrine 1.2). I configured it well to use pdo_oci.. but the it has lot bugs... especially in CLOB

Re: [symfony-users] Creating a cron job script

2010-11-29 Thread Gábor Fási
Create a task, and run that from your cronjob. http://www.symfony-project.org/gentle-introduction/1_4/en/16-Application-Management-Tools#chapter_16_sub_custom_tasks On Wed, Nov 17, 2010 at 02:32, DrFrow drf...@gmail.com wrote: I am wanting to run a daily import script for my symfony site, what

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

2010-11-23 Thread Gábor Fási
Provided that he knows the link, yes. Hiding the button does not mean your action is inaccessible. On Tue, Nov 23, 2010 at 10:45, Manu emmanuel.parf...@gmail.com wrote: Thanks, that was what I was looking for. Why do you need to forward404() on new and delete ? Could someone still execute those

Re: [symfony-users] Version control override/extend feature

2010-11-12 Thread Gábor Fási
You can check out an svn repository with git, add a new remote (I believe it has to be git), and then pull the changes from the original svn, and commit to the new git repo. On Thu, Nov 11, 2010 at 11:25, klemens_u klem...@ull.at wrote: Hi everyone, I've got a dev-workflow question for you:

Re: [symfony-users] Re: several parallel requests from one client?

2010-11-02 Thread Gábor Fási
sfSessionStorage has a shutdown() function [1] that calls session_write_close(), but it does not get called in sfUser's shutdown(), so as far as I can see, in 1.4 you need to call session_write_close() manually. [1]

Re: [symfony-users] Stylesheets issue

2010-11-02 Thread Gábor Fási
You're looking for `use_stylesheet()`. `include_stylesheets()` outputs the link/ tags for all the css files in your view.yml and `use_stylesheet()` calls. On Tue, Nov 2, 2010 at 23:18, xpanshun srhen...@gmail.com wrote: Hi all, It seems that my pages only want to use the main.css stylesheet

Re: [symfony-users] several parallel requests from one client?

2010-11-01 Thread Gábor Fási
This is a session issue. While a request is being processed, others from the same client (same sessionid) are held back to prevent simultaneous output to the session storage. In php, you can use session_write_close() to tell when you're finished writing to the session array (and php will start

Re: [symfony-users] Re: several parallel requests from one client?

2010-11-01 Thread Gábor Fási
http://trac.symfony-project.org/browser/branches/1.4/lib/user/sfUser.class.php#L285 It does not call session_write_close(). On Mon, Nov 1, 2010 at 12:54, Gareth McCumskey gmccums...@gmail.com wrote: $this-getUser()-shutdown() == session_write_close(); No need for both :) On Mon, Nov 1, 2010

Re: [symfony-users] Display html tags from table

2010-10-31 Thread Gábor Fási
That's because symfony escapes the data you pass to the view. If you want to display it as it is stored in the DB, use echo $dias-getDescription(ESC_RAW); http://www.symfony-project.org/gentle-introduction/1_4/en/07-Inside-the-View-Layer#chapter_07_output_escaping On Sun, Oct 31, 2010 at

Re: [symfony-users] action names and forms

2010-10-27 Thread Gábor Fási
Do you mean you wish to change the 'index' and 'show' part, or the 'Success' part? The first one comes from the action's name, as long as you rename the function in the actions.class.php file, you can rename the file. The second part comes from your action's return value, Success is the default,

Re: [symfony-users] Re: return view as pdf.

2010-10-22 Thread Gábor Fási
I am using mPDF to do this. 2010/10/22 José Regalado djd...@gmail.com: On 22 oct, 12:36, catchamonkey ch...@sedlmayr.co.uk wrote: Hi, There is a discussion going on currently.http://groups.google.com/group/symfony-users/browse_thread/thread/f73... yep... This is good, but my hosting

Re: [symfony-users] Credentials: is there any difference between [[ ]] and [] ?

2010-10-19 Thread Gábor Fási
The difference comes when you have multiple credentials: [c1, c2] means the user must have both c1 and c2 [[c1, c2]] means the user must have at least one of c1 and c2 but there's no diff between [admin] and [[admin]]. On Tue, Oct 19, 2010 at 11:53, Javier Garci tirengar...@gmail.com wrote:  

Re: [symfony-users] images no appears

2010-10-04 Thread Gábor Fási
Instead of hardcoding the urls, use the `image_path()` helper, example: `image_path('icon-home.gif')`. 2010/10/3 ahmed shehata a7med.she7...@gmail.com: hi all i am a new SF student and i am developping a sample app there is a problem when i try to to show the page the problem is that images

Re: [symfony-users] gettable find return value

2010-09-26 Thread Gábor Fási
if ( $rating = Doctrine::getTable($tableName)-find($request-getParameter('contentid'))) { //we have results } else { //no results } On Sun, Sep 26, 2010 at 09:34, Shihab KB shiha...@gmail.com wrote: Hi All, I am writing a code to find records from a table by using the following

Re: [symfony-users] linik trouble

2010-09-23 Thread Gábor Fási
The url_for() helper is environment-aware - it means that it will echo the correct url for your current environment. In your case, you echoed a link for the 'user' application in the 'dev' environment, that's why the url included the user_dev.php filename. If that was your first application in the

Re: [symfony-users] sfDoctrineGuard Problem with data-dump and data-load

2010-09-16 Thread Gábor Fási
http://oldforum.symfony-project.org/index.php/m/83831/ On Thu, Sep 16, 2010 at 16:26, Dirk Conzelmann i...@dirk-conzelmann.de wrote: Ok now I found an explanation - the password is encrypted twice. Any idea how to prevent the double encryption? On 09/16/2010 04:11 PM, Dirk Conzelmann wrote:

Re: [symfony-users] Re: deploy on cPanel shared host

2010-09-12 Thread Gábor Fási
developed my project based on the .tgz installation method. is there any way to easily convert it to a PEAR installation? On Sep 4, 7:07 pm, Gábor Fási maerl...@gmail.com wrote: If you check the last mod of that page, you'll see it was 2 years ago. Back then installing via pear was the recommended

Re: [symfony-users] Re: Connection to MS sql server

2010-09-10 Thread Gábor Fási
What's the error message? Did you try the dblib driver? Quote from the php manual: The DSN prefix is sybase: if PDO_DBLIB was linked against the FreeTDS libraries, mssql: if PDO_DBLIB was linked against the Microsoft SQL Server libraries, or dblib: if linked against any other variety of DB-lib.

Re: [symfony-users] Re: How to remove send.x and send.y parameters from GET url?

2010-09-09 Thread Gábor Fási
You can disable CSRF protection on an individual form by passing false as the constructor's third parameter. Send.x and send.y are sent by the browser to indicate where the user clicked the image. On Thu, Sep 9, 2010 at 21:10, ScherlOMatic stefan.scherbich...@gmail.com wrote: You are right. I'm

Re: [symfony-users] Left Join - Column same name

2010-09-09 Thread Gábor Fási
getName will return the name of the object that belongs to the peer you called doSelect on. $articles = ArticlePeer::doSelectJoinCategory(new Criteria()); foreach ($articles as $article) { echo $article-getName(); //echoes the name of the article echo $article-getCategory()-getName();

Re: [symfony-users] Problems after adding standard_helpers: [I18N] in settings.yml

2010-09-02 Thread Gábor Fási
Add the Partial helper to the list. On Thu, Sep 2, 2010 at 12:19, Javier Garcia tirengar...@gmail.com wrote: Hi, i have added the line below in settings.yml.     standard_helpers:   [I18N] After that, when i load a page i get this message: Fatal error: Call to undefined function

Re: [symfony-users] Re: IE8 and isXmlHttpRequest

2010-09-01 Thread Gábor Fási
If you check the code of isXmlHttpRequest, you'll see it is very simple: return ($this-getHttpHeader('X_REQUESTED_WITH') == 'XMLHttpRequest'); So check if your javascript code sets that header, also check if it actually gets sent. On Wed, Sep 1, 2010 at 12:11, HAUSa

Re: [symfony-users] Re: IE8 and isXmlHttpRequest

2010-09-01 Thread Gábor Fási
this header to the request automatically, I don't know if its done using plain javascript. I once had this issue using mootools but it was a bug in our JS code overwriting all http header instead of adding the needed one, and not a symfony bug. Regards -Original Message- From: Gábor

Re: [symfony-users] [sf1.4][sfDoctrinePlugin] Sluggable canUpdate=false does not work as expected

2010-08-27 Thread Gábor Fási
canUpdate means: if the sluggable field changes, should the slug change as well, or stay the original? Obviously you can still edit it manually. On Fri, Aug 27, 2010 at 16:12, Cyrille37 cyrill...@gmail.com wrote: Hello, I've just starting to use the Sluggable behavior and set it with

Re: [symfony-users] Re: Send Mails

2010-08-24 Thread Gábor Fási
That means it is not properly configured - no wonder you cannot send emails. The message says that your smtp server needs encryption, most probably the same applies for authentication. Check its manual how to set it up. On Tue, Aug 24, 2010 at 09:43, vero vegoi...@alumni.uv.es wrote: And I use a

Re: [symfony-users] Re: Send Mails

2010-08-24 Thread Gábor Fási
, 2010 at 14:48, vero vegoi...@alumni.uv.es wrote: It's impossible. I don't know how send an email at all. I have tried everything but no email arrive to inbox. I will have to decided what to do in that part of my project. Thanks to all for trying to help me. On 24 ago, 09:51, Gábor Fási maerl

Re: [symfony-users] Problems when creating database

2010-08-24 Thread Gábor Fási
It means the password you entered is wrong. On Tue, Aug 24, 2010 at 17:44, Marcio Pozzato mspozz...@gmail.com wrote: Please, I can't create database through 'mysqladmin create jobeet -uroot -p', included at the Day 3 - Tutorial Symfony. MySql returns the following error message: connect to

Re: [symfony-users] using same template in different applications

2010-08-23 Thread Gábor Fási
Put it in a plugin. On Mon, Aug 23, 2010 at 16:07, axel at axel.zu...@gmail.com wrote: is it possible to use a template in several different applications of the same project? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You

Re: [symfony-users] creation tables MySql avec doctrine (Jobeet)

2010-08-20 Thread Gábor Fási
You need to enable the pdo and pdo_mysql modules in your php.ini. Keep in mind that your httpd and cli may use different ini files. On Fri, Aug 20, 2010 at 11:26, bibob olivier.bib...@cnfpt.fr wrote: Bonjour, au lancement de la commande : php symfony doctrine:insert-sql j'ai un message

Re: [symfony-users] schema modified but same old database

2010-08-19 Thread Gábor Fási
./symfony doctrine:clean-model-files On Thu, Aug 19, 2010 at 10:34, KEY5 key5...@gmail.com wrote: Hello, I have changed some things in the schema.yml and cleared cache ( both symfony cache:clear and symfony cc  :-D ) I've rebuilt the model, I've done symfony doctrine:build --sql yet the

Re: [symfony-users] Tuto Jobeet

2010-08-12 Thread Gábor Fási
They were created with Balsamiq mockups, http://www.balsamiq.com/products/mockups On Thu, Aug 12, 2010 at 17:12, Seb colladonsebast...@gmail.com wrote: Hy everyone, I have a little question about this tuto : http://www.symfony-project.org/jobeet/1_4/Doctrine/en/02 How do they do to make the

Re: [symfony-users] Question about form and redirect

2010-08-12 Thread Gábor Fási
That only applies to stuff like posting to a blog or a forum - when reloading the page does harm, for example by duplicating content. It is ok to not redirect in case of a search. On Thu, Aug 12, 2010 at 22:12, Stef stephane.bachel...@gmail.com wrote: On Wed, Aug 11, 2010 at 6:44 PM, Gábor

Re: [symfony-users] Question about form and redirect

2010-08-11 Thread Gábor Fási
Why don't you directly post your data to the search action? You can validate and do the search there. On Wed, Aug 11, 2010 at 18:06, Stef stephane.bachel...@gmail.com wrote: Hello, I have a search form which inherits from sfForm. When the form is post submitted it is validated then redirected

Re: [symfony-users] L18N helper not extracting strings in forms !

2010-08-09 Thread Gábor Fási
This is a known limitation of i18n:extract, it only works on templates. Also, you need not call __() on form stuff, they are automatically done. On Mon, Aug 9, 2010 at 19:49, Tristan tristan.bessou...@gmail.com wrote: Hello, i've followed an user advice with loading l18N helper this way :

Re: [symfony-users] The requested URL was not found on this server. ERROR

2010-08-09 Thread Gábor Fási
You need to enable mod_rewrite in your apache configuration. Besides enabling the module, you also need to allow using it in your VirtualHost configuration, with an AllowOverride directive. On Mon, Aug 9, 2010 at 22:38, el-sid sydneyari...@gmail.com wrote: hello, i am trying to test out how my

Re: [symfony-users] propel-build-model not making models

2010-07-29 Thread Gábor Fási
What's the output of the task? Also, use propel:build-model instead. On Thu, Jul 29, 2010 at 15:00, Siameseguy abdalra...@gmail.com wrote: Hi, im new to symfony and am running into a problem.  i have just built a schema and tried using the propel-build-model command, but its not creating

Re: [symfony-users] Simple Display Problem

2010-07-27 Thread Gábor Fási
Your email address doesn't come as 'email', it comes as 'formname[email]' - this is why you can bind with $request-getParameter($form-getName()). You might want to try `$form-getValue(email)`, it will return the cleaned email address. On Tue, Jul 27, 2010 at 21:31, Andro Fumero

Re: [symfony-users] sfGuardPlugin: checking username with regex

2010-07-26 Thread Gábor Fási
It works, your expression is wrong. Try '/^[a-zA-Z]{1,}[a-zA-Z0-9]$/'. On Mon, Jul 26, 2010 at 15:34, mlu...@gmail.com mlu...@gmail.com wrote: Hi! In my app i am using sfGuardPlugin. I have extended the class sfGuardUserForm to build my own registration form class. In the overridden

Re: [symfony-users] Re: latest verion of sfForkedDoctrineApplyPlugin is broken

2010-07-26 Thread Gábor Fási
Did you clear your cache? Did you rebuild your models? On Mon, Jul 26, 2010 at 15:06, Tristan tristan.bessou...@gmail.com wrote: it broke everything : even after removing the plugin, i stil have this message. -- If you want to report a vulnerability issue on symfony, please send it to

  1   2   3   4   >