Re: [symfony-users] sym 1.2.9 Pagination using Propel........

2010-03-01 Thread Gábor Fási
http://www.symfony-project.org/jobeet/1_2/Propel/en/07#chapter_07_list_pagination On Mon, Mar 1, 2010 at 08:47, karansoni kanu8...@gmail.com wrote: Hii everyvone.,, I am quite new to symfony and using 1.2.9 as the project development. An important feature of Pagination i do not know how to do

[symfony-users] Re: Does 1.4 or any plugin allow to configure Javascript (view.yml) by environment ?

2010-03-01 Thread Massimiliano Arione
Sorry, no link. Just refer to official documentation. You only need to create a custom helper, copying use_javascript() function from AssetHelper and adding a simple logic base on sfConfig::get('sf_web_debug') cheers Massimiliano On 26 Feb, 18:43, Bruno Reis bruno.p.r...@gmail.com wrote: Thanks

[symfony-users] Admin Backend field value depends on another

2010-03-01 Thread Arthur Ccube
Hi Guys, My Shop form have two fields - City and Area. Area depends on the City selected. How can I do it in my generator.yml for my Shop? Thanks! -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because

[symfony-users] html markup in form field's labels get escaped after upgrading to sf1.4

2010-03-01 Thread Hong Kil Dong
I used html markup in form field's labels for some reasons, but after upgrading from sf1.2 to 1.4 it gets escaped during rendering. How to abolish output escaping for form field's labels in sf1.4 ? -- If you want to report a vulnerability issue on symfony, please send it to security at

[symfony-users] Jobeet Tutorial: jobs.yml data fixture example won't doctrine:data-load.

2010-03-01 Thread Trung Huynh
I'm aware that indentation should be spaces etc. Its the data fixture with php combined: jobs.yml I exactly copy paste the example and i still get this error. doctrine Loading data fixtures from /Use...g/Websites/jobeet/data/fixtures Unable to parse string: Unable to parse line 1 ( job_100:).

Re: [symfony-users] Jobeet Tutorial: jobs.yml data fixture example won't doctrine:data-load.

2010-03-01 Thread Gábor Fási
Try with this one: http://svn.jobeet.org/doctrine/trunk/data/fixtures/jobs.yml On Mon, Mar 1, 2010 at 14:44, Trung Huynh forrestgu...@gmail.com wrote: I'm aware that indentation should be spaces etc. Its the data fixture with php combined: jobs.yml I exactly copy paste the example and i still

[symfony-users] Re: Jobeet Tutorial: jobs.yml data fixture example won't doctrine:data-load.

2010-03-01 Thread Trung Huynh
gets me this :( doctrine Loading data fixtures from /Users/trung/Websites/jobeet/data/fixtures Warning: strtotime() expects parameter 1 to be string, array given in / Users/trung/Websites/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/ lib/vendor/doctrine/Doctrine/Record.php on line 1526

[symfony-users] Re: Why is this fixture not working?

2010-03-01 Thread Samuel Morhaim
Anyone? Thank you On 3/1/10, Samuel Morhaim samuel.morh...@gmail.com wrote: Never mind about this one, but now I am facing one more issue.. Based on the below schema.. why is the 1 to many between Command and Events not working? I get a method such as $command-getEvent() but it seems to be

[symfony-users] Using a customized table_method on sfGuardUser

2010-03-01 Thread NOOVEO - Christophe Brun
I'm working on the backend side of a web application, with the sfDoctrineGuardPlugin. In sfGuardUser/config/generator.yml, I add the line : list: table_method: retrieveAdminsList and in the model : class sfGuardUserTable extends PluginsfGuardUserTable { public function

[symfony-users] Re: Why is this fixture not working?

2010-03-01 Thread Tom Ptacnik
You can look etc into the Practical symfony-jobeet-1.4-doctrine-en.pdf and there you can see that you have badly set your relations look on the JobeetJob - JobeetCategory realation 1) specify the relation only on one side 2) specify the foreignAlias: etc JobeetJobs ... JobeetCategory: actAs:

