[symfony-users] doctrine searchable - full text search - non ascii characters

2010-01-31 Thread dziobacz
I have text in polish language: "ala ma kota śźćżąęłó". Doctrine searchable converts it to keywords in table: - ala - ma - kota - szczaelo So "śźćżąęłó" was saved in table as keyword "szczaelo" so when somebody writes in search "śźćżąęłó" he gets nothing - what can I do ? -- You received this me

[symfony-users] Re: I have internationalization in frontend but I don't want that in backend !!

2010-01-27 Thread dziobacz
I think this is a bug: http://trac.symfony-project.org/ticket/8194#preview On 27 Sty, 19:23, dziobacz wrote: > I have international frontend application and normal backend. I have > model Firm with column: id and model FirmTranslation with column: > offer. In frontend everything is

[symfony-users] I have internationalization in frontend but I don't want that in backend !!

2010-01-27 Thread dziobacz
I have international frontend application and normal backend. I have model Firm with column: id and model FirmTranslation with column: offer. In frontend everything is ok but in backend when I use for example query: Doctrine_Query::create()->from('Firm')->execute(); I can show all data from model F

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

2010-01-14 Thread dziobacz
thx people !! :) On 14 Sty, 20:57, tirengarfio wrote: > Well put "$" before both.. > > On Jan 14, 8:55 pm, Javier Garcia wrote: > > > On 01/14/2010 08:51 PM, dziobacz wrote:> How can I check on the layout > > current module and action which use

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

2010-01-14 Thread dziobacz
I would like to do menu like on this site: http://www.benchmark.pl/ Clicked menu has got orange color. So I think I have to do something like that for example (where id is CSS id): if (module/action = 'firm/index') echo "id='menu_index_clicked'" else echo "id='menu_index'" if (module/action = 'fi

[symfony-users] Re: sfWidgetFormJQueryDate option format is no longer supported in version 1.1.1?

2010-01-12 Thread dziobacz
Massimiliano maybe you could create a plugin from your solution and place it here: http://www.symfony-project.org/plugins/ ? :) On 12 Sty, 14:03, Massimiliano Arione wrote: > On 12 Gen, 07:57, dziobacz wrote: > > > I would like to use also format in sfWidgetFormJQueryDate in sym

[symfony-users] Re: sfWidgetFormJQueryDate option format is no longer supported in version 1.1.1?

2010-01-11 Thread dziobacz
I would like to use also format in sfWidgetFormJQueryDate in symfony 1.4. Here is my ticket: http://trac.symfony-project.org/ticket/8093#preview You can give there your suggestions so maybe fabien faster solve this problem. What is more I think current format: mm-dd- is wrong because in normal

[symfony-users] Re: sfDoctrineRoute works only with at least one variable which represents real column from table in url ?

2010-01-10 Thread dziobacz
he slug in the database instead of generating it > every time? This way you can keep your route as it is - only having a > slug parameter. > > On Sun, Jan 10, 2010 at 13:14, dziobacz wrote: > > sfDoctrineRoute works only with at least one variable which represents > > r

[symfony-users] Re: sfDoctrineRoute works only with at least one variable which represents real column from table in url ?

2010-01-10 Thread dziobacz
is to use the column option in param > > Something like this: > options: { model: Blog, type: object, column: subject_slug } > > Another interesting params are > model_methods..http://www.symfony-project.org/advent_calendar/3/en > > On 10 led, 13:14, dziobacz wrote: > >

[symfony-users] sfDoctrineRoute works only with at least one variable which represents real column from table in url ?

2010-01-10 Thread dziobacz
sfDoctrineRoute works only with at least one variable which represents real column from table in url ? I have in routing.yml: show_blog: url: /blog/:subject_slug class: sfDoctrineRoute options: { model: Blog, type: object } param: { module: blog, action: index } :subject_slug isn't re

[symfony-users] Re: Doctrine - How can I make innerJoin query in that case ?

2009-12-31 Thread dziobacz
ery::create() >   ->from('Travel trav') >   ->leftJoin('trav.DepartureCity dep') >   ->leftJoin('trav.ArrivalCity arr'); > > On Thu, Dec 31, 2009 at 1:40 PM, dziobacz wrote: > > CITIES: > > id_city > > city > > > T

[symfony-users] Doctrine - How can I make innerJoin query in that case ?

2009-12-31 Thread dziobacz
CITIES: id_city city TRAVEL: id_travel id_city_departure id_city_arrival How can I make query in that case to get in one row name of departure city and name of arrival city ? I have tried something like that but it doesn't work: $q = Doctrine_Query::create() ->from('Travel trav') ->innerJoin('tr

