[symfony-users] Re: How to customize the save process of many-to-many relation in symfony form framework?

2010-03-03 Thread SymfonyNewbie
You are right,I'm using doctrine. Looking for information how it deals with dml like "insert .. on duplicate key update".. On 3月4日, 下午2时38分, Tom Ptacnik wrote: > It depends on which ORM do you use.. Propel or Doctrine? > > I think this is more about ORM than symfony... > > On 3 bře, 13:07, Symfo

Re: [symfony-users] Re: ideas for development architecture in symfony

2010-03-03 Thread Alexandru-Emil Lupu
Apostrophe is symfony based On Thu, Mar 4, 2010 at 7:11 AM, Joshua wrote: > Thanks daniel. There are a lot of CMS' that use similar approaches, > but specifically looking for a symfony one. > > On Mar 3, 4:53 pm, Daniel Lohse wrote: > > This sounds a lot like Apostrophe's architecture! See

[symfony-users] Re: How to customize the save process of many-to-many relation in symfony form framework?

2010-03-03 Thread Tom Ptacnik
It depends on which ORM do you use.. Propel or Doctrine? I think this is more about ORM than symfony... On 3 bře, 13:07, SymfonyNewbie wrote: > The relation between posts and tags is n2m, > > the pure mysql solution is like this: > >     $dml = "insert into tags(name) value('$name') on duplicat

[symfony-users] Re: Show Hidden field

2010-03-03 Thread Tom Ptacnik
You are using the same form class for backend and frontend? I think you probably do.. 1) I think you can create two form classes - one for backend one for frontend. 2) Or you can create some parameter for your form class - to let the form know if it's frontend or backend and then decide to show/n

[symfony-users] Re: Integration with third party script

2010-03-03 Thread Tom Ptacnik
What for is that script? On 2 bře, 17:49, Fuitad wrote: > Hey everyone. I need a little help :). > > I need to integrate a third party script into my symfony website. The > fun part is that it's an encoded script (ioncube) and my only access > into it are it's smarty templates. I was able to sep

[symfony-users] Re: ideas for development architecture in symfony

2010-03-03 Thread Joshua
Thanks daniel. There are a lot of CMS' that use similar approaches, but specifically looking for a symfony one. On Mar 3, 4:53 pm, Daniel Lohse wrote: > This sounds a lot like Apostrophe's architecture! > Seehttp://www.apostrophenow.com/ > > Daniel > > On 03.03.2010, at 21:13, Joshua wrote: > >

[symfony-users] Re: sfJqueryReloaded Plugin in Symfony 1.4

2010-03-03 Thread Antoine S.
it should be : use_helper('IDontKnowTheName'); or in settings.yml : standard_helpers: [Partial, Cache, I18N, IDontKnowTheName] to be able to access from a template. You should not access from a form. (If you have too .. you could use sfLoader::loadHelpers() to load the helper) On Mar

[symfony-users] sfJqueryReloaded Plugin in Symfony 1.4

2010-03-03 Thread ScherlOMatic
Hello! Unfortunately I'm having a minor problem with this plugin. I installed it with the "plugin:install" command, did "publish-assets" and everything went fine. It has been enabled in my ProjectConfiguration and the web dir has also been created successfully. Now I'm calling one of the helper

[symfony-users] filter causes CSRF attack

2010-03-03 Thread mbernasocchi
hi all, I've set up a filter to give and take away a dynamic owner credential (so that only the author of the object can edit it). my problem is that as soon as I activate the filter and try to perform an action that needs the owner credential, symfony reports " _csrf_token [CSRF attack detected.]

Re: [symfony-users] Validations

2010-03-03 Thread Parijat Kalia
Why do you recommend using the form framework over the simple old validation styles. Which version of symfony introduced this change? And is 1.2.9 maintained any longer? Thanks Parijat On Wed, Mar 3, 2010 at 2:02 PM, Gábor Fási wrote: > They got replaced by the form framework. I believe you ca

Re: [symfony-users] Validations

2010-03-03 Thread Gábor Fási
They got replaced by the form framework. I believe you can still use them with the sfCompat10Plugin, but you'd better use the form fw. On Wed, Mar 3, 2010 at 23:00, Parijat Kalia wrote: > Hey guys, > > whatever happened to the good old validateXXX() methods and the > validate.yaml files symfony h

[symfony-users] Validations

2010-03-03 Thread Parijat Kalia
Hey guys, whatever happened to the good old validateXXX() methods and the validate.yaml files symfony had. I have a validateXXX() for a couple of my actions but they don't run. Not only that, when I run modules, the only thing that get's generated when a generate:module function is called is actio

Re: [symfony-users] ideas for development architecture in symfony

2010-03-03 Thread Daniel Lohse
This sounds a lot like Apostrophe's architecture! See http://www.apostrophenow.com/ Daniel On 03.03.2010, at 21:13, Joshua wrote: > I'm working on the following architecture for a site running symfony. > Seeking ideas and input for the best way this might be implemented on > a symfony platform.

[symfony-users] ideas for development architecture in symfony

2010-03-03 Thread Joshua
I'm working on the following architecture for a site running symfony. Seeking ideas and input for the best way this might be implemented on a symfony platform. Blocks * Right now I am using the name block for lack of available nomenclature. You could also refer to these as modules, widgets, co

[symfony-users] problems with embedRelation with a self related m:n

2010-03-03 Thread axel at
I have a list of persons, and an m:n relation that relates one person with several other persons: Person: columns: id type: integer(4) primary: true name: string(255) relations: # m:n Person2Person Person: class: Person refClass: Person2Person local:

[symfony-users] Functionality wanted in the URL helper or routing system.

2010-03-03 Thread a...@speedypin.com
Hi, I don't know about 1.4 or 2.0 but in 1.2 Symfony I could not specify to print my URL over https easily as one of the URL helpr options or to say in the routing yaml that 'this URL needs to be rendered as https" when I am on a http page. For example when rendering a login credentials form on th

[symfony-users] Re: xhr and REST

2010-03-03 Thread Donald
If at all possible, please post responses to the Symfony Forum. -- 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, se

[symfony-users] Erreur 500 dans symfony consultable dans les logs APACHE

2010-03-03 Thread cornnery morel OUNZOU M'BOUILOU
Bonjour, je reprends un projet qui a été développé sous symfony 1.0 (stable) Le déploiement s'est bien passé j'ai ma première page d'accueil qui m'affiche des catégories qui proviennent de ma BDD. Mais quand je veux consulter les ressources d'une catégorie j'ai une page erreur 500 de Symfony et qu

[symfony-users] Re: Number range in AdminGen

2010-03-03 Thread HAUSa
http://svn.symfony-project.com/plugins/sfGenExtraPlugin/trunk/ On 3 mrt, 14:21, HAUSa wrote: > Hi all, > > I'm using the Admin Generator and as you all might know, it contains a > filter form in the index action to filter the displayed list results. > > Now I see that for dates, it has a date ran

[symfony-users] Re: Override hashed filename in csDoctrineActAsAttachablePlugin

2010-03-03 Thread forkmantis
After some digging, I see that the hashed filename had nothing at all to do with the csDoctrineActAsAttachablePlugin, but is just the standard behavior of the sfValidatedFile->generateFilename method. However, before letting sfValidatedFile default to this behavior, sfFormDoctrine checks the form a

[symfony-users] PHP Developer role in Oxford

