Re: [symfony-users] Problems getting the text in a drop down list

2010-08-11 Thread Alexandre Salomé
Your default value should be an option for the widget. The form (who has the label of the field) would use this label as option for construction. protected myForm { protected $labels = array( 'my_field' = 'My Field value' ); public function configure()

Re: [symfony-users] appending to flashes/multiple flashes

2010-08-11 Thread Alexandre Salomé
Create your skeleton for admin generator. Search documentation, I have no information on subject. Le 11/08/10 07:48, bretth a écrit : Hi, I want to set a 'notice' flash in the postvalidator callback function i'm using; it will be used to display a 'notice' (ie. This object requires a Foo, so

[symfony-users] sfDoctrineGuardPlugin - 'email_address' and sfDoctrineApplyPlugin - 'email'

2010-08-11 Thread Javier Garcia
Hi, sfDoctrineGuardPlugin schema uses the field 'email_address' to login users. sfDoctrineApplyPlugin uses the field 'email' to register users. How do you treat that? Do you sinchronize the values of both fields? Javi -- If you want to report a vulnerability issue on symfony, please send

[symfony-users] which differences between Doctrine::getTable and Doctrine_Query::create

2010-08-11 Thread RusAlex
1.$this-rank_domain = Doctrine::getTable('RankDomain')- find(array($request-getParameter('id'))); 2.$q = Doctrine_Query::create() -select('d.*') -where('d.id = ?', $request-getParameter('id')) -from('RankDomain d'); $this-rank_domain = $q-execute(); A first work

[symfony-users] how can i return a base indexSuccess.php from Tutorial without changing any other files ?

2010-08-11 Thread RusAlex
I've edited indexSuccess.php in Jobeet Tutorial project and now nothing work. How can i set indexSuccess.php to a base version ? -- 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: Im playing with Tutorial, how can i debug blank (white) page ?

2010-08-11 Thread RusAlex
thanks, yes i need to see a log folder inside symfony project. On Aug 11, 2:53 am, Gustavo Adrian comfortablynum...@gmail.com wrote: What OS are you developing on? Check permissions on the cache and log dirs. On Tue, Aug 10, 2010 at 5:11 PM, Alexandre Salomé alexandre.sal...@gmail.com

[symfony-users] Re: how can i return a base indexSuccess.php from Tutorial without changing any other files ?

2010-08-11 Thread RusAlex
SOLVED On Aug 11, 8:58 am, RusAlex interpret...@gmail.com wrote: I've edited indexSuccess.php in Jobeet Tutorial project and now nothing work. How can i set indexSuccess.php to a base version ? -- If you want to report a vulnerability issue on symfony, please send it to security at

[symfony-users] Re: which differences between Doctrine::getTable and Doctrine_Query::create

2010-08-11 Thread RusAlex
SOLVED On Aug 11, 12:46 pm, RusAlex interpret...@gmail.com wrote: 1.    $this-rank_domain = Doctrine::getTable('RankDomain')- find(array($request-getParameter('id'))); 2.    $q = Doctrine_Query::create()       -select('d.*')       -where('d.id = ?', $request-getParameter('id'))      

[symfony-users] Re: which differences between Doctrine::getTable and Doctrine_Query::create

2010-08-11 Thread catchamonkey
Hi Rus, Would you mind posting your solution so it could benefit others in the future? Many thanks, Chris On Aug 11, 10:29 am, RusAlex interpret...@gmail.com wrote: SOLVED On Aug 11, 12:46 pm, RusAlex interpret...@gmail.com wrote: 1.    $this-rank_domain =

[symfony-users] Re: which differences between Doctrine::getTable and Doctrine_Query::create

2010-08-11 Thread RusAlex
First variant returns an object and you can use method. But second variant returns and array of objects and you must select object (ex.$rank_domain[0]) for using methods On Aug 11, 1:31 pm, catchamonkey ch...@sedlmayr.co.uk wrote: Hi Rus, Would you mind posting your solution so it could

[symfony-users] Symfony2 - upload files

2010-08-11 Thread Vincent UNG
Hi !! i'm trying to use an upload file action. I trie my code without Symfony2, and it works fine. but, when i'm trying to do this winthin Sf2, with the same code, my move_uploaded_file() function doesn't works. I have this error Warning: move_uploaded_file(/egoodealer/web/uploads/ avatar.PNG) [a

[symfony-users] Symfony2 - upload files

2010-08-11 Thread Vincent UNG
Hi !! i'm trying to use an upload file action. I trie my code without Symfony2, and it works fine. but, when i'm trying to do this winthin Sf2, with the same code, my move_uploaded_file() function doesn't works. I have this error Warning: move_uploaded_file(/egoodealer/web/uploads/ avatar.PNG) [a

[symfony-users] Re: Symfony2 - upload files

2010-08-11 Thread Vincent UNG
sorry, I sent the message before finishing write it so, you have my php code And now my html code (just in case) form action=?php echo $view-router-generate(add_img_exec) ? method=post enctype=multipart/form-data input id=userfile name=userfile type=file / input name=folder

Re: [symfony-users] appending to flashes/multiple flashes

2010-08-11 Thread Gustavo Adrian
The setting of the notice takes place on the action, not on the form. And it's generated in every module you create with the admin generator. So, as Alexander said, you'd need to modify the skeleton of the generated actions to add your functionality. On the other hand, an easier way would be to

[symfony-users] Re: appending to flashes/multiple flashes

2010-08-11 Thread bretth
Yep I've done it that way, thanks Gustavo! Also, I've never looked at editing the skeleton before; I'll check that out to learn some new stuff too thanks both, guys cheers On Aug 11, 9:39 pm, Gustavo Adrian comfortablynum...@gmail.com wrote: The setting of the notice takes place on the

[symfony-users] Re: Change backend module views

2010-08-11 Thread cosmy
Thank you a lot.. and if i want to override the behaviour of one action in the backend? (I want to save as user attributes a category (it is a module) id and name when it is saved in the backend, to take trace of what the user id doing in the menu. I think the best way is to add this attributes in

Re: [symfony-users] Re: Symfony2 comments and questions

2010-08-11 Thread Ekinox
Le 01/08/2010 14:27, Tarjei a écrit : Hi, as with my other answer, I've been on vacation so apologies for a late reply. On 12 Jul, 10:47, Fabien Potencierfabien.potenc...@symfony- project.com wrote: On 7/11/10 1:17 PM, Tarjei wrote: Hi, here are my initial questions and comments

[symfony-users] I think I've found a subtle, nasty bug in sfDoctrine

2010-08-11 Thread JMather
Hi everybody! I'm hoping someone can help me out here, as I've found myself in quite a pickle. Here's the issue: schema.yml: Article: tableName: articles columns: name: { type: string(255), notnull: true } relations: Areas: refClass: AreaArticle class: Area

[symfony-users] Virtual Columns with tabular layout

2010-08-11 Thread Wildancer
Good afternoon, I'm a n00b, excuse my question if it's too simple, but I can't find nothing in the official distribution. How I can make a virtual column ( http://www.symfony-project.org/jobeet/1_4/Doctrine/en/12#chapter_12_sub_virtual_columns ) with the tabular layout? Tanks, Claudio -- If

[symfony-users] Re: I think I've found a subtle, nasty bug in sfDoctrine

2010-08-11 Thread JMather
More information: When I run the following: ?php require_once 'vendor/symfony/plugins/sfDoctrinePlugin/lib/vendor/ doctrine/Doctrine.php'; spl_autoload_register(array('Doctrine', 'autoload')); $manager = Doctrine_Manager::getInstance(); $dsn = 'mysql:host=localhost;dbname=test;'; $dsn_u =

[symfony-users] Re: Problems getting the text in a drop down list

2010-08-11 Thread Juan
Hi, I extract many things in the example code, for example (I guess the main...) is that I'm working with an array (or some kind of list...) and I need a dictionary (key = value). I'm making the changes and looks good! Thanks a lot! On 11 ago, 01:00, Alexandre Salomé alexandre.sal...@gmail.com

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

2010-08-11 Thread wodzik
I'm using NetBeans because it has friendly use of shortcut, already, and if i want use IDE for other language it is there. In Eclipse it's always problem with compatibility of plugins. NB is supported by the Oracle. -- If you want to report a vulnerability issue on symfony, please send it to

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

2010-08-11 Thread Stéphane
When I code only PHP, i use eclipse. When I have to mix php, js and html, I use netbeans as eclipse is buggy when it is about to mix code languages (even helios) :/ Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée

[symfony-users] Question about form and redirect

2010-08-11 Thread Stef
Hello, I have a search form which inherits from sfForm. When the form is post submitted it is validated then redirected to the action executeSearch() The problem I have is that I don't have access to data in the executeSearch() method. I understand that I can use http_query_build when doing the

[symfony-users] Re: Symfony 2 configuration environment variables

2010-08-11 Thread Donut
I think I figured out where to setup/create environment variables. I am using XML for configuration, so YAML users may need to convert the syntax. Environment variables can be created by using the parameter tag within the parameters tag. Each parameter has a 'key' attribute, which is what you use

[symfony-users] Re: I think I've found a subtle, nasty bug in sfDoctrine

2010-08-11 Thread JMather
Latest and last update from me: It seems to be some conflict between the order objects are loaded and the black magic of the exporter. My solution has been to do the following in the schema.yml: Article: tableName: articles columns: name: { type: string(255), notnull: true }

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

2010-08-11 Thread Stéphane
I guess so :-) Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Wed, Aug 11, 2010 at 6:17 PM, Julian julian.reyes.escri...@gmail.comwrote: i find the root of the problem is Windows, i install a old

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

2010-08-11 Thread Julian
i find the root of the problem is Windows, i install a old ubuntu 9.04 and for now dont have trouble, i think for now netbeans is unestable when the project grows but if you re instasll the problem vanished 2010/8/11 Stéphane stephane.er...@gmail.com When I code only PHP, i use eclipse. When I

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

[symfony-users] Re: sfDoctrineGuardPlugin - 'email_address' and sfDoctrineApplyPlugin - 'email'

2010-08-11 Thread Raja Kapadia
This is fixed in the 1.2 branch of the plugin--see this post: http://groups.google.com/group/symfony-users/browse_thread/thread/8ec3e01e1ef34cac/cc0605f424732fc7?#cc0605f424732fc7 On Aug 11, 12:15 am, Javier Garcia tirengar...@gmail.com wrote:   Hi, sfDoctrineGuardPlugin schema uses the field

[symfony-users] Tutorial Error

2010-08-11 Thread RusAlex
Found a tutorial error: http://www.symfony-project.org/jobeet/1_4/Doctrine/en/10 near --- First, change the Post a Job link in the layout to be able to check changes directly in your browser: --- You will find a code: --- !-- apps/frontend/templates/layout.php -- a href=?php echo

[symfony-users] Architectural Confusion in Symfony2

2010-08-11 Thread Jay
In trying to structure our website using three apps and various bundles, we’ve run into a major architectural fork in the road which nobody seems to have the right answer for. I’ll try and paint the picture as clearly and quickly as possible: Assume 3 applications: Frontend, Backend, and Api

[symfony-users] Re: sfGuardAuth causes everything on my homepage to disappear when I embed any code that corresponds with $sform.. any ideas why?

2010-08-11 Thread Tom Ptacnik
I think it can be done by component. Look into the sfGuard template and action .. you need to create the form class (action) then pass it into the component template and show it. On 8 srp, 00:31, Psychonetics mrajcampb...@gmail.com wrote: I'm trying to embed my sfDoctrineGuardPlugin login form

Re: [symfony-users] Architectural Confusion in Symfony2

2010-08-11 Thread Fabien Potencier
On 8/11/10 8:30 PM, Jay wrote: In trying to structure our website using three apps and various bundles, we’ve run into a major architectural fork in the road which nobody seems to have the right answer for. I’ll try and paint the picture as clearly and quickly as possible: Assume 3

[symfony-users] Re: Embedding form filters

2010-08-11 Thread Tom Ptacnik
I don't think that you need embed form filter. Just add a widget for selecting a school into the person formFilter Something like: public function configure() { $this-widgetSchema['school_id'] = new sfWidgetFormDoctrineChoice(array( 'model' = $this-getRelatedModelName('School'),

[symfony-users] Re: Architectural Confusion in Symfony2

2010-08-11 Thread Jay
Each app has different auth requirements and possibly different configurations. Isn't that why in most of the tutorials you speak of a Frontend app, which kind of implies that there would also be a Backend app? And then if we were to build an api that api might have special auth to deal with valid

[symfony-users] Re: Architectural Confusion in Symfony2

2010-08-11 Thread Jay
With option b) we would probably put all the article bundles into their own directory to be a bit more organized: Bundle\Article\FrontendArticleBundle Bundle\Article\BackendArticleBundle Bundle\Article\ApiArticleBundle Bundle\Article\CommonArticleBundle with option b you end up with up to 4