[symfony-users] How to include javascript files in web/js/ui/ in symfony?

2010-03-01 Thread SymfonyNewbie
I tried this: use_javascript('jquery.ui.core.js','/js/ui/'); But it reports: The position /js/ui/ does not exist -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the

[symfony-users] Re: How to include javascript files in web/js/ui/ in symfony?

2010-03-01 Thread jp_morvan
Hi, Did you try this : use_javascript('ui/jquery.ui.core.js'); symfony add 'js/' On 1 mar, 16:00, SymfonyNewbie shore.cl...@gmail.com wrote: I tried this:     use_javascript('jquery.ui.core.js','/js/ui/'); But it reports:  The position /js/ui/ does not exist -- If you want to report a

Re: [symfony-users] Re: Jobeet Tutorial: jobs.yml data fixture example won't doctrine:data-load.

2010-03-01 Thread Alexandru-Emil Lupu
I think that on job_expired token is a typo. Try to chage it from 'job_expired' to 'expired_job' or so... i am mono tasking and i cannot copy paste what i think is the right key for the fixture... Alecs sent via htc magic On Mar 1, 2010 4:20 PM, Trung Huynh forrestgu...@gmail.com wrote: gets me

Re: [symfony-users] Re: Why is this fixture not working?

2010-03-01 Thread Samuel Morhaim
Tom, Thank you for the reply, but I don't think that is the problem. 1. The relation between my Command and Event, is only defined in one side, the Event relations: Command: local: command_id foreign: id type: many cascade: [delete] foreignAlias: Events 2. I

[symfony-users] Check if partial exists

2010-03-01 Thread HAUSa
Is there a way to check if a partial exists in the template? I've looked around in Google, but it doesn't give very useful results... -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are

[symfony-users] Re: Check if partial exists

2010-03-01 Thread Mr_chon
Hi, Maybe you could try this, or something similar : http://forum.symfony-project.org/index.php/m/76440/#msg_76440 On Mar 1, 5:04 pm, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: Is there a way to check if a partial exists in the template? I've looked around in Google, but it

[symfony-users] Re: How to include javascript files in web/js/ui/ in symfony?

2010-03-01 Thread SymfonyNewbie
Oh,this time it works. Why it doesn't work when I set the location explicitly? On 3月1日, 下午11时36分, jp_morvan sacri...@free.fr wrote: Hi, Did you try this :   use_javascript('ui/jquery.ui.core.js'); symfony add 'js/' On 1 mar, 16:00, SymfonyNewbie shore.cl...@gmail.com wrote: I tried

[symfony-users] Re: How to include javascript files in web/js/ui/ in symfony?

2010-03-01 Thread jp_morvan
Because this method does not accept location on second parameter This parameter is the position in witch the meta tag will be include (first, last). On 1 mar, 17:12, SymfonyNewbie shore.cl...@gmail.com wrote: Oh,this time it works. Why it doesn't work when I set  the location explicitly? On

[symfony-users] sf_flash gone in 1.4?

2010-03-01 Thread Darren884
In my template I put the following: ?php if ($sf_flash-has('status')): ? ?php echo $sf_flash-get('status') ? ?php endif; ? Now I get: Notice: Undefined variable: sf_flash in /var/www/vhosts/blackhawk.biz/ symfony/apps/frontend/modules/customers/templates/loginSuccess.php on line 2 Fatal

[symfony-users] Re: How to include javascript files in web/js/ui/ in symfony?

2010-03-01 Thread SymfonyNewbie
Yes,exactly. I've checked the code,it's just used as a key for javascript files. Thanks On 3月2日, 上午12时19分, jp_morvan sacri...@free.fr wrote: Because this method does not accept location on second parameter This parameter is the position in witch the meta tag will be include (first, last).

[symfony-users] A suggestion for javscript plugin/widget of the symfony community

2010-03-01 Thread SymfonyNewbie
It's only classified by symfony version, in order for it to be practically reusable, I think it should also need to be grouped by the library(prototype,jquery,yui) and version(1.3,1.4...) What's your opinion? -- If you want to report a vulnerability issue on symfony, please send it to

