Re: [symfony-users] Open an Excel file

2010-01-15 Thread Gareth McCumskey
With just plain old PHP and even some Javascript built in this is actually very difficult if not impossible to do as PHP was never designed to interact with a users PC. Javascript was however designed to run client-side but does not have direct access to a users hard drive for obvious security

Re: [symfony-users] Open an Excel file

2010-01-15 Thread DEEPAK BHATIA
Hi I used the I used the sfPhpExcelPlugin-1.0.2.zip from the http://www.symfony-project.org/plugins/sfPhpExcelPlugin/1_0_2 In this I used this both for creating an excel file and downloading the same using PHP. Also I used the same for uploading an excel file and then reading the contents of

Re: [symfony-users] Open an Excel file

2010-01-15 Thread Benoit Montuelle
Hi, I think there may be at least 2 solutions : 1st) - Make for form so user can upload one or more file - Modify that file in php, this point may be though, as php excel writers have generally limited support. You can try something like this http://pear.php.net/package/Spreadsheet_Excel_Writer

[symfony-users] Re: doctrine many to one one the same table

2010-01-15 Thread Tom Ptacnik
Yes, you are right. In this multiselect box can be all his children, and also all folders without a parent. But there can't be a folders which have another parent folder. On 12 led, 19:33, smellycat37 charley.mail...@gmail.com wrote: if a folder has a parent with the reference on folder_id, he

[symfony-users] Using same database for two projects

2010-01-15 Thread DEEPAK BHATIA
Hi, If we want to use the same database for the two projects in Symfony 1.1, how can we achieve that. I guess we just need to execute step1 and step 2 below. = 1. php symfony propel:build-model 2. php symfony cc 3. php symfony configure:database

[symfony-users] Base GeneratorConfiguration not found

2010-01-15 Thread HAUSa
When I go to my application, it says only this: Fatal error: Class 'BasePageGeneratorConfiguration' not found in /srv/ www/vhosts/startersspecialist.nl/httpdocs/apps/controlpanel/modules/ page/lib/pageGeneratorConfiguration.class.php on line 11 I think it has something to do with the admin

[symfony-users] Re: FormFilter - sfWidgetFormChoice 'multiple' = true ... error

2010-01-15 Thread Tom Ptacnik
Nobody filter a list by checkboxes or by a multiple selectbox? On 11 led, 20:51, Tom Ptacnik to...@tomor.cz wrote: Hello, I have classic admin generated backend (Symfony 1.4). Today I've tried to customize the filter for the list view. The problem is that I want to filter by multiple

[symfony-users] Re: Having trouble modifying filters.

2010-01-15 Thread Tom Ptacnik
you can access to a user object via sfContext::getInstance()-getUser () if you user standard user object and credentials system... On 15 led, 00:41, Darren884 darren...@gmail.com wrote: Yes but how do I call the sfFormFilter object? I had tried $this- configuration-getFilterForm but it runs

[symfony-users] Re: Have it so if a user doesnt fill in a field it stays as it was?

2010-01-15 Thread Tom Ptacnik
Left it unfilled, and then when saving the profile don't change the password if the password field is blank.. Also you have to optimize a validation process for this behaviour. On 14 led, 18:08, Darren884 darren...@gmail.com wrote: HI basically I want to make it so as if a user is filling out

Re: [symfony-users] widget multiple option

2010-01-15 Thread Javier Garcia
On 01/14/2010 11:20 PM, Gabo wrote: Help!! I have this in schema: documents_users: columns: document_id: { type: integer } user_id: { type: integer } created_at: { type: timestamp } y en the form, i change the widget user_id for this: 'user_id' = new

[symfony-users] Re: how can I check the name of module and action in layout ?

2010-01-15 Thread wissl
I believe $sf_request-getParameter('action') and $sf_request- getParameter('module') should also work. On 14 Jan., 21:38, dziobacz aaabbbcccda...@gmail.com wrote: thx people !! :) On 14 Sty, 20:57, tirengarfio tirengar...@gmail.com wrote: Well put $ before both.. On Jan 14, 8:55 pm,

[symfony-users] sfForm clean bind

2010-01-15 Thread DoRiaN
Hello, How to delete values after bind() ? I want to clean my form. Thank, -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to

Re: [symfony-users] Re: Deployed project does not load any javascript file

2010-01-15 Thread Gábor Fási
Do you call include_javascripts() in your layout? Did you clear your cache after the deployment? On Fri, Jan 15, 2010 at 08:47, domnuprofesor domnuprofe...@gmail.com wrote: yes, of course I cheked the html code... No script tag is generated. Firebug reports no JS files loaded nor any js

[symfony-users] Why doesn't the mydomain.com - www.mydomain rewrite rule work in this .htaccess file?

