[symfony-users] Extra var in route

2011-01-31 Thread HAUSa
Is it possible in an sfPropelRoute to include extra parameters in the URL, that doesn't correspond to the object? For example, my object: item: id title slug message created_at updated_at This is a correct sfPropelRoute url: topic_show: url: /part1/:slug class:

[symfony-users] Output escaper in template

2011-01-21 Thread HAUSa
If I try to access a function in my User class (myUser.class.php), the results is being escaped in a template. This makes the code below a mess: ?php if(!in_array($topic-getId(), $sf_user-getTopics())): ? I receive this error message: Warning: in_array() expects parameter 2 to be array, object

[symfony-users] Extra var in sfPropelRoute

2011-01-20 Thread HAUSa
Is it possible in an sfPropelRoute to include extra parameters in the URL, that doesn't correspond to the object? For example, my object: item: id title slug message created_at updated_at This is a correct sfPropelRoute url: topic_show: url: /part1/:slug class:

[symfony-users] Routing: different character between vars

2011-01-20 Thread HAUSa
Is it possible to use other characters in a route, except only the slash (/)? For example, I want to use the dash (-): This works: (1) /myroute/:slug/:id Instead I want: (2) /myroute/:slug-:id This results in: (1) /myroute/my-item/56 (2) /myroute/my-item-56 -- If you want to report a

[symfony-users] Baan PHP Symfony programmeur

2011-01-11 Thread HAUSa
Because this is a job offer in Holland, please forgive me that I continue in Dutch. KiwiMedia (Utrecht) zoekt per direct een PHP Symfony programmeur! Ben je zelf op zoek naar een fulltime baan of ken je iemand? Neem dan contact met ons op! Momenteel doen wij projecten voor de Rabobank, de

[symfony-users] Special char in flash

2010-12-21 Thread HAUSa
How can I use a special char in a user flash message? When I use krantcafé (the é), the flash is empty and displays an empty error div. When I set Krantcafé, is see exactly that in my website. How can I just get the é character? I use the UTF-8 charset -- If you want to report a vulnerability

[symfony-users] Re: No embed form bind

2010-12-17 Thread HAUSa
on a Propel model, and the embedded forms are? Thanks for your help! :) On 16 dec, 23:09, guiguiboy guillaume.bre...@gmail.com wrote: Hi, Have you tried doing a print_r on $oForm-getValues() ? Guillaume B. On 16 déc, 19:31, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: Weird... when I

[symfony-users] No embed form bind

2010-12-16 Thread HAUSa
Weird... when I bind my form, the embedded forms don't receive the values. This is my action: $oForm = new UserSocialNetworkLinksForm(NULL, array('linked' = $aLinked)); if($oRequest-isMethod('post')){

[symfony-users] Memory size in a task

2010-11-30 Thread HAUSa
If I run a task created in my lib/task folder, I get this error: PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 71 bytes) in /usr/share/symfony/1.4/lib/plugins/ sfPropelPlugin/lib/vendor/propel/util/PropelConfiguration.php on line 100 Fatal error: Allowed

[symfony-users] Re: Memory size in a task

2010-11-30 Thread HAUSa
Can I configure this in the .htaccess as well? On 30 nov, 17:31, Macvek mac...@gmail.com wrote: Hi, You should edit 'memory_limit' in your php.ini. I've set it to 128M and every task works well. Regards, Maciej Aleksandrowicz 2010/11/30 HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com

[symfony-users] class creation from plugin

2010-11-18 Thread HAUSa
In a plugin I have a schema.yml. When I do propel:build all, a model is created in /lib/model/ Object.php But, I already have that class! In /plugins/myPlugin/lib/model/Object.php How can I overwrite the normal class with my plugin class? It would be very crappy if I have to extend it an make it

[symfony-users] Create a social community for a large media company

2010-10-20 Thread HAUSa
KiwiMedia is recruiting a PHP Symfony developer for the development of an online community. Because we're searching for someone from Holland, the rest is in Dutch: KiwiMedia(.nl) zoekt een Symfony PHP programmeur voor 4 dagen in de week! Het gaat om het ontwikkelen van een community voor de

[symfony-users] Clear cache in action

2010-10-07 Thread HAUSa
Is there a way to clear my cache in an action, using PHP? -- 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, send

[symfony-users] Other in sfWidgetFormI18nChoiceCountry