2010-03-03 Thread johnwards
Hello, We (http://www.whiteoctober.co.uk) are recruiting a PHP Developer with 1-2 years experience. Core skills we are looking for are PHP and MySQL, anything else is a bonus (like symfony). You should enjoy learning new things. In return you will get a nice salary and perks like free fruit and

[symfony-users] Number range in AdminGen

2010-03-03 Thread HAUSa
Hi all, I'm using the Admin Generator and as you all might know, it contains a filter form in the index action to filter the displayed list results. Now I see that for dates, it has a date range filter widget. Users can select a from and to date, which shows results in between those dates. As far

[symfony-users] How to customize the save process of many-to-many relation in symfony form framework?

2010-03-03 Thread SymfonyNewbie
The relation between posts and tags is n2m, the pure mysql solution is like this: $dml = "insert into tags(name) value('$name') on duplicate key upadte count=count+1"; mysql_query($dml); $dml = "insert into tagowner(post,tag) value($postid,$tagid)"; mysql_query($dml); How to do s

[symfony-users] Re: handle processForm()

2010-03-03 Thread Tom Ptacnik
public function setName($name) { $letter = strtoupper(substr($name, 0, 1)); $this->_set('letter', $letter); return $this->_set('name', $name); } On 3 bře, 10:13, Tom Ptacnik wrote: > Try to call parent setName method this way > > parent::_set('name', $value); > > On 2 bře, 11:36, verox

[symfony-users] Re: Forms issue: Unknown "required" field

2010-03-03 Thread Trung Huynh
Holy crap. Forgive my noobishness . -.-' On Mar 3, 11:07 am, Tugdual SAUNIER wrote: > You define a field "type" here: > > $this->validatorSchema['type'] = new sfValidatorChoice(array( >        'choices' => array_keys(Doctrine_Core:: > getTable('member')->getStates()), > >        )); > > I guess i

Re: [symfony-users] Forms issue: Unknown "required" field

2010-03-03 Thread Tugdual SAUNIER
You define a field "type" here: $this->validatorSchema['type'] = new sfValidatorChoice(array( 'choices' => array_keys(Doctrine_Core:: getTable('member')- >getStates()), )); I guess it should be 'state' ... --- *Tugdual Saunier* tugdual.saun...@gmail.com GTalk: tucks...@gmail.com S

Re: [symfony-users] Forms issue: Unknown "required" field

2010-03-03 Thread Trung Huynh
Thanks for helping out. I got "type [Required.]" I don't have any "type" attribitue in my member oject. I've searched for hidden fields and this is what i got, is that okay? > > value="41bd436706bc5fffa29ac5265bc2eb22" id="member__csrf_token" /> > > Complete html output: --

Re: [symfony-users] Forms issue: Unknown "required" field

2010-03-03 Thread Bernhard Schussek
Print the error schema of the form which gives you more details about the required field: echo $form->getErrorSchema(); Bernhard -- 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

[symfony-users] Re: xhr and REST

2010-03-03 Thread halfer
Cross posted here: http://forum.symfony-project.org/index.php/m/94638/ -- 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 g

[symfony-users] Re: handle processForm()

2010-03-03 Thread Tom Ptacnik
Try to call parent setName method this way parent::_set('name', $value); On 2 bře, 11:36, verox wrote: > Added this to class Article extends BaseArticle, and have Connection > To Server Failed > > It's Doctrine btw > > On 27 Lut, 12:21, jp_morvan wrote: > > > > > Hi, > > Did you try in you mod

Re: [symfony-users] Re: symfony1.4 autoload : how does it work

2010-03-03 Thread samuel
ok, thank you 2010/3/3 Tom Ptacnik > I think so... the answer is in > > /cache/app/dev/config/config_app.yml.php > /cache/app/dev/config/config_autoload.yml.php > > > On 2 bře, 10:05, samuel wrote: > > Hello, > > If I understand : > > > > The autoload.yml file lists the paths in which autoload

[symfony-users] Re: symfony1.4 autoload : how does it work

2010-03-03 Thread Tom Ptacnik
I think so... the answer is in /cache/app/dev/config/config_app.yml.php /cache/app/dev/config/config_autoload.yml.php On 2 bře, 10:05, samuel wrote: > Hello, > If I understand : > > The autoload.yml file lists the paths in which autoloaded classes are > stored. The first time this configuratio

[symfony-users] Forms issue: Unknown "required" field

2010-03-03 Thread Trung Huynh
Inspired by the Jobeet tutorial I started my own simple test application. However, I got an unknown "required" field" and I have no clue where it comes from. See screenshot here: http://img85.yfrog.com/i/screenshot20100303at954.png/ Thanks in advance Trung schema.yml: Member: a

[symfony-users] Re: sfWidgetFormSelectRadio and onxxx action

2010-03-03 Thread Tom Ptacnik
I think there http://www.symfony-project.org/more-with-symfony/1_4/en/06-Advanced-Forms should be the solution. On 1 bře, 10:19, sebastien Aucouturier wrote: > Hi, > can i request your help  ? > > the following code : > new sfWidgetFormSelectRadio( array('choices'=>array("1","2") ) , > array('o

[symfony-users] Re: Symfony doctrine and CRUD?

2010-03-03 Thread Tom Ptacnik
Show the command which you typed. Show the exact error message. On 1 bře, 23:16, Darren884 wrote: > Do I have to install a different module for generating CRUD? When I > tried to run the crud generation command it said the task did not > exists and then when I listed the available builder command