Re: [symfony-users] Re: Only one model per module for doctrine-generate-crud?

2010-03-01 Thread Roland Cruse
Not for the url, as routing can show what ever url you want. Its more of a house keeping design thing. Lets say you have three areas of your web site: hotels, apartments and availability each area may have many db tables (i.e. models) that support it. It would be convenient to have a module for

Re: [symfony-users] sf_flash gone in 1.4?

2010-03-01 Thread Gábor Fási
$sf_user-hasFlash() On Mon, Mar 1, 2010 at 19:14, Darren884 darren...@gmail.com wrote: In my template I put the following: ?php if ($sf_flash-has('status')): ?  ?php echo $sf_flash-get('status') ? ?php endif; ? Now I get: Notice: Undefined variable: sf_flash in

[symfony-users] Re: sf_flash gone in 1.4?

2010-03-01 Thread Richtermeister
The flash variable is now attached to the user. Use $sf_user - getFlash() - has('blah'); They did that because it interacts with the user anyways (storing stuff in session), so now it explicitly belongs to the user. If you need to fix hundreds of templates, you can just listen to the

Re: [symfony-users] Re: Check if partial exists

2010-03-01 Thread Gunther Konig
Maybe you could try this, or something similar : http://forum.symfony-project.org/index.php/m/76440/#msg_76440 On Mar 1, 5:04 pm, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: Is there a way to check if a partial exists in the template? I've looked around in Google, but it

Re: [symfony-users] Re: Jobeet Tutorial: jobs.yml data fixture example won't doctrine:data-load.

2010-03-01 Thread Trung Huynh
changing it to expired_job doesn't help neither. I have no clue what's going on. I really want to go on with the tutorial, i like it so far. On Mon, Mar 1, 2010 at 4:58 PM, Alexandru-Emil Lupu cont...@alecslupu.rowrote: I think that on job_expired token is a typo. Try to chage it from

[symfony-users] Symfony doctrine and CRUD?

2010-03-01 Thread Darren884
Do I have to install a different module for generating CRUD? When I tried to run the crud generation command it said the task did not exists and then when I listed the available builder command line options it didn't exist in there. Is my Symfony installation missing something? -- If you want to

[symfony-users] Calling an action from an outside class

2010-03-01 Thread Samuel Morhaim
Is there a way to call an action, from an outside Class? I am handling the processing of one of my routines with an outside class.. I need to call the exact same code being called in one of my actions.. how can i do this? or should i move the code somewhere else? thanks. -- If you want to

Re: [symfony-users] Calling an action from an outside class

2010-03-01 Thread Daniel Lohse
Move it out to the model or into the outside class and also call it from the action. :) Daniel On 01.03.2010, at 23:43, Samuel Morhaim wrote: Is there a way to call an action, from an outside Class? I am handling the processing of one of my routines with an outside class.. I need to

Re: [symfony-users] Calling an action from an outside class

2010-03-01 Thread Samuel Morhaim
Sorry for the dumb question, but now that I moved it to lib/Message.class.php ... how do I call it from there from within a separate Class? I manage to call it from within the actions.. but now i am in this external class, and i need to call that method ? On Mon, Mar 1, 2010 at 5:57 PM, Daniel

Re: [symfony-users] Calling an action from an outside class

2010-03-01 Thread Daniel Lohse
require_once the file and instantiate the Message class... oh man, symfony is not there for you to completely forget either PHP or plain OOP :) Daniel On 02.03.2010, at 01:00, Samuel Morhaim wrote: Sorry for the dumb question, but now that I moved it to lib/Message.class.php ... how do I

Re: [symfony-users] Calling an action from an outside class

2010-03-01 Thread Samuel Morhaim
lol yes, sorry, i click sent, and then figured it out. :) On Mon, Mar 1, 2010 at 7:02 PM, Daniel Lohse annismcken...@googlemail.comwrote: require_once the file and instantiate the Message class... oh man, symfony is not there for you to completely forget either PHP or plain OOP :) Daniel

Re: [symfony-users] Calling an action from an outside class

