[symfony-users] Re: How do I share partials between apps?

2009-07-22 Thread Bernhard Schussek
Create a plugin :-) --~--~-~--~~~---~--~~ 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-us

[symfony-users] How do I share partials between apps?

2009-07-22 Thread jskidmore
I can only see how to share partials between modules in a single app. How can I share them between multiple apps? Thanks for any guidance! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To po

[symfony-users] [SOLVED] Re: Save, just some values

2009-07-22 Thread Germana Oliveira
i solved this making another Form for my backend and other for my frontend , coz i need to customize each one with differents requirements . - And what's the matter? :) On Thu, Jul 23, 2009 at 00:52, Germana Oliveira wrote: > > HI!! > > wha

[symfony-users] sfGuardUserFormFilter Customization

2009-07-22 Thread Germana Oliveira
Hi!! Im trying to customize my UserFormFilter, so i have this in my setWidget: ... 'created_at'=> new sfWidgetFormFilterDate(array('from_date' => new sfWidgetFormDate(), 'to_date' => new sfWidgetFormDate(), 'with_empty' => true)), ... How can i change the labels of: 'fr

[symfony-users] Re: Doctrine order by sum(....) problem: Unknown aggregate alias: s

2009-07-22 Thread Jonathan Wage
This is a known issue with the orderby dql parser. An alternative workaround is to select the sum as an alias and then order by that alias. - Jon On Wed, Jul 22, 2009 at 6:05 PM, xwolf wrote: > > I have found the problem. In doctrine where it parses order by clouse, > string is exploded by ','

[symfony-users] Save, just some values

2009-07-22 Thread Germana Oliveira
I do not know how to do it ¿¿?? ___ And what's the matter? :) On Thu, Jul 23, 2009 at 00:52, Germana Oliveira wrote: > > HI!! > > what i want to do is to save (update) but just some values (fileds) and > keep the values of others. > > Thanks > > > > --~--~--

[symfony-users] Re: please help, running a task from an action

2009-07-22 Thread Gandalf
Works like a charm, a note to future readers, the arguments parameter despite being an array expects a single element array containing the arguments. Thanks! On 7/22/09, Gandalf wrote: > Superb > > Never thought of creating the instance on my own!!! > > Thanks, ill try it now > > >

[symfony-users] Embedding forms / Objects

2009-07-22 Thread -gary-
Hi, I am trying to do a multiple edit on a database table. Whn I output like this: [code] getStatusObject($key)->getStatusname() ?> [/code] I get this error: [code] Fatal error: Call to a member function getStatusname() on a non- object [/code] When I comment the above out the rest of the field

[symfony-users] Re: Save, just some values

2009-07-22 Thread Gábor Fási
And what's the matter? :) On Thu, Jul 23, 2009 at 00:52, Germana Oliveira wrote: > > HI!! > > what i want to do is to save (update) but just some values (fileds) and > keep the values of others. > > Thanks > > > > --~--~-~--~~~---~--~~ You received this message be

[symfony-users] Re: Doctrine order by sum(....) problem: Unknown aggregate alias: s

2009-07-22 Thread xwolf
I have found the problem. In doctrine where it parses order by clouse, string is exploded by ',' character. It works for string like order by title, artist, created_at but it fails in order by (timediff (updated_at, created_at). On 22 Lip, 15:14, xwolf wrote: > Hello, > I have a problem with ord

[symfony-users] Save, just some values

2009-07-22 Thread Germana Oliveira
HI!! what i want to do is to save (update) but just some values (fileds) and keep the values of others. Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send ema

[symfony-users] EmbedList into the admin Generator

2009-07-22 Thread Theo
Hello, I want to do an embedList like embedForm into the admin Generator. Is there a way to do this ? Thanks, Theo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send

[symfony-users] Re: Bus error -- Error message when running propel:build-model

2009-07-22 Thread Alexandru-Emil Lupu
hi! that is not the normal behaviour (i mean CURRENT_TIMESTAMP should work). Please tell us what symfony version are you using. Alecs On Wed, Jul 22, 2009 at 8:16 PM, dacoman wrote: > > I think I found the problem. > > I had used an existent MySql database where each table had two fields: > `cr

[symfony-users] Re: Bus error -- Error message when running propel:build-model

2009-07-22 Thread dacoman
I think I found the problem. I had used an existent MySql database where each table had two fields: `created_at` timestamp NOT NULL DEFAULT '-00-00 00:00:00', `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, running propel:build-schema and propel:build-sql run Okay just when r

[symfony-users] Re: problem with foreign key field

2009-07-22 Thread leader
Hi. thanks for your responses. I changed my Database... I modified the column names to x_ID but still have the same Issue : my new schema.yml is : propel: _attributes: package: lib.model defaultIdMethod: native alternative: _attributes: { phpName: Alternative } ALTERNATI

[symfony-users] [RESOLVED] Re: Routing not working in production

2009-07-22 Thread Aurélien Lansmanne
On 22 juil, 16:20, Aurélien Lansmanne wrote: > Hi, > > I've recently tried my first application developped with Symfony, but > I've run intro some trouble with the routing, as it doesn't work at > all :/ > > I've got two applications in my project : The backend that has been > made with the adm

[symfony-users] Re: Routing not working in production

2009-07-22 Thread Aurélien Lansmanne
Ok, no_script_name was the answer to my problem :) So it's working now, thanks for the help ! On 22 juil, 18:42, Gábor Fási wrote: > Which was the first project you made, frontend or backend? The first > one gets to use index.php, the second one uses projectname.php, and > has no_script_name di