2010-09-29 Thread HAUSa
Is there a way to define an other country in the sfWidgetFormI18nChoiceCountry? For example, I support 5 countries by choice. The last option is always other. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message

[symfony-users] Session won't last

2010-09-03 Thread HAUSa
My session won't hold! After 30 minutes, I'm logged out again! I obvious must have gotten something wrong, but I cannot figure it out... This is my factories.yml: test: storage: class: sfSessionTestStorage param: session_path: %SF_TEST_CACHE_DIR%/sessions response: class:

[symfony-users] Session won't last

2010-09-03 Thread HAUSa
Why won't my session last longer than 30 minutes? This is my factories.yml: test: storage: class: sfSessionTestStorage param: session_path: %SF_TEST_CACHE_DIR%/sessions response: class: sfWebResponse param: send_http_headers: false mailer: param:

[symfony-users] Re: IE8 and isXmlHttpRequest

2010-09-02 Thread HAUSa
Can you make something out of this? On 1 sep, 16:14, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: Thx :) I've been using: * Symfony 1.4.9 * jQuery 1.4.2 My call in my HTML template: setTimeout(ajax('div_javascript_ajax', '/en/world');, 1); The JS function: function ajax

[symfony-users] Re: Timers in prod

2010-09-02 Thread HAUSa
Nobody? On 1 sep, 12:11, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: In my prod environment, the timers are empty (sfTimerManager::getTimers()) How can I turn these on in prod? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony

[symfony-users] Re: IE8 and isXmlHttpRequest

2010-09-02 Thread HAUSa
number (like the actual timestamp) in the URL, in your ajax JS function, to check if it's a cache problem. On Thu, Sep 2, 2010 at 9:03 AM, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: Can you make something out of this? On 1 sep, 16:14, HAUSa jeroen_heeft_behoefte_aan_r

[symfony-users] Re: IE8 and isXmlHttpRequest

2010-09-01 Thread HAUSa
, Pensez à Votre Responsabilitée Environnementale! On Tue, Aug 31, 2010 at 8:20 PM, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: In IE8, my isXmlHttpRequest function doesn't work. In my template, I use ?php if(!$sf_request-isXmlHttpRequest()): ? to hide content if it is an AJAX

[symfony-users] Timers in prod

2010-09-01 Thread HAUSa
In my prod environment, the timers are empty (sfTimerManager::getTimers()) How can I turn these on in prod? -- 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] Re: IE8 and isXmlHttpRequest

2010-09-01 Thread HAUSa
and isXmlHttpRequest 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

[symfony-users] Re: IE8 and isXmlHttpRequest

2010-09-01 Thread HAUSa
1, 2010 at 9:25 AM, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: I use jQuery... function ajax(sId, sUrl){        $('#' + sId).load(sUrl); } On 1 sep, 13:50, Gábor Fási maerl...@gmail.com wrote: Correct - jquery, prototype, mootols - all major ones do. If you use

[symfony-users] IE8 and isXmlHttpRequest

2010-08-31 Thread HAUSa
In IE8, my isXmlHttpRequest function doesn't work. In my template, I use ?php if(!$sf_request-isXmlHttpRequest()): ? to hide content if it is an AJAX call. Firefox handles this okay, but IE8 shows the entire template, as well as the complete layout again! How is this possible? Bug? Anyone who

[symfony-users] Check culture in i18n form

2010-08-19 Thread HAUSa
When I'm in the i18n form class (example: PageI18nForm.class.php), how can I see for which culture it is? Because in the PageForm.class.php, the PageI18nForm.class.php is called for each culture I embed it for. So, I need to retrieve that in the i18n form itself. -- If you want to report a

[symfony-users] Re: IF() in Propel query

2010-07-19 Thread HAUSa
with the new with method that add custom select statement and hydrate them in the object. On Jul 18, 7:58 pm, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: If everything goes well, a SQL file is created in your /data/sql folder. I don't know why that does not happen, it should

[symfony-users] IF() in Propel query

2010-07-18 Thread HAUSa
Hi all, Is it possible to use IF() in a Propel query? I want a query like this: SELECT product.*, IF(MAX(bids.bid) product.price, MAX(bids.bid), product.price) as current_price FROM product LEFT JOIN bids ON (product.id = bids.product_id) Thank, hope that someone can help me. Looked

