[symfony-users] Re: disable project but allow access based on IP address

2009-03-25 Thread Joao Correia
Just put a .htaccess and give all your testers a user/pass. IPs change all the time and your testers might want to access it from diferent places. On Mar 20, 9:32 am, CiPheR an...@stepuptravel.org wrote: Is there a way to disable project but allow only specific IPs to use the site? This is

[symfony-users] Re: Doctrine UNION function or similar solution

2009-03-25 Thread David Herrmann
pixelmeister schrieb: Hi @all, i have to solve a problem with doctrine which I normally would do with the mysql union function. Perhaps someone has an Idea for me, how I can do this: I have a few tables whitch have the following setup: --

[symfony-users] Re: Doctrine UNION function or similar solution

2009-03-25 Thread pixelmeister
Hi David, thanks for your answer. I have been thinking about using one Table for all person_types the moment i klicked on the send button :-) Ug... this ist much work because the Project is allready in production und I have roundabout 120.000 peoples to put in one Table... But I think it is

[symfony-users] Re: http not working

2009-03-25 Thread Lee Bolding
I'd check your webserver configuration. Seems like you've not got it using the same document root for HTTPS and you do HTTP - or that it's not even listening on port 80. Either way, I'm pretty confident this isn't an issue with Symfony On 25 Mar 2009, at 04:56, DeepakBhatia wrote: Hi, I

[symfony-users] Re: how to install jobeet in windows machine its not workig

2009-03-25 Thread Gareth McCumskey
What errors? What results? What have you tried? On Wed, Mar 25, 2009 at 8:34 AM, sachin jain jainsachi...@gmail.com wrote: how to install jobeet in windows machine its not workig --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[symfony-users] Special characters in SF

2009-03-25 Thread HAUSa
See here: http://www.starterswijzerutrecht.nl/zoeken/jkals It is in dutch :P but in the main part you see two special characters, which are replaced bij a questionmark sign. Now, this is my sentence: Specificeer uw zoekterm door middel van één of meerdere gerichte zoekwoorden. It must be

[symfony-users] Propel 1.3 on PHP 5.1.x ?

2009-03-25 Thread Gareth McCumskey
Hi all, I have been looking at using Propel 1.3 on our project which currently uses Propel 1.2. The research I have seen online points at Propel 1.3 being a ton faster than 1.2 because of the switch from Creole to PHP's PDO. The one problem we have is that our servers cannot be upgraded (for now

[symfony-users] Re: SfWidgetFormDoctrineChoice - how do you filter values

2009-03-25 Thread fredlab
Thanks for the answer. Apologize if I ask again for some help. In fact, I am extending the admin generator to create a specific plugin and I want to generate the sfWidgetFormChoice ... with the query that return the filtered values so that I do not have to create a method in another class. Do

[symfony-users] Re: Download files - broken pdf

2009-03-25 Thread Tomasz Ignatiuk
After line 592 which is $response-setContent(readfile($sciezka)); There are: $response-sendContent(); return sfView::NONE; I deleted $response-sendContent(); so there are only: $response-setContent(readfile($sciezka)); return sfView::NONE; in the endStill the same error. Headers already

[symfony-users] Re: Select a column

2009-03-25 Thread kusum
Hi, This will give me a resultset object not array of objects of that table.I want to get array of objects of that table, so i can use methods of that class.Is it possible. Thanks, Kusum On Mar 24, 4:48 pm, Dheeraj Kumar Aggarwal dheerajcom...@gmail.com wrote: hi if you are using

[symfony-users] Re: Propel 1.3 on PHP 5.1.x ?

2009-03-25 Thread Paolo Mainardi
On Wed, Mar 25, 2009 at 11:02 AM, Gareth McCumskey gmccums...@gmail.comwrote: Hi all, I have been looking at using Propel 1.3 on our project which currently uses Propel 1.2. The research I have seen online points at Propel 1.3 being a ton faster than 1.2 because of the switch from Creole to

[symfony-users] Re: http not working