2010-01-15 Thread YTH
Dear all, Hi, I would like to allow users getting redirected to www.mydomain.com if they enter mydomain.com in the browser. I added rewrite rule in the ..htaccess that comes with symfony 1.2 but the rewrite rule does not seem to work. When users enter mydomain.com, their browser continues to

Re: [symfony-users] Why doesn't the mydomain.com - www.mydomain rewrite rule work in this .htaccess file?

2010-01-15 Thread Sebastian Schulze
The second line after the RewriteCond is wrong. It should be more like: RewriteCond %{HTTP_HOST} ^mydomain\.com$ [NC] RewriteRule ^(.*) http://www.mydomain.com$1 [QSA,L,R=301] Bascht On 15.01.10 14:16, YTH wrote: Dear all, Hi, I would like to allow users getting redirected to

[symfony-users] Re: doctrine many to one one the same table

2010-01-15 Thread Tom Ptacnik
I was thinking about it and I'm not right... You can, of course, display all folders in multiselectbox (child folders, free folders and folders with different parent folder) but, when you select a folder which has another parent, and set it as a child folder for actual folder, it will be child

[symfony-users] Re: Using same database for two projects

2010-01-15 Thread Tom Ptacnik
Two different projects with different tables/models? Or some tables will be shared? Or all tables will be shared? On 15 led, 10:31, DEEPAK BHATIA toreachdee...@gmail.com wrote: Hi, If we want to use the same database for the two projects in Symfony 1.1, how can we achieve that. I guess we

[symfony-users] Re: sfForm clean bind

2010-01-15 Thread ken
What's your purpose of clearing the form of its values? On Jan 15, 7:23 pm, DoRiaN doria...@gmail.com wrote: Hello, How to delete values after bind() ? I want to clean my form. Thank, -- You received this message because you are subscribed to the Google Groups symfony users group. To post

[symfony-users] Re: sfForm clean bind

2010-01-15 Thread DoRiaN
When the form isValid(), i display again the same form empty to add a new element. I do new Form because i don't know how to clean values. On 15 jan, 14:27, ken marfillas...@gmail.com wrote: What's your purpose of clearing the form of its values? On Jan 15, 7:23 pm, DoRiaN doria...@gmail.com

Re: [symfony-users] Why doesn't the mydomain.com - www.mydomain rewrite rule work in this .htaccess file?

2010-01-15 Thread YTH
Dear Bascht, Great! It works now. By the way, the rewrite rule that I used (which does not work) is from this page, under the URL Layout section and after the Canonical Hostnames heading: http://httpd.apache.org/docs/2.0/misc/rewriteguide.html I just don't quite understand what's the

[symfony-users] Re: Have it so if a user doesnt fill in a field it stays as it was?

2010-01-15 Thread ken
You mean the form fills the field with the password as default value? I don't think that is ever a good idea. If you want a change password form, here is the class that I'm using. http://gist.github.com/278064 On Jan 15, 6:38 pm, Tom Ptacnik to...@tomor.cz wrote: Left it unfilled, and then when

[symfony-users] Re: sfForm clean bind

2010-01-15 Thread Tom Ptacnik
If you want to clear the form after it's proccessed, you can simply do redirect to the same form (in the action) On 15 led, 12:23, DoRiaN doria...@gmail.com wrote: Hello, How to delete values after bind() ? I want to clean my form. Thank, -- You received this message because you are

Re: [symfony-users] Re: Using same database for two projects

2010-01-15 Thread DEEPAK BHATIA
Thanks for all the scenarios. If possible, please send me the solution for some tables as well as all tables. Regards Deepak Bhatia On Fri, Jan 15, 2010 at 6:54 PM, Tom Ptacnik to...@tomor.cz wrote: Two different projects with different tables/models? Or some tables will be shared? Or all

[symfony-users] Re: Having trouble modifying filters.

2010-01-15 Thread ken
If you are using the admin generator, override apps/myapp/modules/ mymodule/lib/mymoduleGeneratorConfiguration.php public function getFilterOptions() { return array('sf_user' = sfContext::getInstance()-getUser()); } On Jan 15, 6:35 pm, Tom Ptacnik to...@tomor.cz wrote: you can access to a

[symfony-users] Re: Base GeneratorConfiguration not found

2010-01-15 Thread Tom Ptacnik
It should be located(generated) in /cache/controlpanel/modules/page/lib/ On 15 led, 10:46, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: When I go to my application, it says only this: Fatal error: Class 'BasePageGeneratorConfiguration' not found in /srv/

[symfony-users] Re: FormFilter - sfWidgetFormChoice 'multiple' = true ... error