[symfony-users] Re: change name of checkbox without change id

2009-12-30 Thread dziobacz
  $temp1 = 'temp'.$m; >         $m = $m + 1; >          $this->widgetSchema['comment'.$i['id']] = new >   sfWidgetFormInputCheckbox(array(), array('name' => $temp, 'id' => > $temp1)); > > } > On Wed, Dec 30, 2009 at 7:09

[symfony-users] Re: change name of checkbox without change id

2009-12-30 Thread dziobacz
t;          $this->widgetSchema['comment'.$i['id']] = new >   sfWidgetFormInputCheckbox(array(), array('name' => $temp, 'id' => > $temp1)); > > } > On Wed, Dec 30, 2009 at 7:09 PM, dziobacz wrote: > > Now they have different names but they

[symfony-users] Re: change name of checkbox without change id

2009-12-30 Thread dziobacz
        $this->widgetSchema['comment'.$i['id']] = new >  sfWidgetFormInputCheckbox(array(), array('name' => $temp)); > >  } > > On Wed, Dec 30, 2009 at 6:43 PM, dziobacz wrote: > > I still have: > > > > > > > > &

[symfony-users] Re: change name of checkbox without change id

2009-12-30 Thread dziobacz
 $this->widgetSchema['comment'.$i['id']] = new > sfWidgetFormInputCheckbox(array(), array('name' => $temp)); > > } > On Wed, Dec 30, 2009 at 12:31 PM, dziobacz wrote: > > Is it possible to change name widget ? I am doing that: > >

[symfony-users] change name of checkbox without change id

2009-12-29 Thread dziobacz
Is it possible to change name widget ? I am doing that: foreach ($this->getOption('param') as $i) { $this->widgetSchema['comment'.$i['id']] = new sfWidgetFormInputCheckbox(array(), array('name' => 'test')); } but I get: ID is the same as name !! -- You received this message

[symfony-users] Re: approve comments clicking on checkboxes using AJAX - should I use Symfony forms ?

2009-12-29 Thread dziobacz
enderRow(); > > } > > // your form class configure method > public function configure () { >   ... >   foreach ($this->comment_values as $comment_value) { >     $this->addWidget(...); >   } >   ... > > } > > On Dec 28, 9:42 am, dziobacz wrote: > > &g

[symfony-users] Re: approve comments clicking on checkboxes using AJAX - should I use Symfony forms ?

