[symfony-users] Re: Credentials for actions in admin generated module

2010-08-26 Thread Tomasz Ignatiuk
:  # no credentials needed     _delete:  { credentials: [[ credential_name ]] }  # that privilege is needed to show the link to the action. you still have to secure the modules though On 25 Ago, 15:14, Tomasz Ignatiuk tomek.ignat...@gmail.com wrote: Hi I have credentials for module as well as for actions

[symfony-users] sfGuard default culture for a user

2010-07-19 Thread Tomasz Ignatiuk
Hi If I add a profile to a user with some information, also a language for a user, how to set up default culture for a user based on a value from Profile model? Symfony 1.4 sfGuard 4.0 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com

[symfony-users] Default culture in routing

2010-04-18 Thread Tomasz Ignatiuk
Hi I use i18n in symfony 1.4 My default culture is pl (set in settings.yml). Also I configured this in routing: homepage: url: /:sf_culture/ param: { module: home, action: index, sf_culture: pl } But anyone knows hot to make something like this: if culture is pl, do not add it to url

[symfony-users] Symfony 1.2.11 How to get an i18n field in admin generator

2010-02-22 Thread Tomasz Ignatiuk
Hi I have a system with admin generated backend. My system is in 'en' language (culture). I added article in 'kr' language (culture), so now for example title field isn't shown in articles list because this article doesn't have a I18n version in en. How to fix this? I tried to overwrite getTitle

[symfony-users] Re: sfValidatorPropelUnique with sfValidatorPropelChoiceMany

2010-02-22 Thread Tomasz Ignatiuk
This solution works public function configure() { // (...) $this-validatorSchema-setPostValidator( new sfValidatorCallback(array( 'callback' = array($this, 'checkUniqueness'), 'arguments' = array( 'model' = 'ProduktPartner', 'multiple_column' =

Re: [symfony-users] Re: Symfony 1.2.11 How to get an i18n field in admin generator

2010-02-22 Thread Tomasz Ignatiuk
$this-getTitle('kr'); } It crashes because of recursion .. you are calling this function over and over. If you want to overwrite the function, you must then call function from the parent class. probably: parent::_get('title'); On 22 ún, 10:54, Tomasz Ignatiuk tomek.ignat...@gmail.com wrote: Hi

[symfony-users] Re: sfValidatorPropelUnique with sfValidatorPropelChoiceMany

2010-02-16 Thread Tomasz Ignatiuk
Unfortunatelly in doesn't help. Still validator passes and Propel Exception occurs (There is already object with same partner,product and language). -- 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] sfValidatorPropelUnique with sfValidatorPropelChoiceMany

2010-02-15 Thread Tomasz Ignatiuk
Hi I have a table with unique index of 3 columns. So I use this: $this-validatorSchema-setPostValidator( new sfValidatorPropelUnique(array('model' = 'ProduktPartner', 'column' = array('partner', 'product', 'language'))) ); It works well. But I would like to make some changes in

[symfony-users] How to set error_404_module for one module?

2009-10-29 Thread Tomasz Ignatiuk
Hi I have set error_404_module for my app. I also added web services in a module called API. And I would like to change error_404_module for this module, in order to prepeare an error page as a formatted XML page. Does anyone know how to make it? Tom

[symfony-users] Get updated fields from Form

2009-10-12 Thread Tomasz Ignatiuk
Does anyone know if there is in Symfony a function that returns updated fileds after saving a form? Or how to do it? I use Propel. In Propel doUpdate returns no of changed row, but not field names. --~--~-~--~~~---~--~~ You received this message because you are

[symfony-users] Re: sfValidatorPropelChoice Problem

2009-08-06 Thread Tomasz Ignatiuk
I have the same problem. sfValidatorPropelChoice doesn't work with Varchar PK --~--~-~--~~~---~--~~ 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

[symfony-users] Re: sfValidatorPropelChoice Problem

2009-08-06 Thread Tomasz Ignatiuk
I create my own validator Read this: http://www.symfony-project.org/cookbook/1_2/en/conditional-validator --~--~-~--~~~---~--~~ 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] Re: Symfony on Windows Vista - Wamp server - cache problems

2009-07-22 Thread Tomasz Ignatiuk
Thank you guys. I found a problem. While checking out files from SVN to my project, I forgot to checkout files for admin template in Symfony Core files (which are in pear folder). It is a pity I can't put them in project folders. (with keepeing Symfony Core files outside Project folders)

[symfony-users] Symfony on Windows Vista - Wamp server - cache problems

2009-07-21 Thread Tomasz Ignatiuk
Hi. I use WAMP server on Windows XP for Symfony. Everything worked fine. Now I need to use wamp with symfony on Windows Vista. Now almost everything works, except that symfony won't create base configuration class files in cache. I unchecked read-only so actions and templates are created, added

[symfony-users] Re: problem on file download

2009-06-07 Thread Tomasz Ignatiuk
This is my version which works form me: // Enforce full download and prevent caching session_cache_limiter('none'); // No layout needed for file downloads $this-setLayout(false);

[symfony-users] Re: Session Timeout Issue

2009-05-31 Thread Tomasz Ignatiuk
You don;t need sfGuardPlugin. Are you sure you've uncommented all lines in factories.yml with these settings? IF yes, cc, the restart your browser. It should work On 29 Maj, 09:25, DEEPAK BHATIA toreachdee...@gmail.com wrote: Hi, We have the following in the factories.yml file all:   user:

[symfony-users] Re: Using decimal-values throws an routing error

2009-05-31 Thread Tomasz Ignatiuk
Symfony should escape those dots and commas. How do you create link? On 27 Maj, 16:03, halla dha.maili...@googlemail.com wrote: Hi, I'm trying to transport geo-coordinates as part of an URL, but the symfonys routing seems to have problems with the dots in the coordinates... This is how my

[symfony-users] Re: autoload PHPExcel

2009-05-12 Thread Tomasz Ignatiuk
. Daniel On May 8, 6:11 am, Tomasz Ignatiuk tomek.ignat...@gmail.com wrote: Hi I use PHPexcel but not by a symfony plugin which mess up somethings but by putting whole library to myproject/lib. So there is: lib/PHPExcel folder with some other libraries and lib/PHPExcel.php with main

[symfony-users] Re: autoload PHPExcel

2009-05-11 Thread Tomasz Ignatiuk
the same issue, but I don't find it much of a hassle really. Also, I put the library into /lib/vendors/ PHPExcel, but same difference.. Hope this helps. Daniel On May 8, 6:11 am, Tomasz Ignatiuk tomek.ignat...@gmail.com wrote: Hi I use PHPexcel but not by a symfony plugin which mess up

[symfony-users] autoload PHPExcel

2009-05-08 Thread Tomasz Ignatiuk
Hi I use PHPexcel but not by a symfony plugin which mess up somethings but by putting whole library to myproject/lib. So there is: lib/PHPExcel folder with some other libraries and lib/PHPExcel.php with main class. It should be autoloaded automatically after clearing cache. But it isn't. Each

[symfony-users] Re: Symfony on Windows - cache write permission

2009-05-07 Thread Tomasz Ignatiuk
C:\wamp\www\myproject 2009/5/7 Lawrence Krubner lkrub...@geocities.com On Apr 6, 5:46 am, Tomasz Ignatiuk tomek.ignat...@gmail.com wrote: I deinstalledwampserver 2.0c and installed new one, 2.0g and it works. I don't know what was the problem :( Where did you install your Symfony core

[symfony-users] Re: Symfony on Windows - cache write permission

2009-05-07 Thread Tomasz Ignatiuk
Sorry it is in wamp/bin/php/php5.2.9-2/pear On 7 Maj, 09:22, Tomasz Ignatiuk tomek.ignat...@gmail.com wrote: C:\wamp\www\myproject 2009/5/7 Lawrence Krubner lkrub...@geocities.com On Apr 6, 5:46 am, Tomasz Ignatiuk tomek.ignat...@gmail.com wrote: I deinstalledwampserver 2.0c

[symfony-users] Set filter default value

2009-05-04 Thread Tomasz Ignatiuk
Do you know how to set default value for filter in admin generator? I used setDefault but it doesn't work. I want to set default values for date filter widget. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony

[symfony-users] Re: get filters values from GET

2009-04-26 Thread Tomasz Ignatiuk
OK, I've done it :) I needed to change some code in executeFilter action. I don't know why but if I tried to set a request parameter by setParameter() it was set, but not used in filter array. So I've changed it a little bit in order to bind request data indirectly, first add my data, and the

[symfony-users] get filters values from GET

2009-04-20 Thread Tomasz Ignatiuk
Does anyone tried to execute filter method by GET? I mean to put a link with GET parameters in some place in app. When clicked it would forward to expected module index with filtered data. Any guess how to make this working? --~--~-~--~~~---~--~~ You received this

[symfony-users] Create own filter tutorial

2009-04-20 Thread Tomasz Ignatiuk
Does anyone know, or has a link to a tutorial on how to create my own propel filter for a module? A have a module with some filters. Now I want to add a filter, that will get for me only objects with specified ID's, but on the base of a different module. For example: I have a module with USERS

[symfony-users] Re: Using ajax for input text update

2009-04-17 Thread Tomasz Ignatiuk
the IsXMLHTTPRequest http header is set (automatically done by prototype and jquery). On Thu, Apr 16, 2009 at 16:09, Tomasz Ignatiuk tomek.ignat...@gmail.com wrote: Thank you, now I know how exactly return data :) with renderText or renderPartial :) Main problem was that remote_function could

[symfony-users] Re: Using ajax for input text update

2009-04-16 Thread Tomasz Ignatiuk
So maybe any guess how to get data from action via ajax and put it into input? --~--~-~--~~~---~--~~ 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

[symfony-users] Re: Using ajax for input text update

2009-04-16 Thread Tomasz Ignatiuk
://www.symfony-project.org/jobeet/1_2/Propel/en/18 On Apr 16, 6:37 am, Tomasz Ignatiuk tomek.ignat...@gmail.com wrote: So maybe any guess how to get data from action via ajax and put it into input? --~--~-~--~~~---~--~~ You received this message because you

[symfony-users] Re: Using ajax for input text update

2009-04-16 Thread Tomasz Ignatiuk
://www.prototypejs.org/api/ajax/updater Alecs On Thu, Apr 16, 2009 at 5:09 PM, Tomasz Ignatiuk tomek.ignat...@gmail.com wrote: Thank you, now I know how exactly return data :) with renderText or renderPartial :) Main problem was that remote_function could update only elements like DIVs, not values

[symfony-users] Re: Symfony on Windows - cache write permission

2009-04-06 Thread Tomasz Ignatiuk
I deinstalled wamp server 2.0c and installed new one, 2.0g and it works. I don't know what was the problem :( --~--~-~--~~~---~--~~ 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] Symfony on Windows - cache write permission

2009-04-05 Thread Tomasz Ignatiuk
Hi. I use WAMP server on Windows for Symfony. Everything worked fine. Recently I had to reinstall windows. Now almost everything works, except that symfony won't create base configuration class files in cache. I unchecked read-only so actions and templates are created, but not lib catalog and

[symfony-users] Re: Sf. 1.2 Clear cache by executing file

2009-04-02 Thread Tomasz Ignatiuk
for $last_line = system(dir \\, $retval); there is FusionCharts frontend.php js sfProtoculousPlugin backend.php frontend_dev.php robots.txt sf_cc_webscript.php backend_dev.php imagessfFormExtraPlugin uploads css index.php

[symfony-users] Re: Sf. 1.2 Clear cache by executing file

2009-04-02 Thread Tomasz Ignatiuk
OK, It's working :) Thank you Yevgeniy for your help and your patience :) ?php require_once '/home/users/iwitch/public_html/pd/lib/symfony/autoload/ sfCoreAutoload.class.php'; sfCoreAutoload::register(); ? ?php chdir('../'); $fs = new sfFilesystem(); $res = $fs-sh('php symfony cc'); echo

[symfony-users] Re: Sf. 1.2 Clear cache by executing file

2009-04-01 Thread Tomasz Ignatiuk
For the first line there is Last line of the output: -- Return value: 1 for second nothing, because \ just escapes ' I don't think this method will work out. Don't know why sh cut off slashes, path to php is good because admin gave it to me.

[symfony-users] Re: Sf. 1.2 Clear cache by executing file

2009-04-01 Thread Tomasz Ignatiuk
seems to be allowed on your system, the only issues I see so far is back slash problem and wrong path to php(or maybe we writing it wrong). for now we can try to construct correct command with system(...) function and then you have to google about \\ to make passthru works ;) Tomasz Ignatiuk

[symfony-users] Re: Sf. 1.2 Clear cache by executing file

2009-03-31 Thread Tomasz Ignatiuk
...@osmonitoring.com wrote: It's might looks like this:http://gist.github.com/88008 Thanks. Tomasz Ignatiuk wrote: Did anyone tried to clear cache without CLI anf FTP? It takes some time for FTP client to log in, go to symfony project, list all catalogs and subdirectories in cache and delete

[symfony-users] Re: Sf. 1.2 Clear cache by executing file

2009-03-31 Thread Tomasz Ignatiuk
Command: c:\php5\php.exe -c -n c:\windows\php-isapi.ini /home/users/iwitch/ public_html/pd cc My project is in /home/users/iwitch/public_html/pd I use '/' because this is how symfony shows errors This is for PHP5 on my server. Asmin gave me this path: c: \php5\php.exe -c -n

[symfony-users] Re: Sf. 1.2 Clear cache by executing file

2009-03-31 Thread Tomasz Ignatiuk
I thought it should be a path to project, hehe. So now there is c:/php5/php.exe -c c:/windows/php-isapi.ini /home/users/iwitch/public_html/pd/lib/symfony/command/cli.php cc *Fatal error*: Uncaught exception 'sfException' with message 'Problem executing command sh: line 1: c:/php5/php.exe: No

[symfony-users] Re: Sf. 1.2 Clear cache by executing file

2009-03-31 Thread Tomasz Ignatiuk
I used \, then \\ and each time it is stripped out *Fatal error*: Uncaught exception 'sfException' with message 'Problem executing command sh: line 1: c:php5php.exe: command not found ' in /home/users/iwitch/public_html/pd/lib/symfony/task/sfFilesystem.class.php:291 Stack trace: #0

[symfony-users] Re: Sf. 1.2 Clear cache by executing file

2009-03-31 Thread Tomasz Ignatiuk
It returned -- Last line of the output: -- Return value: 127 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send

[symfony-users] Re: Sf. 1.2 Clear cache by executing file

2009-03-31 Thread Tomasz Ignatiuk
FusionCharts frontend.php js sfProtoculousPlugin backend.php frontend_dev.php robots.txt sf_cc_webscript.php backend_dev.php imagessfFormExtraPlugin uploads css index.php sfPropelPlugin -- Last

[symfony-users] Re: Sf. 1.2 Clear cache by executing file

2009-03-31 Thread Tomasz Ignatiuk
for $last_line = system('php.exe -v', $retval); $last_line = system('dir c:\\php5', $retval); $last_line = system('dir c:\\php\\php5', $retval); there is -- Last line of the output: -- Return value: 127 -- Last

[symfony-users] Re: Upload file name

2009-03-30 Thread Tomasz Ignatiuk
$form-bind($request-getParameter($form-getName()), $request- getFiles($form-getName())); if ($form-isValid()) { $file = $this-form-getValue('your_file_fieldname'); if(!is_null($file)) { $filename = $file-getOriginalName()

[symfony-users] Sf. 1.2 Clear cache by executing file

2009-03-30 Thread Tomasz Ignatiuk
Did anyone tried to clear cache without CLI anf FTP? It takes some time for FTP client to log in, go to symfony project, list all catalogs and subdirectories in cache and delete them. So I am thinking how about to create a php file, that when I run it through browser, it will clear cache. Anyone

[symfony-users] Re: Sf. 1.2 Clear cache by executing file

2009-03-30 Thread Tomasz Ignatiuk
Pablo, this is a great tool, but not for use. It is only installed on this hosting. Steve, that is a good idea, but clearing cache task is a normal php class, so that it can be done by creating a new object for this task and use some methodsI think

[symfony-users] Re: Sf. 1.2 Clear cache by executing file

2009-03-30 Thread Tomasz Ignatiuk
Oh wow ;P 2009/3/30 Eno symb...@gmail.com On Mon, 30 Mar 2009, Steve Browett wrote: This should take no more than a few seconds to run. Depends on the site really. We couldn't do that for our project because the cache is several Gb and calling an action from a browser would probably

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

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

[symfony-users] Download files - broken pdf

2009-03-24 Thread Tomasz Ignatiuk
Hi, I use this code for downloading files. If I download image, it works, but if I download pdf, after downloading when I try to open it, it is broken. if (is_file($sciezka)) { // Enforce full download and prevent caching

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

2009-03-24 Thread Tomasz Ignatiuk
the contents of the file, does it look like a valid pdf? On Tue, Mar 24, 2009 at 12:51, Tomasz Ignatiuk tomek.ignat...@gmail.com wrote: Hi, I use this code for downloading files. If I download image, it works, but if I download pdf, after downloading when I try to open it, it is broken

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

2009-03-24 Thread Tomasz Ignatiuk
/response/sfWebResponse.class.php/b on line b335/bbr / 592 line is: $response-setContent(readfile($sciezka)); 2009/3/24 Yevgeniy A. Viktorov w...@osmonitoring.com Open it as raw file, for example with the help of vim. Tomasz Ignatiuk wrote: File is damaged and it couldn't be repaired

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

2009-03-24 Thread Tomasz Ignatiuk
It worked, thank you very much!!! But how did you know? Why it is happening? 2009/3/24 Paolo Mainardi paolomaina...@gmail.com On Tue, Mar 24, 2009 at 5:46 PM, Tomasz Ignatiuk tomek.ignat...@gmail.com wrote: I opened with a VIM. Many strange alphanumeric stuff inside but in the end

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

2009-03-24 Thread Tomasz Ignatiuk
No erros in log, but this headers already sent is strange. On 24 Mar, 18:32, Paolo Mainardi paolomaina...@gmail.com wrote: On Tue, Mar 24, 2009 at 5:54 PM, Tomasz Ignatiuk tomek.ignat...@gmail.comwrote: It worked, thank you very much!!! But how did you know? Why it is happening? Because

[symfony-users] Why use sfValidatorPropelChoice for primarykey?

2009-03-22 Thread Tomasz Ignatiuk
Hi Why sfValidatorPropelChoice is used for primary keys? sfValidatorPropelChoice validates that the value is one of the rows of a table. But when you add a new row, it is obvious that there is no such id in db. Second thing. Why this validator doesn't work for primary keys that ar warchar?

[symfony-users] Re: Admin generator : Use different Peer method according to the credential of the connected user

2009-03-20 Thread Tomasz Ignatiuk
You can ovverride buildCriteria() method in actions. Check there credentials and add Criteria to it --~--~-~--~~~---~--~~ 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] sfPropelUniqueValidator insn't working?

2009-03-20 Thread Tomasz Ignatiuk
Hi I one of my modules I use primary key as a varchar, called logo. So the default validator which is created by Propel is: sfValidatorPropelChoice(array('model' = 'Partner', 'column' = 'logo', 'required' = false)) but while validating it throws error that it is invalid. So in configure I

[symfony-users] Re: print content in different language

2009-03-19 Thread Tomasz Ignatiuk
-setCulture($request-getParameter(lang); ? // do stuff // reset original culture ?php $sf_user-setCulture($culture); ? // footer On 18 Mar 2009, at 21:35, Tomasz Ignatiuk wrote: @dsb - but this works to load default language to stuff that isn't translated if I got it right. But for me

[symfony-users] Re: print content in different language

2009-03-18 Thread Tomasz Ignatiuk
wrong from a usability/UX point of view... am I misunderstanding? A print style sheet shouldn't care what language you are displaying (unless it's a language that reads right-left or vertically). On 18 Mar 2009, at 10:38, Tomasz Ignatiuk wrote: Hi I want to have a functionality to print

[symfony-users] Re: print content in different language

2009-03-18 Thread Tomasz Ignatiuk
But I don't want to change language for whole application just in order to print an invoice in different language. If I change a language (culture) for application, all menus and other stuff will also change. But I want to change only a content of a show template for invoice module

[symfony-users] Re: print content in different language

2009-03-18 Thread Tomasz Ignatiuk
use the culture from the users session. You can also use helpers within actions if you need to. On 18 Mar 2009, at 11:03, Tomasz Ignatiuk wrote: But I don't want to change language for whole application just in order to print an invoice in different language. If I change a language (culture

[symfony-users] Re: Retrieving id from popup

2009-03-18 Thread Tomasz Ignatiuk
I think there is somthing i Javascript like refferer in DOM. Look also for something like this in jQuery. --~--~-~--~~~---~--~~ 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] Re: One module, many forms

2009-03-18 Thread Tomasz Ignatiuk
public function executeUpdate(sfWebRequest $request) { $this-document = $this-getRoute()-getObject(); $this-wystawca = PartnerPeer::getPartnerByLogo($this-document- getLogoPartneraSprzedajacy()); $this-termin_platnosci = $this-wystawca-getTerminPlatnosci(); switch

[symfony-users] Re: print content in different language

2009-03-18 Thread Tomasz Ignatiuk
@dsb - but this works to load default language to stuff that isn't translated if I got it right. But for me it won't work @Lee, but how to use in some part of my templates users culture, and in other parts culture by parameter? If I use this ?php $sf_user- setCulture('en_US') ? it will set

[symfony-users] Re: One module, many forms

2009-03-18 Thread Tomasz Ignatiuk
Any guess? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to

[symfony-users] Re: How to display different data set in backend admin through generator?

2009-03-17 Thread Tomasz Ignatiuk
If a sale can have access only to his clients and no one else has (other sales) except admin, you can add to client rows a sales id. Then when sales is logged in where data is taken to list in backend etc change the action in order to get only those clients whose sales id is the one who is logged

[symfony-users] One module, many forms

2009-03-17 Thread Tomasz Ignatiuk
Hi I have a module called Documents. In this modul I use few kinds of documents. They use the same table in db but different fields. So that I created few Forms for them. I overridden executeNew() in order to call proper form class. And it works well. Proper form object is created, template

[symfony-users] Re: Pass values from one form to another

2009-03-16 Thread Tomasz Ignatiuk
I think it is good to create profile after submitting first form, then pass created id to second profile and put there other widgets you need. Then just submit form and set values to profile object where id is the one you passed. --~--~-~--~~~---~--~~ You received

[symfony-users] Re: filter form not appearing in admin

2009-03-15 Thread Tomasz Ignatiuk
Paste your generator.yml code --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to

[symfony-users] Re: Strange white spaces

2009-03-14 Thread Tomasz Ignatiuk
I don't understand. You want me to add line feeds somewhere? If I delete this ?php use_helper('I18N', 'Date') ? ?php include_partial('dokument/assets') ? there still the same problem --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[symfony-users] Strange white spaces

2009-03-13 Thread Tomasz Ignatiuk
Hi, I have a strange bug. In one of my page with forms there is a one white space (brak line). I don't know why, because everything seems to be OK. div id=content ?php use_helper('I18N', 'Date') ? ?php include_partial('dokument/assets') ? div id=sf_admin_container h1?php echo __('Nowy

[symfony-users] Re: Sf 1.2 18n using getText and .po files

2009-03-10 Thread Tomasz Ignatiuk
Here is a great tutorial how to prepare symfony to use gettext :) http://coolsoft.altervista.org/blog/2009/03/configure-symfony-use-gettext-translation-files --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony

[symfony-users] Re: Add values after form submit

2009-03-10 Thread Tomasz Ignatiuk
You can do this by overriding processForm action in your action file: #apps/yourapp/modules/yourmodule/actions/actions.class.php protected function processForm(sfWebRequest $request, sfForm $form) { $form-bind(); if ($form-isValid()) { $somevar = $form-save()

[symfony-users] Re: Form Error Messages i18n

2009-03-10 Thread Tomasz Ignatiuk
Only solution I know is to check all messages in forms by entering wrong data. When an error message shows, copy it to XML or PO file and translate it. Remember to add special fields in comments: 'Name %value% must be at least %min_length% characters.' Read this:

[symfony-users] Re: I18n forms - not everything translated

2009-03-09 Thread Tomasz Ignatiuk
()-getI18N ()-__('The flash message') ); To minimify, you can put a protected function in your action, or better, in an external tools class. Something like : public static function i18n( $message ) { return sfContext::getInstance()-getI18N()-__( $message ); } On 6 mar, 15:23, Tomasz

[symfony-users] Re: Admin generator: actions per record

2009-03-09 Thread Tomasz Ignatiuk
I don't think it is possible to do automatically. You have to define someway which records can be deleted, for example by a field in db 1. Copy _list.php from cache directory from your app module. 2. On foreach where the rows are echoed make an if which will say if list_td_actions partial should

[symfony-users] Re: sfWidgetFormChoice and empty value

2009-03-06 Thread Tomasz Ignatiuk
Maybe it is, but you're creating options for this as an array, am I right? So you can add at the begining an empty option. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group,

[symfony-users] I18n forms - not everything translated

2009-03-06 Thread Tomasz Ignatiuk
Hi I keep my translation file in apps/frontend/i18n/messages.pl.xml All texts in templates are translated. It is weird that some forms are not translated, some of them are mostly translated and none of notice and erros messages were translated. I checked language, coding, ids in xml, everything.

[symfony-users] Re: I18n forms - not everything translated

2009-03-06 Thread Tomasz Ignatiuk
I see that mostly it was a problem of session. Sorry to bother --~--~-~--~~~---~--~~ 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

[symfony-users] Re: I18n forms - not everything translated

2009-03-06 Thread Tomasz Ignatiuk
Does anyone know how to translate setFlash notices and erros? A put translation in my message.pl.xml file but it doesn't work --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this