[symfony-users] Re: Routing not working in production

2009-07-22 Thread Gábor Fási
Which was the first project you made, frontend or backend? The first one gets to use index.php, the second one uses projectname.php, and has no_script_name disabled by default. On Wed, Jul 22, 2009 at 16:20, Aurélien Lansmanne wrote: > > Hi, > > I've recently tried my first application developped

[symfony-users] Re: routing and slugify fieldnames

2009-07-22 Thread Gábor Fási
the getCompanySlug is called camelCase, when the first letter is lowercase, every other first letter of a word is capital. Another was is to separate the words with an underscore, so companySlug is the same as company_slug, just with a different writing mode. As the route you mentioned has the cla

[symfony-users] Re: symfonyFileValidator fails to detect mime-type

2009-07-22 Thread Gábor Fási
This is not a symfony error. The mimetype is submitted by the browser, by default php uses that, but as far as I can remember, symfony tries some other ways as well, but if all those fail, it falls back to the original, submitted one. On Wed, Jul 22, 2009 at 17:18, belbek wrote: > > when, for exa

[symfony-users] Re: Routing not working in production

2009-07-22 Thread Aurélien Lansmanne
The .htaccess was set to RewriteRule ^(.*)$ index.php [QSA,L] If I choose backend.php instead it will work, but I don't know why the /backend.php/ doesn't appear in the URL, while the backend_dev.php does... Is it possible to change the RewriteRule depending on the controler used? On 22 juil,

[symfony-users] routing and slugify fieldnames

2009-07-22 Thread vinnie
I am working my way though the jobeet tutorial and am on Day5. The class uses the getCompanySlug() function and the function slugify ($text) which all make sense but then the routing uses url: /job/:company_slug So my question is where did company_slug come from I would have expected it to b

[symfony-users] symfonyFileValidator fails to detect mime-type

2009-07-22 Thread belbek
when, for example, I rename .bmp file to .jpg fileValidator can't detect the mime type and wrong mime-type detects only symfony thumbnail plugin but this is already an error --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

RESOLVED Re: [symfony-users] Problem with link()?

2009-07-22 Thread Tom Haskins-Vaughan
OK, I guess the sfDoctrineGuardPlugin is a little more complicated than my requirements. Turns out all I had to do was this in my form $this->setWidgets(array( 'categories_list' => new sfWidgetFormDoctrineChoiceMany(array( 'model' => 'ProductCategory', 'multiple'

[symfony-users] Re: Routing not working in production

2009-07-22 Thread Javier Mendoza
is the rewrite_module active? 2009/7/22 Aurélien Lansmanne > > Hi, > > I've recently tried my first application developped with Symfony, but > I've run intro some trouble with the routing, as it doesn't work at > all :/ > > I've got two applications in my project : The backend that has been > ma

[symfony-users] Bus error -- Error message when running propel:build-model

2009-07-22 Thread dacoman
Hello, I'm trying to set up a development machine on my mac book running MacOS 10.5.7. with xampp 1.0.1 I'm following the jobeet tutorial. Everything runs smooth until I came to the step of propel:build-model. When I run: >./symfony propel:build-model I get following error: >> schemaconvert

[symfony-users] Routing not working in production

2009-07-22 Thread Aurélien Lansmanne
Hi, I've recently tried my first application developped with Symfony, but I've run intro some trouble with the routing, as it doesn't work at all :/ I've got two applications in my project : The backend that has been made with the admin generator, and an empty frontend ap, with nothing more insi

[symfony-users] Re: please help, running a task from an action

2009-07-22 Thread Gandalf
Superb Never thought of creating the instance on my own!!! Thanks, ill try it now On 7/22/09, Dheeraj Kumar Aggarwal wrote: > hi > i have implemented a function to execute a task from action > I have created a new instance of the sfFormatter class. > > // here class_name is the

[symfony-users] Problem with link()?

2009-07-22 Thread Tom Haskins-Vaughan
sf1.2 Doctrine Hi guys, I'm trying to use a form to create a CompetitorProductReport while including some CompetitorProductReportCategoryRefs, but I'm gettgin this error: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '2-1' for key 'PRIMARY' I have copied and pasted f

[symfony-users] Re: please help, running a task from an action

2009-07-22 Thread Dheeraj Kumar Aggarwal
hi i have implemented a function to execute a task from action I have created a new instance of the sfFormatter class. // here class_name is the class name of the task to be executed public static function executeTask($class_name, $arguments = array(), $options = array()) { $dispatcher =

[symfony-users] Re: error instalando symfony en UBUNTU 9.04

2009-07-22 Thread Bambinoelkilo
well,I find the solution, delete these files I had created and complete rm /etc/alternatives/symfony rm /usr/bin/symfony pear install symfony/symfony On Jul 17, 1:07 pm, Alexandru-Emil Lupu wrote: > Hi! > first of all, i would like to ask you to use English > > As the guys allready suggested,

[symfony-users] Doctrine order by sum(....) problem: Unknown aggregate alias: s

2009-07-22 Thread xwolf
Hello, I have a problem with orderBy part in Doctrine query. I want to sort music objects in mysql by diggs and time they were added. Mysql query should look like: select * from music m left join digg d on (d.digged_id = m.id and d.digged_model = 'music') group by m.id order by sum(GREATEST(50/ (

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