2009-12-28 Thread dziobacz
gt; > > true, > 'onchange'=> remote_function(array('update'  => 'common_area','url' => > 'home/homeselectdate','script' => true,'with'=>"'id='+this.value"; ?> > > htt

[symfony-users] approve comments clicking on checkboxes using AJAX - should I use Symfony forms ?

2009-12-28 Thread dziobacz
I would like to approve comments clicking on checkboxes using AJAX (without refreshing page). Screen is here: http://forum.symfony-project.org/index.php/t/24537/ So as you can see above now I have checkboxes - each checkbox is a one row from table - so I must write in view: getId ()."'";

[symfony-users] Is it possible to add values to fields: extension and mime_type after submit form and before $form->save() ?

2009-12-27 Thread dziobacz
I have table for uploaded images: Image: actAs: { Timestampable: ~ } columns: description: type: string(200) name: type: string(250) notnull: true extension: type: string(10) notnull: true mime_type: type: string(250) notnull: true I h

[symfony-users] change communicate of error

2009-12-22 Thread dziobacz
Is it possible to set communicate of error in a form without array in field constructor ? For example I want to change error communicate in a form which extends other form, so I must again set validator, for example: public function configure() { $this->setValidators(array( 'userna

[symfony-users] symfony - WINDOWS path

2009-12-15 Thread dziobacz
gives: gives: and I don't see a picture - sfConfig::get('sf_upload_dir') gives backslash, but it should be slash !! What can I do with 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-us

[symfony-users] Re: netbeans 6.8 (IDE for Symfony) - No symfony script selected

2009-12-13 Thread dziobacz
oh thx :) On 14 Gru, 07:17, lking wrote: > i think that you should to select file symfony. > in my case it's > Z:\vendor\symfony\data\bin\symfony > > On 14 дек, 07:36, dziobacz wrote: > > > I can't create new Symfony project in netbeans, I have communica

[symfony-users] netbeans 6.8 (IDE for Symfony) - No symfony script selected

2009-12-13 Thread dziobacz
I can't create new Symfony project in netbeans, I have communicate: No Symfony script selected Here on the last screen: http://blogs.sun.com/netbeansphp/entry/initial_symfony_support We have: Symfony script: /usr/bin/symfony It is path to what ? To symfony unzipped instalation package ? But I ca

[symfony-users] edit multiple records in Symfony on one form on one site - possible ?

2009-12-09 Thread dziobacz
I have in schema: Promotion: columns: id_promotion: type: integer(1) primary: true autoincrement: true id_city: type: integer(4) notnull: true start_travel_date: type: date notnull: true price: type: decimal notnull: true

[symfony-users] Re: how can I get day from sfWidgetFormDate ??

2009-12-08 Thread dziobacz
Maybe I should include in action helper Date and use function format_date() ? But is it a good solution ? I thought that helpers are only for views, not for actions ? On 8 Gru, 09:38, dziobacz wrote: > I have form: > $this->setWidgets(array( >       'description'  =&

[symfony-users] how can I get day from sfWidgetFormDate ??

2009-12-08 Thread dziobacz
I have form: $this->setWidgets(array( 'description' => new sfWidgetFormInput(), 'test' => new sfWidgetFormJQueryDate(array('format' => '%day%/ %month%/%year%', 'culture' => 'pl')), )); $this->widgetSchema->setNameFormat('data[%s]'); ---

[symfony-users] Re: function simple_format_text() from Symfony 1.4 doesn't work ?

2009-12-06 Thread dziobacz
thx :) On 6 Gru, 18:54, Gábor Fási wrote: > Because you assign the $firm data in the controller, and it gets > escaped before it gets into the view. > If you want the raw value, you'll need $firm->getDescription(ESC_RAW); > > On Sun, Dec 6, 2009 at 16:06, dziobacz wro

[symfony-users] Re: function simple_format_text() from Symfony 1.4 doesn't work ?

2009-12-06 Thread dziobacz
xt in this field and that's why > simple_format_text() do northing in this case. > > On 6 дек, 14:44, dziobacz wrote: > > > In tutorial we have > > simple_format_text():http://www.symfony-project.org/jobeet/1_4/Doctrine/en/04 > > > I have in action: > >

[symfony-users] function simple_format_text() from Symfony 1.4 doesn't work ?

2009-12-06 Thread dziobacz
In tutorial we have simple_format_text(): http://www.symfony-project.org/jobeet/1_4/Doctrine/en/04 I have in action: $this->firm = Doctrine::getTable('Firm')->find(1); And in view: getDescription()); ?> And it shows me: test \n test But it should be bold text with new line inside. So function s

[symfony-users] Re: Does anybody use sfDoctrineRouteCollection (Object Route Class) in routing.yml ?

2009-12-06 Thread dziobacz
r selection for route firm. > i'd prefer just to rename field in the schema. > > On 5 дек, 21:19, dziobacz wrote: > > > hm...  unfortunately something is wrong :( > > > With @: url_for('@firm_show?id_firm='.$firm->getIdFirm()) > > I have error: Th

[symfony-users] Re: Does anybody use sfDoctrineRouteCollection (Object Route Class) in routing.yml ?

2009-12-05 Thread dziobacz
) I have error: The route "firm_show?id_firm=1" does not exist. On 5 Gru, 19:33, Gábor Fási wrote: > Either make it "@firm_show?firm_id=" . $firm["id"], or simply drop the @ :) > > On Sat, Dec 5, 2009 at 18:43, dziobacz wrote: > > So now I have: > >

[symfony-users] Re: Does anybody use sfDoctrineRouteCollection (Object Route Class) in routing.yml ?

2009-12-05 Thread dziobacz
ies elsewhere: when you generate the show urls in your > index action. According to the error message, you do it by passing > "firm/show" to the url_for, and now it cannot find it like that > anymore. Presuming you call your route collection "firm", try > "@f

[symfony-users] Re: Does anybody use sfDoctrineRouteCollection (Object Route Class) in routing.yml ?

2009-12-05 Thread dziobacz
But when I have changed on: public function executeShow(sfWebRequest $request) { $this->firm = $this->getRoute()->getObject(); } I still have the same error. On 5 Gru, 12:12, Gábor Fási wrote: > Tryhttp://localhost/frontend_dev.php/firmthat should be the index. > >

[symfony-users] Does anybody use sfDoctrineRouteCollection (Object Route Class) in routing.yml ?

2009-12-05 Thread dziobacz
I would like to start using Object Route Class as in tutorial (I have never used it): http://www.symfony-project.org/jobeet/1_4/Doctrine/en/05 I have in schema.yml: Firm: columns: id_firm: type: integer(1) primary: true autoincrement: true email: type: string(100)

[symfony-users] Re: comma instead of dot

2009-12-03 Thread dziobacz
dot) On 3 Gru, 18:50, "oweit...@gmx.de" wrote: > Sorry for the late reply. > Maybe the country data in symfony is wrong? > Please try it with culture = 'de'. > At weekend i try to test this issue. > > On 27 Nov., 09:14, dziobacz wrote: > > > Thx Fas

[symfony-users] Re: comma instead of dot

2009-12-03 Thread dziobacz
dot) On 3 Gru, 18:50, "oweit...@gmx.de" wrote: > Sorry for the late reply. > Maybe the country data in symfony is wrong? > Please try it with culture = 'de'. > At weekend i try to test this issue. > > On 27 Nov., 09:14, dziobacz wrote: > > > Thx Fas

[symfony-users] Re: comma instead of dot

2009-12-03 Thread dziobacz
dot) On 3 Gru, 18:50, "oweit...@gmx.de" wrote: > Sorry for the late reply. > Maybe the country data in symfony is wrong? > Please try it with culture = 'de'. > At weekend i try to test this issue. > > On 27 Nov., 09:14, dziobacz wrote: > > > Thx Fas

[symfony-users] Re: comma instead of dot

2009-12-03 Thread dziobacz
dot) On 3 Gru, 18:50, "oweit...@gmx.de" wrote: > Sorry for the late reply. > Maybe the country data in symfony is wrong? > Please try it with culture = 'de'. > At weekend i try to test this issue. > > On 27 Nov., 09:14, dziobacz wrote: > > > Thx Fas

[symfony-users] Re: doctrine - Jonathan.Wage - what is wrong in my ticket ?

2009-12-02 Thread dziobacz
Unfortunately it doesn't work. It works only if I have relation one to many but not when I have relation many to many. On 1 Gru, 18:22, Jonathan Wage wrote: > Maybe this? > > $this->setDefaults(array( >        'authors_list' => array(2) > )); > > &g

[symfony-users] Re: doctrine - Jonathan.Wage - what is wrong in my ticket ?

2009-12-01 Thread dziobacz
At least Jonathan Wage - good xD Unfortunately Jonathan this solution doesn't work :( I have tried that solution - Gregore gave me that solution few days ago in this thread: http://groups.google.com/group/symfony-users/browse_thread/thread/9f3a6aeef78e7212/5bb41b1d1609edce#5bb41b1d1609edce but it d

[symfony-users] Re: doctrine - Jonathan.Wage - what is wrong in my ticket ?

2009-12-01 Thread dziobacz
; related object > > $u = new User; > $u->my_default_value = 'asds'; > > $f = new sfUserForm($u) > > On Tue, Dec 1, 2009 at 10:28 AM, dziobacz wrote: > > I couldn't set default value for sfWidgetFormDoctrineChoiceMany in > > relation many to many (no

[symfony-users] doctrine - Jonathan.Wage - what is wrong in my ticket ?

2009-12-01 Thread dziobacz
I couldn't set default value for sfWidgetFormDoctrineChoiceMany in relation many to many (not one to many), I asked here and nobody know so I created ticket here: http://trac.symfony-project.org/ticket/7712 Why my ticket is invalid ? -- You received this message because you are subscribed to the

[symfony-users] Re: comma instead of dot

2009-11-27 Thread dziobacz
pl') )); Unfortunately during edition record with price in field 'price' I see price with dot instead of comma so i must by myself change dot on comma :/ On 27 Lis, 07:48, Gábor Fási wrote: > This might be what you are looking > for:http://www.symfony-project.org/p

[symfony-users] Re: comma instead of dot

2009-11-26 Thread dziobacz
In form I have: $this->setValidators(array( 'price' => new sfValidatorNumber(), )); I think in many countries people uses comma instead of dot and real nobody know ? On 26 Lis, 20:39, dziobacz wrote: > I have form with price field - but I can write only price wit

[symfony-users] comma instead of dot

2009-11-26 Thread dziobacz
I have form with price field - but I can write only price with dot, price with comma is incorrect - what can I do ? In my country price has got always comma. -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to s

[symfony-users] Re: sfWidgetFormDoctrineChoiceMany - how can I set default value ?

2009-11-26 Thread dziobacz
Yes but no result - I can selected this options in JavaScript but in Symfony in setDefaults() I can't - why ? On 26 Lis, 16:37, Grégoire wrote: > Have you tried this? > > $this->setDefaults(array( >   'authors_list' => array(2) > )); > > On 26 nov, 1

[symfony-users] sfWidgetFormDoctrineChoiceMany - how can I set default value ?

2009-11-26 Thread dziobacz
I have tables: Books, BooksAuthors, Authors. I use sfWidgetFormDoctrineChoiceMany and I want that default author was author with id = 2 but I can't do that. The default author is author with id = 1 - WHY ?? My code: $this->setWidget('authors_list', new sfWidgetFormDoctrineChoiceMany(array(

[symfony-users] Re: i18n - internationalization forms - unset fields from table FirmTranslation IN form FirmForm, FABIEN suggested me ask You

2009-11-21 Thread dziobacz
ok - Pavel.Campr here: http://forum.symfony-project.org/index.php/m/88804/#msg_88804 helped me xD On 21 Lis, 13:37, dziobacz wrote: > Fabien wrote about my task here:http://trac.symfony-project.org/ticket/7630 > "Please, ask your questions on the user mailing-list." > >

[symfony-users] i18n - internationalization forms - unset fields from table FirmTranslation IN form FirmForm, FABIEN suggested me ask You

2009-11-21 Thread dziobacz
Fabien wrote about my task here: http://trac.symfony-project.org/ticket/7630 "Please, ask your questions on the user mailing-list." So I would like to ask You again about my question - but could You see this question on Symfony forum here: http://forum.symfony-project.org/index.php/m/88790/#msg_88

[symfony-users] Re: my solution for i18n forms

2009-11-18 Thread dziobacz
Because nobody know how I can unuset fields in FirmTranslationForm. On 11 Lis, 01:11, theredled wrote: > Why don't you just unset() unused fields in FirmForm and > FirmTranslationForm ? > > On 9 nov, 10:42, dziobacz wrote: > > > Creating i18n forms with only so

[symfony-users] Re: link_to_remote() - using ajax to delete posts

2009-11-09 Thread dziobacz
ill not working :( > > -- > Murali > > 2009/11/9 dziobacz > > > > > > > You must add in partial file '_yourpartialfile.php': > > > > > > On 9 Lis, 10:31, Murali Krishna B > > wrote: > > > Hi all, > > > > I

[symfony-users] Re: link_to_remote() - using ajax to delete posts

2009-11-09 Thread dziobacz
> those links. > When it is done from template, I can see all delete links and their events. > But When I deleted a post from them, partial is creating links, which are > not working. > > Any solutions for this? > > Thanks, > > Murali Krishna > > 2009/11/4 dziobacz

[symfony-users] my solution for i18n forms

2009-11-09 Thread dziobacz
Creating i18n forms with only some fields from table isn't possible so I give You my idea :) I have schema.yml: Firm: actAs: I18n: fields: [description, address] columns: id_firm: type: integer(1) primary: true autoincrement: true email: type: string(

[symfony-users] Re: how can I pass ARRAY to the form ?

2009-11-08 Thread dziobacz
s an array to the second argument. > > $this->form = new ContactForm(array(), array("firm" => $firm)); > > Then in your form class: > > $this->getOption("firm"); > > Although in your case - if you are just trying to set defaults you can > use the fi

[symfony-users] how can I pass ARRAY to the form ?

2009-11-08 Thread dziobacz
I have array: $firm['Translation']['pl']['address'] = ""; $firm['Translation']['pl']['description'] = "b"; $firm['Translation']['en']['address'] = "c"; $firm['Translation']['en']['description'] = "d"; In action I am trying to pass this array to the form: $this->form = new ContactF

[symfony-users] Re: form for internationalization

2009-11-08 Thread dziobacz
'post')) { $this->form->bind($request->getParameter($this->form- >getName())); if ($this->form->isValid()) { $this->form->save(); } } } But after submit form, data aren't save in database, why ??? O

[symfony-users] Re: form for internationalization

2009-11-08 Thread dziobacz
: type: clob Symfony generated for me tables: firm: id_firm email firm_translation: id_firm description address lang Nobody know how I can unset i18n field 'description' ? On 7 Lis, 14:53, dziobacz wrote: > I have table Firm with columns: >   id_firm >   desc

[symfony-users] form for internationalization

2009-11-07 Thread dziobacz
I have table Firm with columns: id_firm description contact I want 1 textarea in polish for column 'contact' and 1 textarea in english for column 'contact'. I would like to create form to edit column 'contact' so I read this site: http://www.symfony-project.org/jobeet/1_2/Doctrine/en/19 on

[symfony-users] Re: catching errors during upload file

2009-11-04 Thread dziobacz
> Bye > > > > On Wed, Nov 4, 2009 at 8:10 AM, dziobacz wrote: > > > I didn't find article about catching errors which can be during upload > > file in Symfony - can I do something like that below using try - > > catch ? Is it a good solution when something

[symfony-users] Re: catching errors during upload file

2009-11-04 Thread dziobacz
Yes - in Symfony we must also move file from temt to target. Do You use some catching errors or rather not ? On 4 Lis, 15:04, Eno wrote: > On Wed, 4 Nov 2009, dziobacz wrote: > > For example upload photo on the server - for example in normal PHP in > > this tutorial:http://www

[symfony-users] Re: catching errors during upload file

2009-11-04 Thread dziobacz
4 Lis, 10:12, Thomas Rabaix wrote: > Depends what you mean by file upload ... > > PHP does not manage the "input stream", all the work is done before by the > webserver, so you can't catch any error at this point. > > > > On Wed, Nov 4, 2009 at 8:10 AM, dziobacz

[symfony-users] catching errors during upload file

2009-11-03 Thread dziobacz
I didn't find article about catching errors which can be during upload file in Symfony - can I do something like that below using try - catch ? Is it a good solution when something during file upload will go wrong ? $unique_code = md5(uniqid(mt_rand())); $file = $this->form->getValue('photo'); $

[symfony-users] Re: link_to_remote() - using ajax to delete posts

2009-11-03 Thread dziobacz
> >>> but you error is in dont uses: > > >>> return $this->renderText('('.$output.')'); > > >>> or > > >>> return $this->renderPartial('partial', array('var1' => $var1)); > > >>> you a

[symfony-users] Re: DOCTRINE - load data to tables which has got a relation !!

2009-10-26 Thread dziobacz
ocal: user_id > >       foreign: id > >       type: one > >       onDelete: CASCADE > >       onUpdate: CASCADE > >          foreignAlias: Profile > > > sfGuardUser: > >   dziobacz: > >     id: 1 > >     username: dziobacz > >     password: has

[symfony-users] DOCTRINE - load data to tables which has got a relation !!

2009-10-26 Thread dziobacz
e: one onDelete: CASCADE onUpdate: CASCADE I have got file 10_user.yml: sfGuardUser: dziobacz: id: 1 username: dziobacz password: haslo123 And file 20_profile.yml: sfGuardUserProfile: dziobacz: user_id: 1 name: xyz email: x...@gmail.com And when I try to load d

[symfony-users] Re: link_to_remote() - using ajax to delete posts