2009-03-25 Thread Tom Castonzo
This can be caused by the server logs being full. For example, on apache, there are logs for http and also logs for https and that would explain your problem. You can also do a port scan to make sure port 80 (http) is open On 3/25/09 12:56 AM, DeepakBhatia toreachdee...@gmail.com wrote: Hi,

[symfony-users] alternate stylesheets with title and media type - how to do define them?

2009-03-25 Thread dsb
Hi, I have apps/myapp//templates/layout.php. In this template, I want to define 3 stylesheets for the main template (to enable users to switch between sytlesheet using javascript). I know that I can set global styles in apps/myapp/config/view.yml like stylesheets: [style1.css, style2.css,

[symfony-users] Re: Propel vs. Doctrine - Pros and Cons

2009-03-25 Thread Leon van der Ree
I am still using Propel, and the big drawback of Propel is as said the cumbersome way to define relations with criteria. I wrote a Propel helper (that requires a little extension for the propel builder) that allows you to do joins in propel much easier, see the sfGridPlugin: See

[symfony-users] Declaring javascript or css files in html head section using IF blocks (!--[if IE 6]) ????

2009-03-25 Thread dsb
Hi All, I was just wondering how to get the following html output in the template. For css !--[if IE 6] link href=/css/mystyle-ie6.css rel=stylesheet type=text/css / ![endif]-- For javascript !--[if IE 6] script type=text/javascript language=javascript src=/js/ myJS_IE6.js/script ![endif]--

[symfony-users] Validating before show up the form

2009-03-25 Thread Reynier Perez Mira
Hi every: I have a n:m relationship between two tables: modlic_dvd y modlic_licencia. As every here know this kind of relation generate a new table: modlic_rel_dvd_licencia with the primary keys of the main tables. I generate the model, the filters and the forms for this three tables without

[symfony-users] Re: http not working

2009-03-25 Thread Lee Bolding
On 25 Mar 2009, at 11:20, Tom Castonzo wrote: This can be caused by the server logs being full. For example, on apache, there are logs for http and also logs for https and that would explain your problem. How can a server log be full? I can understand you may be out of disk

[symfony-users] Re: Special characters in SF

2009-03-25 Thread Fási Gábor
Check the encoding of your file, if I view it with iso-8859-1 instead of utf8, it's fine. On Wed, Mar 25, 2009 at 10:56, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: See here: http://www.starterswijzerutrecht.nl/zoeken/jkals It is in dutch :P but in the main part you see two

[symfony-users] Re: alternate stylesheets with title and media type - how to do define them?

2009-03-25 Thread dsb
May be I didnt put this question right way .. I want to know how to declare options in view.yml. for example to get the stylesheet tag I use helper stylesheet_tag ('style', array('media' = 'all')) etc Is it possible to do the same in view.yml?? Dj On Mar 25, 11:53 am, dsb dalj...@gmail.com

[symfony-users] Re: Download files - broken pdf

2009-03-25 Thread Andrei Dziahel
oops, disregard that - i've didn't read your source, sorry. 2009/3/25 Tomasz Ignatiuk tomek.ignat...@gmail.com After line 592 which is $response-setContent(readfile($sciezka)); There are: $response-sendContent(); return sfView::NONE; I deleted $response-sendContent(); so there are only:

[symfony-users] Re: Doctrine Validator fails on unique field

2009-03-25 Thread Stefan Schweizer
Hi Justin, I have the same problem with validatin faults. To get around it we simply delete all sfGuard* entries in the dumped data.yml. Not a good solution but a working one. Maybe this is not as intended and someone finds a better way to do it later.. -Stefan

[symfony-users] Re: Validating before show up the form

2009-03-25 Thread Steve the Canuck
Hi, Without understanding all the details of your application, the most obvious thought that comes to mind is that you'd have to put some business logic that controls whether the form is displayed, or takes another course of action. You'd need to perform this operation on the model directly

[symfony-users] Re: http not working

2009-03-25 Thread Eno
On Tue, 24 Mar 2009, DeepakBhatia wrote: But I am not able to access my web pages through http. I have to type https. For example, the below will not work http://10.0.1.66/test/web/tool_dev.php/content/test Do you have Apache running locally? If so, can you connect to http://127.0.0.1

[symfony-users] Re: Form to create email accounts