2010-01-15 Thread ken
You need to add a custom query method in your filter class. public function addTkskateColumnQuery($query, $field, $value) { if (!empty($value)) { $query-addWhereIn('p. tkstate', $value); } } On Jan 15, 5:50 pm, Tom Ptacnik to...@tomor.cz wrote: Nobody filter a list

[symfony-users] Re: widget multiple option

2010-01-15 Thread ken
Have you defined the relation of documents_users to users in your schema.yml? Are you trying to achieve the behavior of sfGuardUser to sfGuardPermission via sfGuardUserPermission? On Jan 15, 7:01 pm, Javier Garcia tirengar...@gmail.com wrote: On 01/14/2010 11:20 PM, Gabo wrote: Help!!

[symfony-users] Re: Base GeneratorConfiguration not found

2010-01-15 Thread ken
Are you trying to override a module in a plugin? On Jan 15, 9:47 pm, Tom Ptacnik to...@tomor.cz wrote: It should be located(generated) in /cache/controlpanel/modules/page/lib/ On 15 led, 10:46, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: When I go to my application, it says

[symfony-users] doctrine migration fails

2010-01-15 Thread pulse00
hi all, i've tried to use the doctrine:migrate task, but i'm getting the following error: php symfony doctrine:migrate doctrine Migrating from version 0 to 1 The following errors occurred: - SQLSTATE[23000]: Integrity constraint violation: 1217 Cannot delete or update a parent row: a

Re: [symfony-users] Re: Deployed project does not load any javascript file

2010-01-15 Thread Francisc Nopcea
I don't call any include_javascripts(). I rely on the view.yml of each module I have defined. I tried clearing the cache but no success. Any ideas? On Fri, Jan 15, 2010 at 3:03 PM, Gábor Fási maerl...@gmail.com wrote: Do you call include_javascripts() in your layout? Did you clear your cache

[symfony-users] Re: sfWidgetFormPropelChoice appears as ul class=checkbox_list

2010-01-15 Thread Doraemon
But in the documentation, it seems that it's supposed to be in a line by default. On Jan 15, 2:06 am, Alexandru-Emil Lupu gang.al...@gmail.com wrote: Maybe by adding some css? Alecs sent via htc magic On Jan 15, 2010 6:40 AM, Doraemon theoneandonlydorae...@gmail.com wrote: In the

Re: [symfony-users] Re: Deployed project does not load any javascript file

2010-01-15 Thread Gábor Fási
In view.yml you specify which js files should be included when you call include_javascripts() in your layout. Put the call right before your /body tag and it should work. sfCommonFilter did this for you, but it has been deprecated in 1.3/1.4. See

Re: [symfony-users] widget multiple option

2010-01-15 Thread Gabo
Yes, I create the relation with the tables.. but the widget is multiple = true print this error, but is false no print error: THE ERROR: *Notice*: Undefined offset: 2 in *

Re: [symfony-users] Re: Deployed project does not load any javascript file

2010-01-15 Thread Francisc Nopcea
Gábor, thank you for the hint. I don't use symfony 1.3, I use symfony 1.2.9 so the problem should not be there. On Fri, Jan 15, 2010 at 5:08 PM, Gábor Fási maerl...@gmail.com wrote: In view.yml you specify which js files should be included when you call include_javascripts() in your layout.

[symfony-users] Get raw/unprocessed route in a Template

2010-01-15 Thread Donald
I am trying to better integrate a Javascript Datagrid that I'm using with the symfony routing system. I want to pass the unprocessed route for to view a particular entity type to the javascript class. For example, I have the following route: email_show /email/:id.sf_format When displaying a

[symfony-users] 2 layers of embedded forms

2010-01-15 Thread jondro
I'm trying to have 2 layers of embedded forms, meaning i have a Product model that has many Series and the Series have many Documents. I wanted to have the series form embedded in the product and the documents embedded in series thus having two layers of embedding. I followed the advanced

[symfony-users] Embed optional form

2010-01-15 Thread Palleas
Hi there ! I'm working on a simple Quiz plugin for my Symfony project, so I'm heavily using the Symfony embedding form system to have one big form to edit my whole quiz : - Quiz title - Quiz questions - For each questions, a list of proposals I want to be able to add a question and a proposal

[symfony-users] Symfony PHP Developer in Pune, India

2010-01-15 Thread Aceadi
Hello friends, I have a good job opening for symfony and thought it will better to share it here. Here's the description: Position: Senior Software Engineer - PHP Company Profile: Our firm is a product engineering company that builds commercial grade software for its customers. Our customers

Re: [symfony-users] Re: Deployed project does not load any javascript file

2010-01-15 Thread Alexandru-Emil Lupu
Are your files chowned to the apache group? Does symfony has access on your ymls for parsing? Are you sure that you have the correct priviledges on your cache folder? Switch it to dev mode (i think you have to upload the dev file) and check whatever your debug bar says. I guess you are a romanian

