Re: [symfony-users] Re: different form schema between applications

2010-10-07 Thread Andrei Dziahel
$this->widgetSchema['payment_type_id'] = new > sfWidgetFormSelect(array('choices' => $choices)); >} else { >$this->widgetSchema['payment_type_id'] = new > asWidgetFormSelectRadio(array('choices' =>

Re: [symfony-users] different form schema between applications

2010-10-06 Thread Andrei Dziahel
Hi. So why not to create 2 separate form classes which extend BaseVideoForm (or VideoForm — depends of your needs and ), fill their configure()method with application-specific code and use both in appropriate applications? On Thu, Oct 7, 2010 at 01:55, Manu SW wrote: > Hi, > > Sorry if this is

Re: [symfony-users] IDE

2010-09-03 Thread Andrei Dziahel
Hi. For free — Netbeans, commercial — PHPStorm. 2010/9/3 |-|@|\/|||) > I need IDE for symfony. please introduce IDE for symfony. > > -- > 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 sub

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

2010-08-10 Thread Andrei Dziahel
Hi. My choice is JetBrains' PHPStorm. If you want *free* IDE — I'd recommend NetBeans. Both are written in Java, but it's not a problem *for me* — on Linux (Ubuntu Lucid) with 4G RAM installed both are fast as hell. 2010/8/4 Julian Reyes Escrigas > Hi > > > > I need help for find a new editor f

Re: [symfony-users] sfLucene with Symfony 1.4 + Doctrine?

2010-06-29 Thread Andrei Dziahel
Hi. Yes, it's possible. I've attached a patch 2010/6/29 Ricardo Jose Guzman Milanes > Hello > > I would like to know if this integration is possible. > > I did this: > http://forum.symfony-project.org/index.php/t/24560/ > > And it's giving me an sfloader class not found error. > > After some se

Re: [symfony-users] Colum alias in an aggregate query / Doctrine

2010-04-17 Thread Andrei Dziahel
hi. ->select('MAX(v.rang) AS max_rang, v.*') should do the job. Alias "is not set" because there's nothing to "attach" alias to. Because only *one* column is fetched by SELECT — an *aggregate column itself*. 2010/4/17 NOOVEO - Christophe Brun > After the Doctrine documentation, > http://www.d

Re: [symfony-users] Event dispatcher: Update front app template

2010-04-08 Thread Andrei Dziahel
Hi. For exactly this purpose you have to use some sort of interprocess messaging queue, like ApacheMQ or whatever. Because simple sfEventDispatcher::notify() calls just won't work in a way you want (I'm too lazy to explain, why). 2010/4/7 Dong YANG > Hello guys, > >I have a question abo

Re: [symfony-users] (Doctrine) "as" keyword doesn't work as expected. Can't figure out a query :(

2010-03-10 Thread Andrei Dziahel
Hi. WHERE statement is not applicable to calculated columns. Use HAVING instead. 2010/3/10 miguelSantirso > Hi, I have a starts_at field that keeps the date in which certain event > starts or has started (in UNIX seconds). Also, I have a minutes_long field. > I need to filter all the objects th

Re: [symfony-users] Tool for sketching mockups?

2010-02-19 Thread Andrei Dziahel
Hi. Well, there's similar one — Mockingbird (http://gomockingbird.com/). 2010/2/19 Eno > Recently, there was a thread where someone asked about the tool used to > draw the screens used in the Jobeet tutorial ( > http://www.symfony-project.org/jobeet/1_2/Doctrine/en/02). > > I have a sudden need

Re: [symfony-users] How may I add HTML code to a generated form field ?

2010-02-10 Thread Andrei Dziahel
Hi. You have to write your own form widget (let's call them sfWidgetFormInputButtonized) and then in yourForm::configure() call $this->widgetSchema['external_id'] = new sfWidgetFormInputButtonized(); I'd also recommend to inherit your widget from sfWidgetFormInput. It will save a bit of your time

Re: [symfony-users] Doctrine data-load out of memory (Ticket #7733)

2010-02-03 Thread Andrei Dziahel
Hello. I did. Fixtures' size was ~400kb total. Symfony 1.2, Doctrine 1.0. I had to increase memory_limit to (IIRC) 128Mb. This issue looks for me pretty easy-explainable. Doctrine_Import currently is actually forced to store ALL the objects recreated from fixtures in memory while importing becaus

Re: [symfony-users] No Propel in Available Tasks: upgrade from Symfony 1.1 to 1.2/1.3

2010-02-01 Thread Andrei Dziahel
Hi. Enable sfPropelPlugin in ProjectConfiguration.class.php. 2010/2/1 maxxyb > Hi > > I am trying to upgrade my Symfony project and am having problems with > the Propel portion of the upgrade. For some reason I can see no > Propel tasks in the Available Tasks list when I used the command > "sy

Re: [symfony-users] Symfony builts old tables that are not declared in schema.yml

2010-01-30 Thread Andrei Dziahel
Hello. You forgot to remove autogenerated classes from lib/(model|form|filters) and base classes too. Call doctrine:clean-model-files task if you're using Doctrine or delete obsolete classes manually if you are using propel. Another way is to remove all base classes, regenerate them and delete cl

Re: [symfony-users] execute module through php command line

2009-12-28 Thread Andrei Dziahel
Hi. You are doing it wrong. Extract these functions to dedicated tasks and run * them* with cron or whatever. Nevertheless, you still can shoot yourself in a foot by putting into cron something like > ...time... curl > 2009/12/28 Joshua > I've set up a module in my frontend application and

Re: [symfony-users] Re: Netbeans with symfony support: tasks without "sudo"

2009-12-27 Thread Andrei Dziahel
root. > > Is there anyone more? > > > On Dec 27, 8:01 pm, Andrei Dziahel wrote: > > Hi. > > > > Do not call them with sudo. Like I do. > > > > 2009/12/27 tirengarfio > > > > > > > > > Hi, > > > > > i have i

Re: [symfony-users] Netbeans with symfony support: tasks without "sudo"

2009-12-27 Thread Andrei Dziahel
Hi. Do not call them with sudo. Like I do. 2009/12/27 tirengarfio > Hi, > > i have installed Netbeans with symfony support. > > As maybe you know with this support you can execute the symfony tasks > from Netbeans. > > The problem: the tasks are executed without the "sudo" before, so the > erro

Re: [symfony-users] Re: Discount Code for Symfony Users - Perq - A Symfony Powered Website

2009-12-18 Thread Andrei Dziahel
Hi. I think it's http://www.perqworks.com/ 2009/12/18 Matt Robinson > On Dec 17, 6:30 pm, CA wrote: > > The application, which is for small business people to track employee > > paid time off, may or may not be right for you, but I wanted to give > > back some way I could. > > > > Use SYMFONY5

Re: [symfony-users] enum in config/schema.yml

2009-12-15 Thread Andrei Dziahel
Hi. 2009/12/15 > Could I do a enumeration in the file schema.yml? > Yes (in Doctrine, at last). > In other words, I need the attribute authors like a enumeration of ids. > This ids would be foreign keys of the entity person or something like that. > How can I do it? > No, you can't. Why not jus

[symfony-users] Re: Why "Remember Me" stores the IP in the database?

2009-10-19 Thread Andrei Dziahel
Hi. Well, IP check *should* work. It looks like a bug. Which version? For Propel or Doctrine? 2009/10/19 HiDDeN > > I have tested this: > > - I logged in marking the "remember me" option. > - I closed the browser > - I changed the IP field in the sf_guard_remember_key table > corresponding to m

[symfony-users] Re: How to know if an object has been modified

2009-10-06 Thread Andrei Dziahel
Hi. Use isModifiedmethod. 2009/10/2 Ignacio Bergmann > Hello, this is my first message to the list... hope it isn't a silly > question. > > I'm using Doctrine, and I have a class in my model which has a field that > stores

[symfony-users] Re: Symfony has definitely become too complicated framework

2009-09-24 Thread Andrei Dziahel
Hi. So what's wrong with components? Can't your designer learn to look into apps//modules//templates/_.php when encountering or what? 2009/9/24 bghost > > This is generated HTML code that I got after inserting the language > component within a table cell: > > > > where component 'language' is

[symfony-users] Re: Symfony has definitely become too complicated framework

2009-09-18 Thread Andrei Dziahel
Hi. Well, for me essence and purpose of symfony is to reduce efforts while developing and adjusting complicated and mid-size to large applications. According to my experience, symfony does this job almost perfectly. And yes, I've once tried to build wordpress-like blog with symfony, but abandoned

[symfony-users] Re: static pages module

2009-09-14 Thread Andrei Dziahel
hi. symfony generate:module Actually, you'd find it much faster, if you'd examined output of ./symfonycommand line by line. 2009/9/14 Mihai RUSOAIE > > Hello! > > Thanks for the quick reply. How can I generate a module without a model? > > -bash-3.2$ ./symfony propel:generate-module frontend s

[symfony-users] Re: No release available for plugin "csDoctrineActAsAttachablePlugin"

2009-09-07 Thread Andrei Dziahel
Hi. Download it from http://plugins.symfony-project.org/get/csDoctrineActAsAttachablePlugin/csDoctrineActAsAttachablePlugin-1.0.1.tgz, save it somewhere and try to symfony plugin:install path/to/plugins/csDoctrineActAsAttachablePlugin-1.0.1.tgz Should work. 2009/9/7 SNake! > > Hi guys, > > I

[symfony-users] Re: sfDoctrineActAsTaggablePlugin question

2009-09-02 Thread Andrei Dziahel
Hi. Have you tried to pass to getPopulars() a query similar to this one? > $q = Doctrine_Query::create()->from('Article a')->where('a.active = ?', > true); > 2009/9/1 Kevin Bond > Hi Guys, > > I have a question about this plugin for anyone who knows about it. > > I have an Article model that I

[symfony-users] Re: app.yml nested settings dont work

2009-08-25 Thread Andrei Dziahel
Hi. You should print_r('app_thumbshot') Look into web debug toolbars' config section first. 2009/8/25 mintao > > I may understood sth wrong, but here's my problem: > > app.yml: > > all: > .thumbshots: >thumbshot: > path: images/thumbs > quality : 75 > max_age: 30 > de

[symfony-users] Re: sfWidgetFormDoctrineChoice with i18n

2009-08-17 Thread Andrei Dziahel
Hi. Here is an excerpt from my blablaForm::setup(): > $this->setWidget('country', > new sfWidgetFormDoctrineSelect(array('model' => 'Country', > 'query' => Doctrine::getTable('Country')-> > createQuery('c')->leftJoin('c.Translation ct')->orderBy('c.order DESC, > ct.name ASC';

[symfony-users] Re: sfWidgetFormDoctrineChoice with i18n

2009-08-16 Thread Andrei Dziahel
Hi. 1. No, it doesn't. 2. Yes, you can -- just pass your own query to widget using its "query" option. And, by magic implemented in sfDoctrineRecordI18nFilter::filterGet(), all the values become localized automatically. 2009/8/17 afilina > > I have a model generated with Doctrine named Product

[symfony-users] Re: class loading

2009-08-07 Thread Andrei Dziahel
Hi. No, you didn't. You've simply extnded base actions' class provided by plugin. 2009/8/7, cirpo : > > Hi, there's something i can't understand about class loading. > > Scenario: > - symfony 1.2 > - sfDoctrineGuardPlugin > > As written in the sfDoctrineGuardPlugin README, you can customize > s

[symfony-users] Re: symfony extensible model for other data source than default ORM (API, SOAP WS, CouchDB...)

2009-08-04 Thread Andrei Dziahel
Hi. Take my +1 too. Regards. 2009/7/31, JP : > > Hi, > > In symfony 1.2, I can only create models using one of the 2 ORMs > Doctrine or Propel. Each of the 2 plugins implements some tasks for > generating an admin backend, creating fixture data, some input > validation. > > Now let's say I want

[symfony-users] Re: doctrine : how to make an table alias with the same main table ?

2009-07-15 Thread Andrei Dziahel
Hi. Of course there's no alias named FileType, since nor you, nor NestedSetTemplate does not define it. According to your query, it looks like $q->fetchTree()instead of $q->execute() will fit you needs. 2009/7/15 Olivier LOYNET > Hi, > > > > I’ve the following SQL query working well to get all

[symfony-users] Re: Install Plugin manualy

2009-06-30 Thread Andrei Dziahel
Hi. You can symfony plugin:install path/to/downloaded/plugin/archive.tar.gz and it should become installed. 2009/6/30 seifolah Ghaderi > Hi . > I Want to add plugin manually ,I see some plugin contains some folder and > module. > I Download some symfony plugin and extract it.But it contains onl

[symfony-users] Re: Install Plugin manualy

2009-06-30 Thread Andrei Dziahel
Hi 2009/6/30 Sid Bachtiar > > What is that one file? If it is .tar.gz, then you need to extract it. It's > like zip file. Looks like he extracts .gz and gets one .tar file :) > > > On Tue, Jun 30, 2009 at 7:54 PM, seifolah Ghaderi > wrote: > > Hi . > > I Want to add plugin manually ,I see some

[symfony-users] Re: doctrine errors.

2009-06-21 Thread Andrei Dziahel
Hi. Can we take a look at your schema? 2009/6/20 Rajat > > Hello All, > I keeping getting these errors > when i do the std doctrine:build-all-load > > >> doctrine Could not create database for c...logrollplease'; database > exists > >> doctrine generating model classes > >> doctrine generati

[symfony-users] Re: sf_data getRaw in partial

2009-06-19 Thread Andrei Dziahel
hi. Can $var->getRawValue()->get(6)->description do the job? 2009/6/19 gimler > > can i get a raw value in a partial with $sf_data? > > sample code: > > var is a doctrine collection > > this will work in the template but not in the partial? > getRaw('var')->get(6)->description; ?> > > template

[symfony-users] Re: Recommendations for affordable managed hosting that's Symfony 1.2-ready and secure

2009-06-18 Thread Andrei Dziahel
Hi, Tom. Take a look at Dreamhost — it meets all your requirements. Regarding to netpbm, pnmtopng etc. - I suppose you'll have to compile them yourself (if they aren't installed already). But generally it takes only ./configure --prefix=/home/username/ && make && make install. Yes, hoster allows t

[symfony-users] Re: yaml config file array syntax

2009-05-08 Thread Andrei Dziahel
Hi. Take a peek into web debug panel, "config" => "settings" => look for paypal — and you'll eventually figure everything you ask for yourself. 2009/5/8 Steve the Canuck > > I'm trying to retrieve the following as an array from my app.yml: > > app_paypal_postback_status > > I've tried the follo

[symfony-users] Re: need advice: am switching from a Linux to a Windows development environment

2009-05-07 Thread Andrei Dziahel
Hi. My company loaned me an laptop with preinstalled WinXP. I've just resized windows' partition to free space for Linux et voilà! 2009/5/7 Jake Barnes > > > > On May 6, 9:23 pm, Pablo Godel wrote: > > Have you considered running linux on vmware or virtual box? > > Yes, but I've read that is v

[symfony-users] Re: sfGuardDoctrinePlugin admin problems with Timestampable

2009-05-05 Thread Andrei Dziahel
Hi. Follow plugins' README first. 2009/5/5 maithili.k > > Hi ken,can u please tell me the steps for implementing > sfGuardDoctrinePlugin with symfony.I am new to symfony.I dont have > any idea using plugins in symfony.Thnaks in advance. > > On May 3, 10:15 am, ken wrote: > > I'm using late

[symfony-users] Re: Customize created_at field in Propel

2009-05-04 Thread Andrei Dziahel
able: > > created: > > name: created_date > > type: timestamp > > > > > > *From:* symfony-users@googlegroups.com [mailto: > symfony-us...@googlegroups.com] *On Behalf Of *Andrei Dziahel > *Sent:* 04 May 2009 12:47 > *To:* symfony-users@

[symfony-users] Re: Customize created_at field in Propel

2009-05-04 Thread Andrei Dziahel
Hi. AFAIK, no - created_at and updated_at behavior is hardcoded, as far I can remember. 2009/5/1 HiDDeN > > Maybe it is not possible? > > On 30 abr, 21:31, HiDDeN wrote: > > How can I customize the name of the created_at field? > > > > I mean, I'd like to have a field named, for example, creat

[symfony-users] Re: Extra i18n file

2009-05-03 Thread Andrei Dziahel
Hi. Looks like it isn't. The only guaranteed layout to work, AFAIK (as written at http://www.symfony-project.org/book/1_2/13-I18n-and-L10n#chapter_13_sub_using_dictionary_files), is > i18n > |-messages.de.xml > |-messages.nl.xml > |-signin_form.de.xml > \-signin_form.en.xml > and so on. By the w

[symfony-users] Re: Problems with doctrine:data-load

2009-04-22 Thread Andrei Dziahel
hi. You can also try to enclose descriptions in apostrophes or quotes. 2009/4/22 Gary Rojas > > I'm having a problem with my fixture data. This is a part of > data/fixtures/status.yml > > pltStatus: > pltStatus_ina: >id: ina >name: Inactivo >description: El registro ha sido desacti

[symfony-users] Re: Problem loading fixtures for NestedSets using Doctrine

2009-03-31 Thread Andrei Dziahel
t is going on. > > Thanks, Jon > > > On Tue, Mar 31, 2009 at 6:20 AM, Andrei Dziahel wrote: > >> Hi, all. >> >> I have an model class that acts as NestedSet and I18n simultaneously. When >> I'm trying to import following fixture.yml via symfony doc

[symfony-users] Problem loading fixtures for NestedSets using Doctrine

2009-03-31 Thread Andrei Dziahel
Hi, all. I have an model class that acts as NestedSet and I18n simultaneously. When I'm trying to import following fixture.yml via symfony doctrine:data-load, it throws "Unknown method ProfileStat::setChildren" error message. symfony 1.2.4, Doctrine 1.0.*8* (I've updated Doctrine to latest 1.0 af

[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 > 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-

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

2009-03-25 Thread Andrei Dziahel
hi, all. isn't > $response->setContentType('mimetype/you-want'); > $this->setLayout(false); //if you content-type has 'html' substring > return $this->renderText(file_get_content($file)); a right way to push a file to user? E.g., I thought you shouldn't ever call $response->sendContent() inside

[symfony-users] Re: plugin:publish-assets vs. Linux/SVN

2009-03-17 Thread Andrei Dziahel
Hi. Right as you said - I'm ignoring web/*Plugin and doing symfony plugin:publish-assets after every update. I also think this snippet should look like > rm web/*Plugin > symfony plugin:publish-assets > since you may delete some plugins during development. 2009/3/17 Yevgeniy A. Viktorov > > >

[symfony-users] Re: password - minimum 1 number - sfValidatorRegex

2009-03-10 Thread Andrei Dziahel
Hello. Maybe you've forgot delimiters? Pattern passed to preg_match should be overlapped with two same chars, usually '/'s. So right pattern will be */* [0-9]{1,}*/* BTW, this regex looks too complicated. I'd wrote something like \d+ - same effect, and better optimized, probably. 2009/3/10 dzioba

[symfony-users] Re: In the Base model classes, what does alreadyInSave accomplish?

2009-03-02 Thread Andrei Dziahel
Hi. I don't remember exactly since I've left Propel some time ago, but AFAIR there's explanation in comments. Just enable them in your propel.ini and rebuild model. On Mon, Mar 2, 2009 at 07:42, Lawrence Krubner wrote: > > I'm examining some auto-generated code in the Base class of one of my mod

[symfony-users] Re: Disable JS events until page fully loads

2009-02-27 Thread Andrei Dziahel
You should bind (no onclicks&onmouseovers!) event handlers inside handler of onDOMReady (or documentReady) event. But this thread is offtopic. On Fri, Feb 27, 2009 at 15:17, Sumedh wrote: > > Hi Friends, > > I've put all my JS includes at the bottom of pages...that improves > visible performanc

[symfony-users] Re: Propel - Two columns of a table not_equal

2009-02-26 Thread Andrei Dziahel
Hi. Try $c->add(TablePeer::Column1, TablePeer::Column2 . ' ' . Criteria::NOT_EQUAL . ' ' . TablePeer::Column1, Criteria::CUSTOM); On Thu, Feb 26, 2009 at 22:10, Tomasz Ignatiuk wrote: > It is not working. Neither NOT_LIKE nor NOT_EQUAL > > 2009/2/26 Jan De Coster > > >> $c->add(TablePeer::Colum

[symfony-users] Re: sfWidgetFormTextareaTinyMCE() not working

2009-02-26 Thread Andrei Dziahel
Hi, Look into this ticket - http://trac.symfony-project.org/ticket/4952 On Thu, Feb 26, 2009 at 16:18, we-create wrote: > > when i try to call this function with: > > 'inhoudnl' => new sfWidgetFormTextareaTinyMCE( > array( >'width'=>550, >'height'=>350, >'config'=>'

[symfony-users] Re: postValidator question

2009-02-25 Thread Andrei Dziahel
Hi. Yes. http://www.symfony-project.org/book/forms/1_2/en/02-Form-Validation#chapter_02_global_validators On Wed, Feb 25, 2009 at 14:30, samokhinva...@gmail.com < samokhinva...@gmail.com> wrote: > > Hi guys, > > I have the following question. I have a form for password changing > with three fiel

[symfony-users] Re: sfWidgetFormTextareaTinyMCE not working in admin

2009-01-13 Thread Andrei Dziahel
Look at here. http://trac.symfony-project.org/ticket/4918 On 30 дек 2008, 14:53, Tartaruga wrote: > I have generated an admin interface to a Model that contains i18n. > Then in the form class I embedded i18n. If I use normal textarea > everything works, if I switch tosfWidgetFormTextareaTinyMCE

[symfony-users] Re: sfWidgetFormTextareaTinyMCE not working in admin

2009-01-13 Thread Andrei Dziahel
Hi. I'm experiencing same thing. Module is generated with DoctrineAdminGenerator too. As far as I can see, TinyMCE just doesn't retrieve value from textarea - even if it is filled, TinyMCE widget is empty. Well, that's all by now. On 30 дек 2008, 14:53, Tartaruga wrote: > I have generated an

[symfony-users] Re: autocompletion and syntax highlighting for symfony?

2008-12-08 Thread Andrei Dziahel
Hi, Ward. I am using Zend Studio 6, looking forward for NetBeans 7.0 (with "symfony support"). There's a bit of pages in symfony's wiki [http:// trac.symfony-project.org/#IDE] that describe symfony integration into various shells and IDEs. On 8 дек, 10:17, Ward Loockx <[EMAIL PROTECTED]> wrote: