[symfony-users] Re: where should I place my own class ?

2009-05-08 Thread Sid Bachtiar
They don't look so useful to me :P just kidding hehe On Sat, May 9, 2009 at 6:25 PM, dziobacz wrote: > > I have my own class with many my own very useful functions: > > class myClass > { > > public function __construct() > { > } > > public function __destruct() > { > } > > public function functi

[symfony-users] Re: where should I place my own class ?

2009-05-08 Thread Sid Bachtiar
in lib folder then don't forget to clear cache On Sat, May 9, 2009 at 6:25 PM, dziobacz wrote: > > I have my own class with many my own very useful functions: > > class myClass > { > > public function __construct() > { > } > > public function __destruct() > { > } > > public function function_1()

[symfony-users] where should I place my own class ?

2009-05-08 Thread dziobacz
I have my own class with many my own very useful functions: class myClass { public function __construct() { } public function __destruct() { } public function function_1() { ... } public function function_2() { .. } } Where should I place it ? --~--~-~--~

[symfony-users] Using SWFUpload to upload muiltple files to symfony 1.2

2009-05-08 Thread SNake!
HI Guys, Recently I am working on a project, it is required a fancy muiltple upload interface. So I try the sfSWFUploadPlugin which is for sf 1.0. So I rewrite some code and update the swf file to make it work in symfony 1.2 The problem is that I saw the debug message in log shows that executeUp

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

2009-05-08 Thread Eran
I am keen to know if there is a Paypal plugin that works with 1.2. cheers 2009/5/8 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 try

[symfony-users] How to find route that matches given parameters

2009-05-08 Thread Oleg K
Hi *, I have bunch of routing rules in .yml file, they're all custom urls, I also have array of parameters and now I want to find the route that matches passed parameters that is strange that I tried all helper functions like url_for/link_to etc. but none of them generate me correct url. so I w

[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] yaml config file array syntax

2009-05-08 Thread 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 following configurations but neither works. What I am I doing wrong? Thanks! all: paypal: postback: timeout: 30 status: .array: new: W

[symfony-users] symfony.routing.data.cache gets very big

2009-05-08 Thread gunnarlium
Hi! Running 1.2.7, I experience the cache file symfony.routing.data.cache grows very large, 40MB+. Is this supposed to happen? It seems to be growing at a steady rate, and I suspect its causing a slow down in operation as well as excessive memory usage. Any ideas? --~--~-~--~~

[symfony-users] Re: autoload PHPExcel

2009-05-08 Thread DEEPAK BHATIA
Hi, I unzipped/untar the sfPhpExcelPlugin-1.0.1 in the myproject/plugins directory. Then I did symfony cc and it worked for mr. Regards Deepak Bhatia On Fri, May 8, 2009 at 6:41 PM, Tomasz Ignatiuk wrote: > > Hi > > I use PHPexcel but not by a symfony plugin which mess up somethings > but by

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

[symfony-users] Re: Value of field username must be != 'admin' and 'administrator'. Is it possible to do using some validator ?

2009-05-08 Thread dziobacz
Ok - I know xD I must use: sfGenExtraPlugin - http://www.symfony-project.org/plugins/sfGenExtraPlugin - constantValidatorSchemaCompare I don't know why "the sfValidatorSchemaCompare class allows you to have validation comparing 2 fields, but does not allow comparing a field to a constant value.

[symfony-users] writing validation.yml file for dropdown list

2009-05-08 Thread Vikaash
hai I m trying to write a validation.yml file for dropdownlist.The criteria is that when i donot select a given option and post the form there should be error throw asking for selecting a option from dropdown list.please help me in writing file for it. also somebody please tell me how to check

[symfony-users] Exporting using sfPhpExcel displays in browser rather than to file

2009-05-08 Thread Simon Cast
Hi, I've been using the sfPhpExcel in order to export data to Excel and PDF. The creation of the data object works fine and I've tested that the data is indeed in the object. However, when I go to download the file the results are shown as symbols in the browser in the case of Excel2007 and Exc

[symfony-users] Deselect PropelChoiceMany

2009-05-08 Thread HAUSa
This is my form.class.php: $this->widgetSchema['link_employee_position_list'] = new sfWidgetFormPropelChoiceMany(array( 'expanded' => true, 'model'=> 'Position', 'order_by' => array('Title', 'asc') )); Now I get all possible values in a checkbox list. How can I have P

[symfony-users] Value of field username must be != 'admin' and 'administrator'. Is it possible to do using some validator ?

2009-05-08 Thread dziobacz
Value of field username must be != 'admin' and 'administrator'. Is it possible to do using some validator ? I have tried: new sfValidatorSchemaCompare('username', sfValidatorSchemaCompare::NOT_EQUAL, "admin", array(), array('invalid' => 'Error.')), but it doesn't work because "ad

[symfony-users] Value of field username must be != 'admin' and 'administrator'. Is it possible to do using some validator ?

2009-05-08 Thread dziobacz
Value of field username must be != 'admin' and 'administrator'. Is it possible to do using some validator ? I have tried: new sfValidatorSchemaCompare('username', sfValidatorSchemaCompare::EQUAL, "admin", array(), array('invalid' => 'Error.')), but it doesn't work because "admin"