[symfony-users] frontend backend routing

2009-03-04 Thread Tomasz Ignatiuk
Hi I have a frontend with no_script_name: on and a backend with no_script_name: off in order to make it work. Frontend works well but in backend when I click on a menu link: ?php echo link_to('Partner', '@partner') ? I get this error: The /partner/:id/edit.:sf_format route has some missing

[symfony-users] Re: frontend backend routing

2009-03-04 Thread Tomasz Ignatiuk
Yes, of course 2009/3/4 Jan De Coster j...@we-create.be Did u cleared the cache ? kr, Tomasz Ignatiuk wrote: It is strange because in dev everything works fine. But only in prod environment this bug is shown. --~--~-~--~~~---~--~~ You received

[symfony-users] Re: frontend backend routing

2009-03-04 Thread Tomasz Ignatiuk
It is strange because in dev everything works fine. But only in prod environment this bug is shown. --~--~-~--~~~---~--~~ 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] Re: Frontend backend - one login form

2009-03-04 Thread Tomasz Ignatiuk
I couldn't make it working so I dropped this. Now I use two login forms. One for frontend mydomain.com One for backend mydomain.com/backend.php The problem is when I log in into front end, I will be also logged in into backend. For now I don't want to use credentials. So how to setup this in

[symfony-users] Re: Frontend backend - one login form

2009-03-04 Thread Tomasz Ignatiuk
2009/3/4 Yevgeniy A. Viktorov w...@osmonitoring.com If I am correctly understand, you just need to define different session name for backend application, look for session_name in apps/backend/config/factories.yml Thanks. On Wed, 2009-03-04 at 06:58 -0800, Tomasz Ignatiuk wrote: I

[symfony-users] Re: Frontend backend - one login form

2009-03-04 Thread Tomasz Ignatiuk
It works!!! My mistake, I am sorry :) I set the name of a session but didn't uncomment all settings. 2009/3/4 Tomasz Ignatiuk tomek.ignat...@gmail.com 2009/3/4 Yevgeniy A. Viktorov w...@osmonitoring.com If I am correctly understand, you just need to define different session name

[symfony-users] Re: frontend backend routing

2009-03-04 Thread Tomasz Ignatiuk
Any guess? I have these settings: prod: .settings: no_script_name: off logging_enabled:off dev: .settings: error_reporting:?php echo (E_ALL | E_STRICT).\n ? web_debug: on cache: off no_script_name: off

[symfony-users] Re: frontend backend routing