2009-03-25 Thread rafix
please help me!!! On 23 mar, 22:20, rafix rafi...@gmail.com wrote: Hello friends, a few days ago I started working on a project where I need to create email accounts in the data model is a table mailbox that contains among others the following fields: username, id_domain, email I need to do

[symfony-users] Re: Admin Generator Links

2009-03-25 Thread Richtermeister
Hey Jacob, not sure that this would work with a GET request. The admin forms are usually only bound to POST requests, so maybe try using the POST method on the links. Daniel On Mar 25, 6:52 am, Jacob Coby jc...@portallabs.com wrote: Symfony 1.1 Is it possible to generate links that

[symfony-users] Re: Form to create email accounts

2009-03-25 Thread Paolo Mainardi
What kind of help you need ? On Wed, Mar 25, 2009 at 6:21 PM, rafix rafi...@gmail.com wrote: please help me!!! On 23 mar, 22:20, rafix rafi...@gmail.com wrote: Hello friends, a few days ago I started working on a project where I need to create email accounts in the data model is a table

[symfony-users] Re: Admin Generator Links

2009-03-25 Thread Richtermeister
On second thought, even if that works, you'd still get all missing fields marked as erroneous. I'll keep thinking about it :) On Mar 25, 6:52 am, Jacob Coby jc...@portallabs.com wrote: Symfony 1.1 Is it possible to generate links that auto-fill fields for the   create action in the admin

[symfony-users] Re: Admin Generator Links

2009-03-25 Thread Jacob Coby
On Mar 25, 2009, at 1:53 PM, Richtermeister wrote: Hey Jacob, not sure that this would work with a GET request. The admin forms are usually only bound to POST requests, so maybe try using the POST method on the links. I thought about using a POST, but I think it will save the record

[symfony-users] Fixtures - can I specify a literal value on a linked table?

2009-03-25 Thread Steve the Canuck
Hi, I've got an entry in my fixture such as follows: Address: Address_1: state_prov_id: 36 street_addr: '3600 Vanrick Dr.' timezone_id: RefTimezone_1 city: Kalamazoo zip_postcode: '49001' longitude: '-85.5331' latitude: '42.2546' accuracy: '8' This fails,

[symfony-users] Re: Admin Generator Links

2009-03-25 Thread Paolo Mainardi
On Wed, Mar 25, 2009 at 6:53 PM, Richtermeister nex...@gmail.com wrote: Hey Jacob, not sure that this would work with a GET request. The admin forms are usually only bound to POST requests, so maybe try using the POST method on the links. POST methon on the Links ? Daniel On Mar

[symfony-users] Re: Form to create email accounts

2009-03-25 Thread Paolo Mainardi
On Tue, Mar 24, 2009 at 3:20 AM, rafix rafi...@gmail.com wrote: Hello friends, a few days ago I started working on a project where I need to create email accounts in the data model is a table mailbox that contains among others the following fields: username, id_domain, email I need to do

[symfony-users] Re: Admin Generator Links

2009-03-25 Thread Paolo Mainardi
On Wed, Mar 25, 2009 at 2:52 PM, Jacob Coby jc...@portallabs.com wrote: Symfony 1.1 Is it possible to generate links that auto-fill fields for the create action in the admin generator? I have a headline_edition that has many headlines. I'd like to create a link from editing the

[symfony-users] Re: please, help me!!!

2009-03-25 Thread Paolo Mainardi
I don't understand, you want someone that code for you ? What are your problems ? Where are you stuck ? Like i've said before, it's almost all Javascript and for the other follow the documentation, it's not a so hard task. Paolo Mainardi CTO Twinbit Il giorno 25/mar/09, alle ore 19:32,

[symfony-users] Re: a blank white screen

2009-03-25 Thread Eno
On Fri, 20 Mar 2009, Lee Bolding wrote: Better to dump to a text file - the only thing that can go wrong with that is permissions error or disk error (full/failure). Possibly automatically fire it off in an email... We usually fire off an email with a stack trace that goes to our

[symfony-users] sfWidgetFormI18nSelectLanguage(array('culture' = 'fr')) - how do you automatically set the culture

