Re: [symfony-users] get form reference in post validator class

2011-06-19 Thread Gábor Fási
Not sure what you're trying to do - if you want to pass options, use the $options array in configure(). On Thu, Jun 16, 2011 at 19:24, Mohd Imran wrote: > Hi folks > > Is there any way to get the form reference object in custom post > validator class? > > > class myPostValidator extends sfValidat

Re: [symfony-users] Routing problem

2011-06-17 Thread Gábor Fási
This should help: http://www.symfony-project.org/more-with-symfony/1_4/en/02-Advanced-Routing On Thu, Jun 16, 2011 at 10:30, Noussan goumbetti wrote: > Hi Everybody, > > I develop a project on symfony and I need to associate a module : > "botte" > to a subdomain adress "botte.domain.com", somebod

Re: [symfony-users] Re: get object for edit the form

2011-06-17 Thread Gábor Fási
Instead of hard-coding, use $form->getName(): http://trac.symfony-project.org/browser/branches/1.4/lib/form/sfForm.class.php#L341 On Thu, Jun 16, 2011 at 19:03, Mohd Imran wrote: > Hey Gantulga, > > Thanks for reply. > > I don't want to pass the id value in URL. > > I have a form which contains t

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

2011-06-09 Thread Gábor Fási
 $a =new Bank; >  $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 wrote: >> Doctrine's Versiona

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 wrote: > hi , > > versionable not working on this query > > >  public function updateUserBankBranch($userid,$bank_branch_id){ >  

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 n

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 wrote: > Hi > I have problem with symfony Doctrine : build-model  help please > -message ERREUR >>> doctrine  generating model classes >>> file+     C:\Users\Nabil\AppData\Loca

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 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 > homepage: >   url:   / >

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

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-10 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. wrote: > Hi, > > I work with Symfony 1.4. > > I try to find a way to overload the met

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 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 want to re

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

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 wrote: > Hi, > > I am trying to read the contents of a public directory from my Model. > > Currently I am doing this: > > public function getFiles() > { >    $dir =

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 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 quickest and easiest

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 wrote: > i run ./symfony project:permissions > > then get: Permissions on the following file(s) coul

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" 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\sms>symfony propel:build-model >>> propel

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" 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, please send it to sec

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: 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 wrote: > thank you very much but for now i need to undo: > > ...webroot/lib/vendor$ svn export > http://svn.symfony-pr

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 wrote: > i dont have a lib/vendor so i should first: > ...webroot$ mkdir /lib/vendor >                   cd lib/vendor > ...webroot/lib/vendor$ svn export > http://svn.symfony-project.com/tags

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 wrote: > i managed to revert back to symfony 1.4.2 in traffic/phoenix

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 wrote: > I have a project directory:

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 wrote: > Hi, > > How could this route > --- > profile: >  url: /profile/:login/* >  class: sfPropelRoute >  options: { model:

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

2011-04-05 Thread Gábor Fási
ootersuccess.php which in home module > > >           About >           Contact >           Support >           Terms of Use >           Privacy Policy >           Company > > > Thanks for your reply > > On Apr 4, 11:51 pm, Gábor Fási wrote: >> This shoul

Re: [symfony-users] how to include footer

2011-04-04 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 wrote: > I tried to include footer below   using > include_slot('footer'), Where i defined slot in a module called home/ > indexsuccess.php. but i did not get any out put. please let me know > wh

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" 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 a wrong mime

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

2011-03-31 Thread Gábor Fási
.@gmail.com> wrote: > help > > 2011/3/31 mohamed sabri ben sassi > >> its correct soooo >> >> >> 2011/3/31 Gábor Fási >> >>> Var_dump $utilisateur. Judging from the message doctrine doesn't find a >>> matc

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] 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- 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 why > any idea >

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

2011-03-20 Thread Gábor Fási
; > Javier > > On Mar 14, 1:26 pm, Gábor Fási wrote: >> 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 wrote: >> > Hi, >> >> > I

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é : > 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 ProjectConfiguration given,

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 wrote: > Hello, > > > I have something like this in my actions.class.php > public function executeIndex(sfWebRequest $request) >  { >    $foo = new foo("nar")

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 wrote: > Hi, > > I have this file apps/backend/config/view.yml. > > default: >  http_metas: >    content-type: text/html > >  metas: >    #title:  

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 http://test.ical.ly/2010/09/30/did-you-know-tha

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

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 wrote: > I have a couple of forms with many sfValidatorString validato

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 wrote: > Hi, > > someone can remember how to create a

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] http://www.symfony-project.org/tutorial/1_4/en/whats-new#chapter_a2fae23c9403b0e9ec99806fccf6b53e_sub_sfautol

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 wrote: > Hi everybody! > I'm new to Symfony,and I

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 wrote: > Hi, I've created custom 404 error pages for my symfony application, > but they don't seem to work. In dev I see :

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 wrote: > Hi, > > is sfWidgetFormPropelChoiceMany class deprecated? why? what class > should i use? > > Javier > > -- > If you want to report a vulnerability issue on symfo

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

2011-02-15 Thread Gábor Fási
27;ll > let you know if I find a solution. > > On Feb 14, 3:13 pm, Gábor Fási 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... >> >>

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 wrote: > Hi everyone, > I would like to to make a some kind of a check before the co

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

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" => '~(?P\d{4})\.(?P\d{2})\.(?P\d{2})~'))); On Mon, Feb 7, 2011 at 18:41, StephaneQ wrote: > Hello, > > I have 2 problems with a custom form, which is not based on an ob

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 "username", 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 safe

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 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 found no examples or docs

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

2011-02-01 Thread Gábor Fási
apps//config/security.yml? On Tue, Feb 1, 2011 at 21:53, matt 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? > > -- > If you want to report

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" 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 page i18n table

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

2011-01-27 Thread Gábor Fási
sion: 5.1.49-community >    * Protokoll-Version: 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

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 wrote: > Hi, > > using Doctrine German Umlauts are not retrieved correctly from > database. > > - My database is defined with collation utf8 -

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" wrote: -- If you want to report a vu

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 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'); > > The register,

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 "&" 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: "&". On Mon, Jan 17, 2011 at 16:01, chrigu wrote: > Hi everybody, > > I'm usi

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 2>&1 this redirects it to the stdout, so it gets logged to the same file. On Tue, Jan 11, 2011 at 15:56, Javier Garcia wrote: > Hi, > > i have a long error message when i execute a task. In order to save > the output i'm writing "task > f

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 statements must always start the line or be embedded in a value. * If a statement ends a line, you need to explicly output a new l

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

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 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 > primary keys in the Select

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 wrote: > Hi, > > This may sound like a newbie question, but I just can't figure out the > "right" way of doin

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

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 wrote: > Hi, > I'd like to have a confirm dialog box when i submit my form , > something like this : sure?') ?> > >  it seems that i can't use t

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 wrote: > Hi, > > I guess the subject says it all.  :)  Looking for suggestions as to > how best to hide specific form fields (not in the backen

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 wrote: > Hi, > > I have a counter incremented each time an object is printed on a page. > I realized that this counter is always incremented of 2. In lo

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 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 guys know if there can

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 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 handling [insert, upda

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 wrote: > I am wanting to run a daily import script for my symfony site, what I > want is to s

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 wrote: > Thanks, that was what I was looking for. Why do you need to > forward404() on new and delete ? Could someone still execute those > actions even though th

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 wrote: > Hi everyone, > > I've got a dev-workflow question for you: > > Assume I w

Re: [symfony-users] Stylesheets issue

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

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] http://trac.symfony-project.org/browser/branches/1.4/lib/storage/sfSessionStorage

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 wrote: > $this->getUser()->shutdown() == session_write_close(); > No need for both :) > > On Mon, Nov 1, 2010 at 1:36 PM, axe

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 pro

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 03

Re: [symfony-users] action names and forms

2010-10-26 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, bu

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 : > On 22 oct, 12:36, catchamonkey 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 service is not able fot this. S

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 wrote: >  Hi, > > is there any d

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 : > 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 in html paage not a

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 wrote: > Hi All, > > I am writing a code to find records from a table by using the > following statement. > > $rating

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 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: >> >> Hi, >> i am hav

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

2010-09-12 Thread Gábor Fási
ed 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 wrote: >> If you check the last mod of that page, you'll see it was 2 years ago. >> Back then installing via pear

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] 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(); //ech

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 wrote: > You are right. I'm using an image button. But th

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

2010-09-04 Thread Gábor Fási
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 way to go. Since sf1.2 (afaik) the best practise is to include symfony under lib/vendor for each project. On Sat, Sep 4, 2010 at 18:39, Martin Henits wrote: > Hi, > > I was wo

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 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 include_partial()

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

2010-09-01 Thread Gábor Fási
est > 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 Mess

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 wrote: > Yes, but is th

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 wrote: > Hello, > > I've just starting to use the Sluggable behavior and set it with > canUpdate = false. > The

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 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 server at > 'local

Re: [symfony-users] Re: Send Mails

2010-08-24 Thread Gábor Fási
mtp. On Tue, Aug 24, 2010 at 14:48, vero 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. >

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 wrote: > And I use a sendmail.exe, that I

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

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 wrote: > Bonjour, > au lancement de la commande : php symfony doctrine:insert-sql j'ai un > message d'erreur : Couldn't locate d

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

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 wrote: > > > > > On Wed, Aug 11, 2010 at 6:44 PM, Gábor Fási w

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 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 Interface's prototype

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 wrote: > Hello, > I have a search form which inherits from sfForm. When the form is "post" > submitted it is validated then redirected to the action executeSea

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 wrote: > hello, > i am trying to test out how my app should behave in

  1   2   3   4   5   >