2009-10-22 Thread dziobacz
really nobody used link_to_remote() ?? On 22 Paź, 14:21, dziobacz wrote: > ok thx, but now after deleted post I see inside div 'ajaxclass' (where > should be posts) small website with 500 error :( > > On 22 Paź, 14:13, Gareth McCumskey wrote: > > > The link_to

[symfony-users] Re: link_to_remote() - using ajax to delete posts

2009-10-22 Thread dziobacz
t; > > > On Thu, Oct 22, 2009 at 1:12 PM, dziobacz wrote: > > > I want to delete posts from my forum without refresh page but now > > after clicked link 'Delete post' post is deleting without refreshing > > page but it is still showing - I must refresh page an

[symfony-users] link_to_remote() - using ajax to delete posts

2009-10-22 Thread dziobacz
I want to delete posts from my forum without refresh page but now after clicked link 'Delete post' post is deleting without refreshing page but it is still showing - I must refresh page and then it isn't showing - why ? I have actions: class forumActions extends sfActions { public function ex

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

2009-09-23 Thread dziobacz
http://www.google.com/trends?q=Zend+Framework%2C+CakePHP%2C+CodeIgniter%2C+Symfony%2C+yii&ctab=0&geo=all&geor=all&date=all&sort=0 Why if I write in google trends: Zend Framework, Symfony - the results are almost the same: http://www.google.com/trends?q=Zend+Framework%2C+Symfony&ctab=0&geo=all&date

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

2009-09-21 Thread dziobacz
I would like to say that Symfony is very, very good and future framework. Thx Symfony I could learn very fast ASP.NET MVC (not ASP.NET but ASP.NET MVC) - these two frameworks have got many similar things. While Zend Framework is far, far away Symfony and ASP.NET MVS. In Zend you must almost everyt

[symfony-users] Re: searcher + pager

2009-07-01 Thread dziobacz
ok - I used sessions and it works now :D On 1 Lip, 15:53, dziobacz wrote: > I don't pass value to the next page - this is my problem ;] Should I > use session ? > > On 1 Lip, 13:01, Sid Bachtiar wrote: > > > Do you pass the input value to the next page? > > &g

[symfony-users] Re: searcher + pager

2009-07-01 Thread dziobacz
is executed: > > $zpt = Doctrine::getTable('sfGuardUserProfile')->search(""); > > > > On Wed, Jul 1, 2009 at 10:28 PM, dziobacz wrote: > > > I have a problem with my own searcher (this is normal form with 1 > > input text + button) + Symfony page

[symfony-users] searcher + pager

2009-07-01 Thread dziobacz
I have a problem with my own searcher (this is normal form with 1 input text + button) + Symfony pager. After searched users I see searched users + pager but when I click some number of page in pager I again see ALL USERS but I want to see next page with only searched users. I know what is wrong (

[symfony-users] Re: after closed browser user is log out why ?

2009-06-22 Thread dziobacz
t browser would kill the session, > > because it is a privacy issue. > > > On Mon, Jun 22, 2009 at 11:09 PM, dziobacz > > wrote: > > > > Remember me doesn't work in Firefox, IE8, Opera and Chrome. > > > > On 22 Cze, 12:50, Sid Bachtiar wrote: > &g

[symfony-users] Re: after closed browser user is log out why ?

2009-06-22 Thread dziobacz
Remember me doesn't work in Firefox, IE8, Opera and Chrome. On 22 Cze, 12:50, Sid Bachtiar wrote: > If you are using Firefox then check the Firefox settings. Make sure > session is not made expired on closing the browser. > > > > On Mon, Jun 22, 2009 at 10:45 PM, dz

[symfony-users] Re: after closed browser user is log out why ?

2009-06-22 Thread dziobacz
But checked 'remember me' checkbox doesn't work. On 22 Cze, 12:30, Sid Bachtiar wrote: > But I think there is a 'remember me' checkbox option that warns them about it. > > It is a dangerous arrangement, so you need to be very careful here. > > > &

[symfony-users] Re: after closed browser user is log out why ?

2009-06-22 Thread dziobacz
to think about the security aspect when setting the timeout. > > The longer the timeout, the more chance of your user forgot to logout > > and someone else using their account. > > > On Mon, Jun 22, 2009 at 8:59 PM, dziobacz wrote: > > > > User should

[symfony-users] after closed browser user is log out why ?

2009-06-22 Thread dziobacz
User should be log in 30 days = 2592000 seconds. In factories.yml I have: all: user: class: myUser param: timeout: 2592000 But after closed browser user is log out and he must log in again, why ? What should I do ? --~--~-~--~~~---~--~~ You received

[symfony-users] Re: only admin can login

2009-06-21 Thread dziobacz
, Jun 21, 2009 at 9:11 AM, dziobacz wrote: > > > ok so next trial :) > > > In \sf_sandbox\apps\backend\lib I created loginForAdminFilter.class: > > > class loginForAdminFilter extends sfFilter > > { > >  public function execute($filterChain) > >  { &

[symfony-users] Re: only admin can login

2009-06-20 Thread dziobacz
just to be > sure that if the person manage somehow to enter there (maybe a > crossapplication link), i would be able to kick him out via @logout. > It might be an extra check-up, but will keep you the application safe (also, > will allow you to skip if the user is loged in or have credentials

[symfony-users] Re: only admin can login

2009-06-20 Thread dziobacz
in.'); >                        $this->getUser()->setAuthenticated(false); >                } > > } > > LOOL sorry .. i have reread your initial post, and you make the things > correctly... however, i would not copy/paste the sign in method (DRY). I > would rather

[symfony-users] Re: only admin can login

2009-06-20 Thread dziobacz
r password with an external method" > I guess anywhere in your lib folder, just make sure it's static, > callable and the autoload finds it. > > On Sat, Jun 20, 2009 at 19:15, dziobacz wrote: > > > Is this section: 'Change the algorithm used to store p

[symfony-users] Re: only admin can login

2009-06-20 Thread dziobacz
I > think that's good enough. > > On Sat, Jun 20, 2009 at 18:45, dziobacz wrote: > > > I know about credentials - but with credentials user CAN login but he > > hasn't acces permission to pages. I thought about that user CAN'T > > login if he isn't

[symfony-users] Re: only admin can login

2009-06-20 Thread dziobacz
ardPlugin> > > Secure some modules or your entire application in security.yml > > default: >   is_secure: on > > Check out the docs & mail list archive, there is a "has_credentials" or > "require credential' setting for your yaml config. &g

[symfony-users] only admin can login

2009-06-20 Thread dziobacz
Standard signin() method looks: class BasesfGuardAuthActions extends sfActions { public function executeSignin($request) { $user = $this->getUser(); if ($user->isAuthenticated()) { return $this->redirect('@homepage'); } $class = sfConfig::get('app_sf_guard_plugin_

[symfony-users] Re: sfWidgetFormInput with spaces is correct - bug ?

2009-06-20 Thread dziobacz
herwise (false > by default)" > > http://www.symfony-project.org/forms/1_2/en/B-Validators > > On Sat, Jun 20, 2009 at 09:45, dziobacz wrote: > > > sfWidgetFormInput() with spaces is correct (for example this problem > > doesn't concert sfWidgetFormTex

[symfony-users] Re: sfWidgetFormInput with spaces is correct - bug ?

2009-06-20 Thread dziobacz
herwise (false > by default)" > > http://www.symfony-project.org/forms/1_2/en/B-Validators > > On Sat, Jun 20, 2009 at 09:45, dziobacz wrote: > > > sfWidgetFormInput() with spaces is correct (for example this problem > > doesn't concert sfWidgetFormTex

[symfony-users] sfWidgetFormInput with spaces is correct - bug ?

2009-06-20 Thread dziobacz
sfWidgetFormInput() with spaces is correct (for example this problem doesn't concert sfWidgetFormTextarea()). For example I have: $this->setWidgets(array( 'subject'=> new sfWidgetFormInput(), )); $this->setValidators(array( 'subject' => new sfValidatorString(array('min_len

[symfony-users] TinyMCE with bbcode plugin still convert html tags to real html tags

2009-06-18 Thread dziobacz
I use TinyMCE: http://tinymce.moxiecode.com/index.php with enable bbcode plugin in TinyMCE When I edit post: text_1 [b]text_2[/b] I see in TinyMCE: bold text_1 and bold text_2 !!! This is wrong, this is danger - TinyMCE with bbcode plugin convert html tags to real html tags !! This is TinyMCE pr

[symfony-users] Re: local layout inside main layout

2009-06-17 Thread dziobacz
hp symfony cc Sid's solution was the best - thx Sid and all :) On 18 Cze, 05:52, dziobacz wrote: > Ok - so first I had to change MAIN layout on: > > > > > Then I created files: _header.php and _footer.php in \sf_sandbox\apps > \frontend\templates > And I have an e

[symfony-users] Re: local layout inside main layout

2009-06-17 Thread dziobacz
t can be cached. > > 3) You still have to include it on each templates in your module manually. > > > > On Thu, Jun 18, 2009 at 1:20 AM, dziobacz wrote: > > > I think I have found a better solution: > > create in module, in templates file 'header.php' wit

[symfony-users] Re: local layout inside main layout

2009-06-17 Thread dziobacz
ly "header.php" file. :)) On 17 Cze, 14:02, Eno wrote: > On Wed, 17 Jun 2009, dziobacz wrote: > > in each template my module ? This isn't so comfortable - if in the > > future I want to change text 'Forum header' I have to change this text > > in ea

[symfony-users] Re: local layout inside main layout

2009-06-17 Thread dziobacz
gt; Why not create another layout for your module? > > E.g.: create forum_layout.php in myproject/myapp/templates > > Then in your module's view.yml: > > default: >   layout: forum_layout > > > > On Wed, Jun 17, 2009 at 8:26 PM, dziobacz wrote: > > >

[symfony-users] Re: local layout inside main layout

2009-06-17 Thread dziobacz
ontent in templates: > >   Forum header > > > On Jun 17, 9:46 am, dziobacz wrote: > > > I have my own module 'Forum' - each site in this module should have > > header 'FORUM'. Is it possible to make local layout inside main layout

[symfony-users] local layout inside main layout

2009-06-17 Thread dziobacz
I have my own module 'Forum' - each site in this module should have header 'FORUM'. Is it possible to make local layout inside main layout for this module. Local layout should look: FORUM Is it possible or not (I think not) ? --~--~-~--~~~---~--~~ You received th

[symfony-users] Re: length integer in doctrine - why so many differences between doctrine and mysql ?

2009-06-15 Thread dziobacz
May I also know why ? :) On 15 Cze, 22:00, dziobacz wrote: > ok thx ;) > > On 15 Cze, 21:37, Jonathan Wage wrote: > > > Yes this is normal. > > > Jonathan H. Wage (+1 415 992 5468) > > Open Source Software Developer & Evangelist > > sensiolabs.com |

[symfony-users] Re: length integer in doctrine - why so many differences between doctrine and mysql ?

2009-06-15 Thread dziobacz
ok thx ;) On 15 Cze, 21:37, Jonathan Wage wrote: > Yes this is normal. > > Jonathan H. Wage (+1 415 992 5468) > Open Source Software Developer & Evangelist > sensiolabs.com | jwage.com | doctrine-project.org | symfony-project.org > > On Mon, Jun 15, 2009 at

[symfony-users] length integer in doctrine - why so many differences between doctrine and mysql ?

2009-06-15 Thread dziobacz
integer(2) in doctrine in schema.yml = smallint(6) in mysql integer(4) in doctrine in schema.yml = int(11) in mysql integer(10) in doctrine in schema.yml = bigint(20) in mysql Why ? Is it normal situation or something is wrong with mine doctrine ? --~--~-~--~~~---~--~-

  1   2   3   >