2009-03-25 Thread fredlab
Hey, When my widgets are created, one of them is regarding the language : 'language' = new sfWidgetFormI18nSelectLanguage(array ('culture' = 'fr')), But I need to setup the culture with a default value (here french). I would like to end up with some kind of code that will allow

[symfony-users] Re: Fixtures - can I specify a literal value on a linked table?

2009-03-25 Thread Lee Bolding
On 25 Mar 2009, at 17:59, Steve the Canuck wrote: I've got an entry in my fixture such as follows: Address: Address_1: state_prov_id: 36 accuracy: '8' This fails, because state_prov_id does not correspond to a labelled entry called 36. However, I don't want it to use a

[symfony-users] Graceful fail on saving new objects

2009-03-25 Thread Joshua
$SomeClass= new SomeClass(); $SomeClass-setId($number); $SomeClass-save(); In this example if column ID is unique and there is already a row with ID $number then trying to save this object will get an SQL Insert rejection and crap the page. Following this futher... foreach($numbers as

[symfony-users] routing, link_to, culture

2009-03-25 Thread lowshoe
hi all, i have problems in using link_to in conjunction with sf_culture. suppose i have the following routing.yml: # route for articles article: url:/:sf_culture/article/details/:article_id param: { module: article, action: show } requirements: sf_culture: (?:en|de|fr|es|pt)

[symfony-users] Re: sfWidgetFormI18nSelectLanguage(array('culture' = 'fr')) - how do you automatically set the culture

2009-03-25 Thread Arnold Ispan
Hello, You could use something like this: 'language' = new sfWidgetFormI18nSelectLanguage(array ('culture' = sfContext::getInstance()-getUser()-getCulture())), On Wed, Mar 25, 2009 at 10:02 PM, fredlab frederic.beauf...@free.fr wrote: Hey, When my widgets are created, one of

[symfony-users] Re: Graceful fail on saving new objects

2009-03-25 Thread Steve the Canuck
I would suggest this comes down to application design and logic. Your business logic should not be creating duplicates of SomeClass if the instance already exists. You can do one of two things: 1) Do a lookup to see if the key already exists 2) Add a try catch block around the statement and

[symfony-users] Re: Fixtures - can I specify a literal value on a linked table?

2009-03-25 Thread Steve the Canuck
Thanks, Lee, but it seems not, as I tried that. Accuracy is not a foreign key, but state_prov_id is. I looked at the propel task a bit, and it seems that if there is a map reference for the field, then it always looks for a label. The reason I ran into this is because I have multiple fixture

[symfony-users] Re: please, help me!!!

2009-03-25 Thread rafix
How can I validate a form field in real time? For example , after completing username field, validate if the value exists in the table before executing the action. On 25 mar, 15:00, Paolo Mainardi paolomaina...@gmail.com wrote: I don't understand, you want someone that code for you ? What are

[symfony-users] 1.2 admin module_object route

2009-03-25 Thread ken
Why is it that submitting a form tag using module_object route results in a 404 exception. Say my module is foo form action=?php echo url_for('foo/cancel?id='.$form-getObject()- getId().''.http_build_query($helper-getFormUrlParams($form), '', '')) ? method=POST ?php if($form-isMultipart() and

[symfony-users] Re: please, help me!!!

2009-03-25 Thread James
You need to create a custom render of the form, and add your own javascript validation. James On Mar 25, 2009, at 11:11 PM, rafix wrote: --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group.

[symfony-users] Re: how to use propel class in task

2009-03-25 Thread lionslair
I have this task and no matter what I try I keep getting Connection configuration required ?php class checkCurrentStatusTask extends sfBaseTask //class checkCurrentStatusTask extends sfPropelBaseTask { protected function configure() { // // add your own arguments here //

[symfony-users] Re: please, help me!!!

2009-03-25 Thread Sid Bachtiar
See this plugin, I never used it, but you might find it useful. http://www.symfony-project.org/plugins/sfFabulousPlugin On Thu, Mar 26, 2009 at 4:11 PM, rafix rafi...@gmail.com wrote: How can I validate a form field in real time? For example , after completing username field, validate if the