[symfony-users] Re: genUrl with object

2010-07-18 Thread HAUSa
for thinking with me! On 16 jul, 10:30, Gábor Fási maerl...@gmail.com wrote: What's the error message? Did you try removing the *? On Fri, Jul 16, 2010 at 10:19, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: Anyone? On 14 jul, 15:39, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com

[symfony-users] Re: IF() in Propel query

2010-07-18 Thread HAUSa
If everything goes well, a SQL file is created in your /data/sql folder. I don't know why that does not happen, it should :) Otherwise try build-all. Beware, this creates the model files as well and replaces the database. Please back to topic! Feel free to open a new discussion for this one. I'm

[symfony-users] Re: genUrl with object

2010-07-18 Thread HAUSa
Yes, I'm sure. Did a print_r($oAdvertisement) check just now to confirm. On 18 jul, 19:45, Gábor Fási maerl...@gmail.com wrote: Are you sure $oAdvertisement is not null? Can you call its getId and getSlug methods? On Sun, Jul 18, 2010 at 19:42, HAUSa jeroen_heeft_behoefte_aan_r

[symfony-users] Re: genUrl with object

2010-07-18 Thread HAUSa
It's official: you are my hero. Thanks! On 18 jul, 20:14, Gábor Fási maerl...@gmail.com wrote: Try generateUrl instead of genUrl  public function generateUrl($route, $params = array(), $absolute = false) On Sun, Jul 18, 2010 at 20:00, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote

[symfony-users] Re: genUrl with object