2009-03-04 Thread Tomasz Ignatiuk
I see that this error shows only for modules where I have edit links for list. For example for /partner/new there is no error, it works. But _list_td_action.php in cache looks the same in prod and in dev environments: td ul class=sf_admin_td_actions ?php echo $helper-linkToEdit($partner,

[symfony-users] Re: Frontend backend - one login form

2009-03-03 Thread Tomasz Ignatiuk
url of the backend app On 3/2/09, Tomasz Ignatiuk tomek.ignat...@gmail.com wrote: Hi, I'd like to make a one login form for two applications: Frontend backend. Action should check a field in user table. If admin is set to 1 it should forward to backend app, if 0 to frontend app

[symfony-users] Re: Frontend backend - one login form

2009-03-03 Thread Tomasz Ignatiuk
OK, but when I add authentication (Security on) I cannot define an application. It uses own application. So when session is gone it want redirect me to loginapp but to frontend/backend. 2009/3/3 David Herrmann d...@okto.tv Tomasz Ignatiuk wrote: I don't get it...But witch action should

[symfony-users] Frontend backend - one login form

2009-03-02 Thread Tomasz Ignatiuk
Hi, I'd like to make a one login form for two applications: Frontend backend. Action should check a field in user table. If admin is set to 1 it should forward to backend app, if 0 to frontend app. Any ideas how to make it? --~--~-~--~~~---~--~~ You received this

[symfony-users] sfValidatorPropelChoice use default id instead of primary key

2009-03-01 Thread Tomasz Ignatiuk
Hi guys. I have a module Company where Primary key is called logo and it is varchar. I have another module (invoice) where there is a foreign key for Company. So in form for Invoice module I use this: $this-setWidgets(array( 'id'= new sfWidgetFormInputHidden(),

[symfony-users] Re: FusionCharts generate errors of headers already sent

2009-02-28 Thread Tomasz Ignatiuk
No erros :| Content headers sent as text/xml 2009/2/28 Eno symb...@gmail.com On Fri, 27 Feb 2009, Tomasz Ignatiuk wrote: I think this is connected with this that FusionCharts change data for xml. A tried to set content to text/xml but it didn't change anything. Any guess what could

[symfony-users] Re: how to set the date for sfWidgetFormDateTime?

2009-02-28 Thread Tomasz Ignatiuk
Try to use setDefault method. I had the same problem. On 28 Lut, 10:02, Lawrence Krubner lkrub...@geocities.com wrote: This is strange. I look here: http://fabien.potencier.org/chapter_10.html To set a default value for sfWidgetFormDateTime it offers this example: $form-setWidget('end',

[symfony-users] FusionCharts generate errors of headers already sent

2009-02-27 Thread Tomasz Ignatiuk
Hi guys. I use Fusion Charts (not a plugin) with PHP Class witch I put in lib dir. On my local Wamp Server everything is ok but on hosting server there is an warning: Warning: Cannot modify header information - headers already sent by (output started at /home/.../lib/FusionCharts_Gen.php:1) in

[symfony-users] Re: Indicator for required fields

2009-02-26 Thread Tomasz Ignatiuk
:42 AM, Tomasz Ignatiuk tomek.ignat...@gmail.com wrote: It is not good solution because using css pre doesn't work in IE...which is used byI don't know...50% of users? On 26 Lut, 06:58, avorobiev vorobiev.alexan...@gmail.com wrote: Look athttp:// groups.google.com/group/symfony-devs

[symfony-users] Re: Indicator for required fields

2009-02-26 Thread Tomasz Ignatiuk
at 11:42 AM, Tomasz Ignatiuk tomek.ignat...@gmail.com wrote: It is not good solution because using css pre doesn't work in IE...which is used byI don't know...50% of users? On 26 Lut, 06:58, avorobiev vorobiev.alexan...@gmail.com wrote: Look athttp:// groups.google.com/group

[symfony-users] Re: Indicator for required fields

2009-02-26 Thread Tomasz Ignatiuk
http://www.symfony-project.org/blog/2009/01/25/about-symfony-1-3 2009/2/26 Paolo Mainardi paolomaina...@gmail.com On Thu, Feb 26, 2009 at 12:04 PM, Tomasz Ignatiuk tomek.ignat...@gmail.com wrote: It is not perfect but I don't think it is: Form Framework is Overengineering

[symfony-users] Re: sfWidgetFormPropelChoice multiple true - how to save it?

2009-02-26 Thread Tomasz Ignatiuk
I saved it by ovverriding updateObject (Propel). Now it looks like this in DB: a field language: es,en,pl Do you know how to take this field into form and select options in select? For edit purpose. --~--~-~--~~~---~--~~ You received this message because you are

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

2009-02-26 Thread Tomasz Ignatiuk
Any ideas how to do this? A want a query in propel that gets objects from table1 where table1.column1 table1.column2 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send

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

2009-02-26 Thread Tomasz Ignatiuk
@googlegroups.com ] Namens Tomasz Ignatiuk Verzonden: donderdag 26 februari 2009 21:00 Aan: symfony users Onderwerp: [symfony-users] Propel - Two columns of a table not_equal Any ideas how to do this? A want a query in propel that gets objects from table1 where table1.column1 table1.column2

  1   2   >