[symfony-users] Editing a embedded form | Alterando um form embeddado

2010-01-15 Thread Cainã
Hi ppl, I'm trying to alter a formulary which is being embedded on another form, in order to change from table to divs, but i'm getting stuck, since i don't know which template should i change. I tried to create a _form.php on both of the forms, but it only change the father form, not the

[symfony-users] Identify the module in the referer URL.

2010-01-15 Thread Bruno Reis
Hi, I have a referer url and I want to identify what is the module from that url. So I will need to parse this url the same way symfony does it on it´s routing or front controller. How can I parse a string containing a URL to know what is the module in it considering the actual defined routing

[symfony-users] sfDoctrineGuardPlugin in Project with multiple DB connections

2010-01-15 Thread Tiago Nunes
Hello, I'm having some issues trying to use sfDoctrineGuardPlugin with a symfony project that uses 2 Doctrine connections. I use 2 connections because I have a phpBB forum embedded in my project (using prestaForumConnectorPlugin), and I want to keep the forum and application specific

[symfony-users] Trying to add prototype functions

2010-01-15 Thread Javier Garcia
Hi, I have added this in a template: div id=mutsu class=apple/div ?php if( $('mutsu').hasClassName(apple) ){ alert(div has CSS apple class.); ? } but when i load the template in the browser, the javascript alert is not showed. Even in Netbeans i have a syntax error... I added

[symfony-users]

2010-01-15 Thread Chris LeBlanc
Chris LeBlanc webPragmatist (817) 988-9616 http://www.webPragmatist.com/ -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to

[symfony-users] Re: Trying to add prototype functions

2010-01-15 Thread Tiago Nunes
Hi, Just lose the ?php ? tags and you're good to go. ;) You're trying to run javascript code in the PHP interpreter, which isn't going to work. All you have to do is replace your code with: div id=mutsu class=apple/div if( $('mutsu').hasClassName(apple) ) { alert(div has CSS apple

Re: [symfony-users] Re: Trying to add prototype functions

2010-01-15 Thread Javier Garcia
On 01/15/2010 09:20 PM, Tiago Nunes wrote: You're confusing PHP code with Javascript code, and that's not good. Thanks Tiago, it's true.. Anywy im trying this: ?php echo javascript_tag( if($('mutsu').hasClassName(apple)) { alert(div has CSS apple class.); } ) ? And it doesn't

Re: [symfony-users] Re: Trying to add prototype functions

2010-01-15 Thread Rodrigo Ruiz Fuentes
El 15/01/2010 18:10, Javier Garcia escribió: Thanks Tiago, it's true.. Anywy im trying this: ?php echo javascript_tag( if($('mutsu').hasClassName(apple)) { alert(div has CSS apple class.); } ) ? And it doesn't work... No problem with ordinary code: script type=text/javascript

[symfony-users] is there a way to unsubscribe from this group?

2010-01-15 Thread Zeek
Was there any follow up regarding the bug that kept sending out email? I recall Fabien looked into it and decided that Google was responsible for the bug, but usually Google fixes such bugs in 24 or 48 hours. This has been going on for 2 months or so. I've trouble believing that Google would leave

Re: [symfony-users] is there a way to unsubscribe from this group?

2010-01-15 Thread Stéphane
No, it's forever or you die instantaneously ! :-) You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com . To unsubscribe from this group, send email to

[symfony-users] Re: Trying to add prototype functions

2010-01-15 Thread Tiago Nunes
In my last email I forgot the opening and closing javascript tags (or the symfony helper), but Rodrigo already gave you the correct answer. Try: ?php echo javascript_tag( if($('mutsu').hasClassName('apple')) { alert('div has CSS apple class.'); } ) ? -- Tiago

[symfony-users] How to access form filter object from within action?

2010-01-15 Thread Darren884
Can someone please tell me or show me an example on how to access a form filter object from within an action so I can pass objects and variables to it? This is killing me that Symfony does not allow instances to travel globally. -- You received this message because you are subscribed to the

[symfony-users] Re: How to access form filter object from within action?

2010-01-15 Thread Darren884
Hi guys I finally found the solution. The setOptions does not work with FilterForms. You must edit /lib/generate/sfModelGeneratorConfiguration.php and make getFilterForm resemble getForm so it can contain options. The first instance of the getFilterForm will be called in the protected buildQuery

[symfony-users] Re: Installation on shared hosting

2010-01-15 Thread Maciek
There is an easier way which works when you have ssh access. Remove public_html directory and create symbolic link to project/web ln -s where/your/project/is/web public_html This method allows to place files wherever you want. -- You received this message because you are subscribed to the