2010-07-16 Thread HAUSa
Anyone? On 14 jul, 15:39, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: Yes: advertisement_show:   url:     /:sf_culture/advertisement/show/:id/:slug/*   class:   sfPropelRoute   options: { model: Advertisement, type: object }   param:   { module: advertisement, action: show

[symfony-users] Method option in sfPropelRoute not accepted

2010-07-14 Thread HAUSa
I got a feeling that my method option is ignored: advertisement_show: url: /:sf_culture/advertisement/show/:id/:slug/* class: sfPropelRoute options: { model: Advertisement, type: object, method: adsasdgas } param: { module: advertisement, action: show } requirements:

[symfony-users] genUrl with object

2010-07-14 Thread HAUSa
I can't use genUrl like this: genUrl('advertisement_show', $Advertisement) where $Advertisement is the object for the sfObjectRoute The only way to do so is to call it like this: genUrl('advertisement_show?id=' . $Advertisement-getId() . 'slug=' . $Advertisement-getSlug()) But that, ofcourse,

[symfony-users] Re: Method option in sfPropelRoute not accepted

2010-07-14 Thread HAUSa
Doesn't work either, gets ignored as well On 14 jul, 13:37, Daniel Lohse annismcken...@googlemail.com wrote: http://www.symfony-project.org/reference/1_4/en/10-Routing#chapter_10... :) On 14.07.2010, at 13:20, HAUSa wrote: I got a feeling that my method option is ignored

[symfony-users] Re: genUrl with object

2010-07-14 Thread HAUSa
, 15:32, Gábor Fási maerl...@gmail.com wrote: Is your route declared as sfPropelRoute/sfDoctrineRoute? On Wed, Jul 14, 2010 at 15:23, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: I can't use genUrl like this: genUrl('advertisement_show', $Advertisement) where $Advertisement

[symfony-users] Re: Method option in sfPropelRoute not accepted

2010-07-14 Thread HAUSa
Ow now it does... hmmm weird. Thanks, it all works fine now! On 14 jul, 15:38, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: Doesn't work either, gets ignored as well On 14 jul, 13:37, Daniel Lohse annismcken...@googlemail.com wrote: http://www.symfony-project.org/reference/1_4/en

[symfony-users] i18n doesn't save

2010-07-05 Thread HAUSa
I got two classes, user and user_i18n. In my UserForm.class.php, I embed two UserI18nForm.class.php. When I print my form, it looks all okay. But something strange happens when I try to save the form ($form-save()). If the records in the user_i18n database table don't exist yet, saving goes well.

[symfony-users] Re: Use database in app.yml

2010-07-04 Thread HAUSa
to insert some configuration into the app.yml from database? For what do you need this configuration setting? On 1 čnc, 14:51, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: I want to use some configuration settings from the database in my app.yml configuration file. This is my

[symfony-users] Use database in app.yml

2010-07-01 Thread HAUSa
I want to use some configuration settings from the database in my app.yml configuration file. This is my code now: all: ?php foreach(SettingPeer::getIndex() as $oSetting): ? ?php echo $oSetting-getSlug() . ': ' . $oSetting-getValue() ? ?php endforeach; ? But the error I receive says No

[symfony-users] I18n in form filter

2010-06-23 Thread HAUSa
Is it possible to use fields from the i18n object table in the form filter? So can I embed the UserI18nFormFilter class in my UserFormFilter? The normal embedI18n function from the sfForm class doesn't work... -- If you want to report a vulnerability issue on symfony, please send it to

[symfony-users] PHP in admin generator generator.yml

2010-06-21 Thread HAUSa
Is it possible to use PHP code in the .yml generator files of the admin generator? -- 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

[symfony-users] Translation in form class

2010-06-21 Thread HAUSa
How can I get a I18n translation in my form class? I want to use the __() function in my UserForm.class.php. -- 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] IP address

2010-06-15 Thread HAUSa
How do I lookup the users IP address? -- 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, send email to

[symfony-users] sfWidgetFormI18nLanguageChoice not found

2010-05-25 Thread HAUSa
In form I use the sfWidgetFormI18nLanguageChoice. But, when I try to load the page, it says the sfWidgetFormI18nLanguageChoice class cannot be found. How is that possible? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received

[symfony-users] Re: sfWidgetFormI18nLanguageChoice not found

2010-05-25 Thread HAUSa
By the way, I use Symfony 1.4 :) On 25 mei, 17:32, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: In form I use the sfWidgetFormI18nLanguageChoice. But, when I try to load the page, it says the sfWidgetFormI18nLanguageChoice class cannot be found. How is that possible? -- If you

[symfony-users] Re: sfWidgetFormI18nLanguageChoice not found

2010-05-25 Thread HAUSa
Ah that's it! The new docs are wrong! On 25 mei, 17:38, Tom Haskins-Vaughan t...@templestreetmedia.com wrote: Try sfWidgetFormI18nChoiceLanguage On Tue, May 25, 2010 at 11:33 AM, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: By the way, I use Symfony 1.4 :) On 25 mei, 17:32

[symfony-users] project reserved

2010-05-17 Thread HAUSa
Is project a special reserved word in your data model for Symfony / Propel? I know MySQL accepts it as a table name. Is there a hack for still using it? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message

[symfony-users] Compatibility PHP 5.3

2010-05-15 Thread HAUSa
Anyone who has experienced using Symfony on PHP 5.3? Did it all run fine? No compatibility errors / bugs? The Symfony versions 1.1, 1.2, 1.4? -- 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

[symfony-users] Check object relations

2010-04-19 Thread HAUSa
Is it possible to check for an object if there are any foreign key restrictions in effect? So deletion of that object is not possible? -- 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

[symfony-users] Re: Partial in component

2010-04-01 Thread HAUSa
. In a component you can include a partial in the template like this: ?php echo include_partial('module/partial', $params)? I use in several components without problem. Manel On 31 mar, 17:23, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: In an action I can use $this-getPartial

[symfony-users] Partial in component

2010-03-31 Thread HAUSa
In an action I can use $this-getPartial('system/email_template'), but that doesn't work in an component. How can I do this in a component? -- 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

[symfony-users] Propel extend Criteria different functions

2010-03-15 Thread HAUSa
If you want to make OR term in Propel, you need to make a Criterion object that adds the OR terms to the Criteria object. Now I build my Criteria by use of several functions. This is the first: public static function getAttentionCriteria(Criteria $oCriteria = NULL){

[symfony-users] Check for a non-existing relation in Propel

2010-03-11 Thread HAUSa
I have a multi-multi relation in my model: zipcode: id:{ type: integer, required: true, primaryKey: true, autoIncrement: true } region_id: { type: integer, foreignTable: region, foreignReference: id, required: true, onDelete: cascade } slug: { type: varchar, required:

[symfony-users] Propel double join

2010-03-04 Thread HAUSa
In Propel I have a double JOIN: the Zipcode table is joined in a query on the User table. Now I have two functions which both join the Zipcode table: * addSortCriteria() * addFilterCriteria() When a user sorts on a record from the Zipcode table (addSortCriteria), the Zipcode table is joined, as

[symfony-users] Number range in AdminGen

2010-03-03 Thread HAUSa
. As far as I can see, there is not such an option for number fields (integers, decimals, floats). That would be very helpful for filtering, for example if you want to filter products between the 50 and 75 euro's. Does somebody know a plugin or way to easily accomplish a number range filter? Thx, HAUSa

[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 jeroen_heeft_behoefte_aan_r...@hotmail.com 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

[symfony-users] Check if partial exists

2010-03-01 Thread HAUSa
Is there a way to check if a partial exists in the template? I've looked around in Google, but it doesn't give very useful results... -- 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

[symfony-users] updateObject() or save()

2010-02-25 Thread HAUSa
When a Propel form is submitted, I want some values to be set manually by the system. So I have to extend the form object like I do with a normal object class. For example, when a User is saved, the extended class looks like this: public function save(){ $this-setRandom(rand(1,99)); return

[symfony-users] url_for with extra parameters

2010-02-12 Thread HAUSa
I'm using the url_for helper to generate a link in my template. The link has to go to an object detail page (sfPropelRoute) and has send some GET parameters as well. This is my route: article_route: url: /:sf_culture/article/:id/:slug/* class: sfPropelRoute options: { model: Article,

[symfony-users] AJAX form fields

2010-02-05 Thread HAUSa
Right now I have two form widgets which are of the class sfWidgetFormPropelChoice. The second field has about 20 choices, but can be filtered by the first one. Is it possible in a quick and neat way to replace the all the options of the second form field by the filtered options (about 5) when a

[symfony-users] CSRF attach with admin generator

2010-02-04 Thread HAUSa
For some reason, I _always_ get a CSRF attack error message when I use the admin generator and want to execute a batch action. I can't fix it as well, I don't know where that error is coming from. Is there anyone who ran into the same problem or can help me? -- You received this message because

[symfony-users] Re: CSRF attach with admin generator

2010-02-04 Thread HAUSa
It is disabled, I test via the dev environment. I also tried to clear the cache several times On 4 feb, 12:56, Tyler tyler.gr...@gmail.com wrote: check cache for your app, is it enabled? On 4 фев, 13:52, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: For some reason, I _always_

[symfony-users] Date validator problem

2010-01-19 Thread HAUSa
I use a date input widget, which is configured as below: $this-widgetSchema['birth_date']= new sfWidgetFormDate(array( 'format' = '%day%-%month%-%year%', 'years' = range(date('Y') - 15, date('Y') - 4) )); My

[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] Weird url_for bug

2009-12-11 Thread HAUSa
When I use the url_for() function, the output is without the controller prefix. Example, on controlpanel_dev.php/system/sign_in_form I place the form, and I use echo url_for('system/sign_in') The output now is /system/sign_in, while it should be controlpanel_dev.php/system/sign_in! Anyone who

[symfony-users] Re: Weird url_for bug

2009-12-11 Thread HAUSa
...@gmail.com wrote: Check your no_script_name setting. On Fri, Dec 11, 2009 at 12:41, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: When I use the url_for() function, the output is without the controller prefix. Example, on controlpanel_dev.php/system/sign_in_form I place the form

[symfony-users] i18n:extract for the forms

2009-12-07 Thread HAUSa
Is there a method like the php symfony i18n:extract frontend en command to automatically generate the language XML for the forms? -- 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] Join with multiple primary keys

2009-11-23 Thread HAUSa
How can I set a join table with propel for a i18n table? That table has to be joined by the id and culture field, but as far as I know the Criteria::addJoin() function only supports just one join criteria. -- You received this message because you are subscribed to the Google Groups symfony

[symfony-users] Different main template

2009-11-23 Thread HAUSa
I need to have a different main template for just one action. Is that possible, or do I have to create a complete seperate app for that? -- 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] Unset embedded form

2009-11-08 Thread HAUSa
I have two classes: UserForm and UserSimpleForm. UserSimpleForm extends UserForm. In UserForm are several other forms embedded, like PhotoForm and AddressForm. For the simple version of the form, UserSimpleForm, I want to unset these embedded forms. Say unembed (is that an existing word?) them.

[symfony-users] Re: a menu for my project

2009-11-08 Thread HAUSa
Build one in HTML / CSS in a special component / partial? On 8 nov, 21:37, Relez relvis.gonza...@gmail.com wrote: Hey guys, I need a horizontal menu for my application, this menu need to be integrated with sfGuardPlugin to manage permissions. Any idea?

[symfony-users] Force empty input field

2009-11-08 Thread HAUSa
Is it possible to force an empty input field? Because when I use setDefault(), the field still has default values from the object when you edit is (object not new)... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[symfony-users] Pager without database

2009-11-08 Thread HAUSa
Is it possible to make a pager that doesn't use the database? In that case I make an array of objects myself and pass it on to the pager. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post

[symfony-users] Join i18n table

2009-11-04 Thread HAUSa
When I make a relation between two tables, it is possible to use a automatic join select. Example: message: * id * user_id message_i18n: * id * culture * subject * message user: * id * name Now I can use MessagePeer::doSelectJoinUser() Is it also possible to use

[symfony-users] Bug in PropelForm?

2009-11-04 Thread HAUSa
I think I ran into a bug in the PropelForm class. It's quite some story with a lot of large code fragments in it, that's why I think it's easier to read it on a forum: http://forum.symfony-project.org/index.php/m/87845/#msg_87845 --~--~-~--~~~---~--~~ You received

[symfony-users] Re: Delete is not work in admin generator

2009-11-04 Thread HAUSa
Are you sure the routing.yml is configured correctly? It seems to me, the URL has to be photolibrary/delete/82 On 2 nov, 11:13, saturngod saturn...@gmail.com wrote: I write generator.yml like that generator:   class:              sfPropelAdminGenerator   param:     model_class:      

[symfony-users] Re: Define model inside of apps folder

2009-11-04 Thread HAUSa
Yes, that is possible. the apps/[app name]/lib folder is automatically included. On 3 nov, 05:49, Mickael HOAREAU mickael.hoar...@bysoft.fr wrote: Hi! By default, all the models are defined inside of project_root/lib/ model/doctrine/. That makes the model accessible for every applications

[symfony-users] Enabling modules

2009-11-03 Thread HAUSa
Is it necessary to enable plugin modules in sf1.3? --~--~-~--~~~---~--~~ 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

[symfony-users] Re: Enabling modules

2009-11-03 Thread HAUSa
/sfJqueryFormValidationPlugin/lib/filter/ sfJqueryFormValidationFilter.class.php is there! On 3 nov, 09:57, Sid Ferreira sid@gmail.com wrote: yup On Tue, Nov 3, 2009 at 06:55, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: Is it necessary to enable plugin modules in sf1.3

[symfony-users] Re: Embed form layout

2009-11-03 Thread HAUSa
The only way is to do not use echo $form, but make your own template. You can use a foreach loop to discover each widget. On 3 nov, 11:04, cosmy c.zec...@gmail.com wrote: Hi again.. I have a stupid question whithout answer. I don't want to display the embedded form name in my forms, but i

[symfony-users] URL transform

2009-11-03 Thread HAUSa
When I use url_for('advertisement/index?category=' . $subcategory- getId()), the URL output is /advertisement?category=2 How can I make the URL look like /advertisement/index/category/2 ? --~--~-~--~~~---~--~~ You received this message because you are subscribed

[symfony-users] Re: URL transform

2009-11-03 Thread HAUSa
at 12:43, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: When I use url_for('advertisement/index?category=' . $subcategory- getId()), the URL output is /advertisement?category=2 How can I make the URL look like /advertisement/index/category/2

[symfony-users] Discover i18n fields in form

2009-11-02 Thread HAUSa
I embedded two UserI18nForms in my UserForm. $this-embedI18n(array('de', 'en')); This is my action: $this-form = new UserForm(); Now I want to display the forms seperately in my template. So echo $form is no option for me. Is it possible to retrieve an array of all embedded forms from the

[symfony-users] Check fields without submit

2009-11-02 Thread HAUSa
Is it possible to check form values without the user submitting it? It seems that the validators set in the form class only work when you submit. I want to have that when a user completes a field (onblur), the entered value is checked immediately. I know I can do this with AJAX, but how do I

[symfony-users] Re: Check fields without submit

2009-11-02 Thread HAUSa
name for the extra data. On Mon, 2009-11-02 at 06:01 -0800, HAUSa wrote: Is it possible to check form values without the user submitting it? It seems that the validators set in the form class only work when you submit. I want to have that when a user completes a field (onblur

[symfony-users] Configuration file for whole project

2009-10-30 Thread HAUSa
In every application is a app.yml in the config directory. Is there also a way to create one for a whole project where all config settings are available in all applications and the model? --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[symfony-users] Redirect from component

2009-10-26 Thread HAUSa
Is it possible to redirect from a component? Because the redirect() function doesn't work (Call to undefined method systemComponents::redirect) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To

[symfony-users] Multiple cultures

2009-10-26 Thread HAUSa
Is it possible to set multiple cultures for users? For example first the culture FR, then the culture EN. When a Propel object is not available in FR, it automatically takes the EN value. --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[symfony-users] Re: Multiple cultures

2009-10-26 Thread HAUSa
/13-I18n-and-L10n#chapter_13_s...  for more info. You will however still need to provide a way for users to change culture   due to the inaccuracy of browser cultures. On Mon, 26 Oct 2009 11:21:42 +0100, HAUSa   jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: Is it possible to set

[symfony-users] Re: Multiple cultures

2009-10-26 Thread HAUSa
, HAUSa   jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: That is not what I mean. When a user submits an advertisement, he/she must enter it in his own local language (for example FR) and for EN. When a dutch user (language NL) views the advertisement, there will ofcourse be no NL i18n

[symfony-users] i18n get other language

2009-10-25 Thread HAUSa
I have several i18n fields in my advertisement model, for example title and description. When a user submits an advertisement, he / she has to complete those fields in their own foreign language and in English. For example: if a German user submits, he / she has to complete it in DE and EN. A

[symfony-users] Re: i18n get other language

2009-10-25 Thread HAUSa
I use Propel. How can I create my own i18n template? Not really heard of it before :) On 25 okt, 16:54, Alexandre SALOME alexandre.sal...@gmail.com wrote: Hi,   You should create your own I18N template, inspired from the I18N Doctrine Template. 2009/10/25 HAUSa jeroen_heeft_behoefte_aan_r

[symfony-users] Required fields i18n

2009-10-23 Thread HAUSa
In my ObjectI18nForm I made several fields required. I embedded the ObjectI18nForm for two languages in my ObjectForm. Ofcourse, in both languages the fields are required. But I want my user to be able to submit only one language, he / she is not required to complete the fields for both

[symfony-users] Put action in cache

2009-10-23 Thread HAUSa
I have a recursive category overview. Example: Category 1 * Category 1.1 * Category 1.2 * Category 1.3 Category 2 Category 3 * Category 3.1 * Category 3.2 I also created a function in CategoryPeer.class.php named generateSelect. The output of this function is going to be: select

[symfony-users] Re: Required fields i18n

2009-10-23 Thread HAUSa
this helps ... Michael On 23 Okt., 10:49, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: In my ObjectI18nForm I made several fields required. I embedded the ObjectI18nForm for two languages in my ObjectForm. Ofcourse, in both languages the fields are required. But I want my

[symfony-users] Re: Help me for writing criteria

2009-10-21 Thread HAUSa
Maybe this helps? http://propel.jondh.me.uk/ On 21 okt, 09:45, Avani avani.v.puj...@gmail.com wrote: ya.. it's working Thanks Gareth..  :) On Oct 21, 12:12 pm, Gareth McCumskey gmccums...@gmail.com wrote: $exploded_query = explode( , $this-query); $k-getNewCriterion(

[symfony-users] Access extended I18n form class

2009-10-21 Thread HAUSa
I embedded the UserI18nForm.class.php in my UserForm.class.php: class UserForm extends BaseUserForm{ public function configure(){ $this-embedI18n('nl', 'en')); } } Now I created a new form, MyUserForm.class.php, that extends the UserForm.class.php. In that form I unset several form

[symfony-users] Re: Unset i18n field

2009-10-20 Thread HAUSa
, the in the i18nform. Example : CmsPageForm has embed CmsPageI18nForm So go to your CmsPageI18nForm and unset title or content field. Alexandre 2009/10/19 HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com In my form class, I can unset several fields. But how can I unset an i18n field

[symfony-users] Re: i18n in forms

2009-10-20 Thread HAUSa
Someone who has experience with this? On 19 okt, 10:37, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: When I have some i18n fields in my form, it is displayed like this: price:  field rank:  field en: -- title: field -- description: field nl: -- title: field -- description

  1   2   3   >