2010-03-01 Thread Daniel Lohse
no problem, it's late over here, anyway :D On 02.03.2010, at 01:07, Samuel Morhaim wrote: lol yes, sorry, i click sent, and then figured it out. :) On Mon, Mar 1, 2010 at 7:02 PM, Daniel Lohse annismcken...@googlemail.com wrote: require_once the file and instantiate the Message

[symfony-users] How to migrate and deploy

2010-03-01 Thread Arthur Ccube
Hi Guys, I am new to symphony. My application has backend and frontend apps. I was used to RubyOnRails, there, I can deploy by using a list of migration files to update DB. In symfony, what i know is updating schema.yml. However, it does not keep version, that means my db has to be dropped each

[symfony-users] how to do pdf in symfony

2010-03-01 Thread Arthur Ccube
how to generate pdf files from my html/pdf templates in symfony? It is better to have free/open source methods. Thanks! -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the

[symfony-users] Payment Gateway and Paypal

2010-03-01 Thread Arthur Ccube
Hi Guys, I am working on a e Commerce website which has payments via Visa and Payment. What is the common way to do it in symfony? Thanks a lot! Arthur -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message

Re: [symfony-users] Payment Gateway and Paypal

2010-03-01 Thread Sid Bachtiar
There is a plugin, but I usually just rolled out my own with library provided by Paypal. On Tue, Mar 2, 2010 at 2:20 PM, Arthur Ccube arthurcc...@gmail.com wrote: Hi Guys, I am working on a e Commerce website which has payments via Visa and Payment. What is the common way to do it in

[symfony-users] Probleme avec le tutorial symfony 6 eme jour

2010-03-01 Thread aymen-web
aprés l'execution du cette instruction Doctrine::getTable('JobeetCategory')-getWithJobs(); une erreur est declencher. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google

[symfony-users] How does form widgets take default into account?

2010-03-01 Thread Aadaam
Hi all, I now this is a silly question, but I simply can't set a date widget to a default value, nor I am able to understand how it is supposed to work. What I tried: class SomeForm extends DoctrineForm { public function configure(){ $this-widgetSchema['startdate'] = new

[symfony-users] Database design and modification - methodology

2010-03-01 Thread beach_defender
Hi, I imagine that this has been discussed in great detail, but I have not as yet seen any detailed discussion of it. If you have a link, please offer it, otherwise, I'm happy to continue this thred. I have been building PHP and other language based apps for some time (started about 1983), and

Re: [symfony-users] Database design and modification - methodology

2010-03-01 Thread Eno
On Mon, 1 Mar 2010, beach_defender wrote: My understanding is that if I change the database I then need to rebuild YML files, model etc completely. Is this correct? I'm not criticising the process, just trying to understand the best approach to this. Its the other way round: i.e. you

Re: [symfony-users] how to do pdf in symfony

2010-03-01 Thread DEEPAK BHATIA
http://www.symfony-project.org/plugins/sfPhpExcelPlugin PDF can be generated using this library. On Tue, Mar 2, 2010 at 6:48 AM, Arthur Ccube arthurcc...@gmail.com wrote: how to generate pdf files from my html/pdf templates in symfony? It is better to have free/open source methods. Thanks!

Re: [symfony-users] how to do pdf in symfony

2010-03-01 Thread Alexandru-Emil Lupu
You could try sftcpdfPlugin or so... sent via htc magic On Mar 2, 2010 7:21 AM, DEEPAK BHATIA toreachdee...@gmail.com wrote: http://www.symfony-project.org/plugins/sfPhpExcelPlugin PDF can be generated using this library. On Tue, Mar 2, 2010 at 6:48 AM, Arthur Ccube arthurcc...@gmail.com

Re: [symfony-users] Re: Only one model per module for doctrine-generate-crud?

2010-03-01 Thread Roland Cruse
Seeking feedback. Does each module only pertain to a one model (database table)? On Mon, Mar 1, 2010 at 11:07 AM, Roland Cruse cruses...@gmail.com wrote: Not for the url, as routing can show what ever url you want. Its more of a house keeping design thing. Lets say you have three areas of