[symfony-users] Re: which differences between Doctrine::getTable and Doctrine_Query::create

2010-08-11 Thread Tom Ptacnik
You can use Doctrine::getTable('RankDomain')- findOne or FindOneByXXX On 11 srp, 12:10, RusAlex interpret...@gmail.com wrote: First variant returns an object and you can use method. But second variant returns and array of objects and you must select object (ex.$rank_domain[0]) for using

[symfony-users] adding input file field in Symfony2 Form

2010-08-11 Thread Nurul Ferdous
Hi guys, I am stucked with a silly problem while I am trying to add a input file field in Symfony2 Form. to make it more clear I would like to add an input file field in Symfony2 Form like this: $form-add(new \Symfony\Components\Form\PasswordField('password')); $form-add( how can I add an input

Re: [symfony-users] Re: Architectural Confusion in Symfony2

2010-08-11 Thread Fabien Potencier
On 8/11/10 9:08 PM, Jay wrote: Each app has different auth requirements and possibly different configurations. Isn't that why in most of the tutorials you speak of a Frontend app, which kind of implies that there would also be a Backend app? And then if we were to build an api that api might

[symfony-users] Dependency Injection in Symfony2

2010-08-11 Thread Brandon Turner
Is there anyway to load the default configuration for a bundle *without* a line such as: #config.yml: mybundle.config: ~ in a configuration file? Is it correct to assume that the following procedure must *always* be done to install a bundle that utilizes semantic configuration: 1) Install

Re: [symfony-users] Re: Change backend module views

2010-08-11 Thread Alexandre Salomé
There are multiple answers to this problem : * If it's business question, define this behavior in your model * If it's action processing, define it in your form (overriding the doSave() method) * And if there is no other solution, take a look at generated code. You have 2

Re: [symfony-users] Dependency Injection in Symfony2

2010-08-11 Thread Alexandre Salomé
Must be others methods to override in bundle class. The container building is a part of kernel building, but there are other ways to behave on kernel execution. Read the bundle sourcecode and find correct method (boot ?), and tell us Le 12/08/10 00:24, Brandon Turner a écrit : Is there

Re: [symfony-users] Re: Architectural Confusion in Symfony2

2010-08-11 Thread Alexandre Salomé
ApiFrontend and ApiBackend ? No, I'm kidding You could have an administration controller in your application, who requires some credentials to be accessed, and renders different templates from the frontend controllers. You could prefix them with your applicative layer : adminController,

[symfony-users] [SYMFONY 1.4] Install plugins programmatically?

2010-08-11 Thread Gustavo Adrian
Hi! Quick question: Is there a way to install and enable a plugin from PHP? Thanks! -- 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

Re: [symfony-users] Re: Embedding form filters

2010-08-11 Thread Sebastien Armand [Pink]
Thanks, I would definitely do that if my actual problem was as simple as my example, the thing is that I actually have 4 tables each of them having at least 4 fields, and that I want to browse on those fields. Like here, I would like to actually see the 'city' field displayed, and be able to use