Re: [symfony-users] Re: Install plugins programmatically?

2010-08-12 Thread Stéphane
There is a class which helps you "wrapping" methods. Search for sfClassManipulator. Cheers, Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Thu, Aug 12, 2010 at 8:07 AM, Damon Jones wrote: > You can certainl

[symfony-users] Re: Virtual Columns with "tabular" layout

2010-08-12 Thread Wildancer
So there isn't a simple way for do it, I can't use the %%placeolders%% if I need virtual columns in the tabular layout? It's quite strange i think!! On 12 Ago, 00:50, Alexandre Salomé wrote: >   Override generated templates, or go back to columns. > > Take a look at documentation for overriding g

[symfony-users] [Symfony2] Problems creating sqlite database

2010-08-12 Thread alfonso
Hi: I keep on playing with Symfony2. I'm trying to create an sqlite database for a pilot proyect: # file: symad/config/config_test.yml ... doctrine.dbal: driver: PDOSqlite dbname: %kernel.root_dir%/sf2cmf-test -- Running the task: # php symad/console-test doctrine:d

[symfony-users] Different result on two servers when submitting a form that sends email automatically

2010-08-12 Thread El Duderino
The project I am working on is using Symfony 1.4 and the backend has a number of forms that when the data is changed and the form submitted, the user in question is notified by email. On our development server all goes fine, the page redirects back to '/ page-you-are-on/15/edit' and the email has

[symfony-users] propel version of apostrophe?

2010-08-12 Thread Tofuwarrior
Hi, Apologies to apostrophe group members for cross posting. We have started using symfony1.4 and propel1.5 to develop our applications and definitely no regrets but now we have have 2 choices - port our own CMS (which is already propel and MVC but not symfony driven) across into symfony OR take

[symfony-users] Log exception stack trace in production

2010-08-12 Thread gopi
Hi.. We are using symfony 1.4 and we see that whenever an exception is raised on a request, the log contains only the exception message($e- >message). Is there any config setting to get the full stack trace of the exception logged to the log file (in production). Else, which is the right place t

[symfony-users] sfGuard redirecting to referrer OR to default, can't have both?

2010-08-12 Thread Tofuwarrior
Hi, We've got an app where if someone attempts too access a secure url and is not logged in they see the login and then are redirected via referrer back ot the orignially requested url. BUT ... if they just click the login button we want them to be redirected to a default secure area index page n

[symfony-users] Re: Log exception stack trace in production

2010-08-12 Thread gopi
Currently, I could get it working by adding in outputStackTrace() $traces = self::getTraces($exception, 'txt'); if (sfConfig::get('sf_logging_enabled')) { $dispatcher->notify(new sfEvent($exception, 'application.log', array($exception->getMessage() . "---" . join('---', $traces

[symfony-users] how can i make a functional Test with is Redirected To ?

2010-08-12 Thread RusAlex
I want to make a functional test, which similar to this: Click edit button and then redirected to my page, and i want to check redirected url. $browser->info('3 - Click Submit on edit keyword')-> get('/keyword/edit/id/'.$wiki_keyword->getId())-> info('Click Submit')-> click('Save')-> with('r

[symfony-users] Country City problem

2010-08-12 Thread Andro Fumero
Good day, Does any one tried to make a drop down Countries, and when its clicked, it will display the list of cities based on the selected Country. I don't care if its from Database or Jscript. I just want to get this done because I'm stuck with this problem. have no clue where to start. Any h

AW: [symfony-users] how can i make a functional Test with is Redirected To ?

2010-08-12 Thread Christopher Schnell
you can do it this way: ... with('response')->begin()-> isRedirected()-> followRedirect()-> end()-> with('request')->begin()-> isParameter('module', 'myModule')-> isParameter('action', 'myAction')-> end(); Regards, Christopher. > -Ursprüngliche Nachricht- > Von: symfony-

Re: [symfony-users] Country City problem

2010-08-12 Thread Daniel Lohse
http://www.symfony-project.org/plugins/sfDependentSelectPlugin But you'll likely have to translate the documentation using Google Translate. ;-) Cheers, Daniel PS: I did not develop this plugin and I haven't used it, so this is just fyi. On 12.08.2010, at 15:00, Andro Fumero wrote: > Good da

[symfony-users] ARUBA hosting ERROR: Install PDO and PDO driver: mysql

2010-08-12 Thread Johnny
Dear all, I'm trying to use a symfony application but when I try to login on the remote serve I gave this error: ERROR: Install PDO and PDO driver: mysql The hosting is italian and its name is www.aruba.it Many thanks Giovanni -- If you want to report a vulnerability issue on symfony, please se

[symfony-users] Re: Doctrine.ORM Proxy

2010-08-12 Thread Michael
I run the console script (doctrine:generate:proxies) to create proxy classes, but still getting this error, what do i need to do? On Aug 11, 11:02 pm, Tim Nagel wrote: > Sounds like you havent generated your Proxy objects based on the Entities. > > t > > On Thu, Aug 12, 2010 at 08:55, Michael wr

Re: [symfony-users] ARUBA hosting ERROR: Install PDO and PDO driver: mysql

2010-08-12 Thread Eno
On Thu, 12 Aug 2010, Johnny wrote: > I'm trying to use a symfony application but when I try to login on the > remote serve I gave this error: > ERROR: Install PDO and PDO driver: mysql Error message is self-explanatory: you need to install the PDO/PDO-mysql drivers to run symfony. -- A --

Re: [symfony-users] [Symfony2] Problems creating sqlite database

2010-08-12 Thread Brandon Turner
On 8/12/10 3:00 AM, alfonso wrote: I'm trying to create an sqlite database for a pilot proyect: # file: symad/config/config_test.yml ... doctrine.dbal: driver: PDOSqlite dbname: %kernel.root_dir%/sf2cmf-test -- Try something like this: doctrine.dbal: driv

[symfony-users] Tuto Jobeet

2010-08-12 Thread Seb
Hy everyone, I have a little question about this tuto : http://www.symfony-project.org/jobeet/1_4/Doctrine/en/02 How do they do to make the Interface's prototype (I mean what programme do they use) ? thanks !! -- If you want to report a vulnerability issue on symfony, please send it to securi

Re: [symfony-users] Tuto Jobeet

2010-08-12 Thread Gábor Fási
They were created with Balsamiq mockups, http://www.balsamiq.com/products/mockups On Thu, Aug 12, 2010 at 17:12, Seb wrote: > Hy everyone, > > I have a little question about this tuto : > http://www.symfony-project.org/jobeet/1_4/Doctrine/en/02 > How do they do to make the Interface's prototype

[symfony-users] Strange problem with multiple db connections

2010-08-12 Thread Zuchuat Bertrand
Hi Jon, I have a strange problem with multiple db connections. My databases.yml (definition): all: common: class:sfDoctrineDatabase param: dsn:'oracle:dbname=//server:1521/sid' username: x password: x web: class:sfDoctrineData

[symfony-users] Re: propel version of apostrophe?

2010-08-12 Thread Richtermeister
I would imagine that at this point you can do everything that Doctrine can do equally easily with Propel, and the port should be fairly straight forward. I would be very interested in such a development as well, and very available to help out. Daniel On Aug 12, 3:02 am, Tofuwarrior wrote: > Hi,

[symfony-users] Re: how can i make a functional Test with is Redirected To ?

2010-08-12 Thread RusAlex
Thanks, for best answer On Aug 12, 5:08 pm, Christopher Schnell wrote: > you can do it this way: > > ... > with('response')->begin()-> >     isRedirected()-> >     followRedirect()-> > end()-> > with('request')->begin()-> >     isParameter('module', 'myModule')-> >     isParameter('action', 'myAc

[symfony-users] string foreign key

2010-08-12 Thread Sela
i use in my schema the 2 letters country code as my foreign key. so first primary key was id and i got the value in the options the IDs or PromoteCountry, then I thought I would use the country column as the primary key to test this option, but the admin didn't display anything as i know it doesn't

[symfony-users] How i can implement this with sfGuard plugin

2010-08-12 Thread RusAlex
Im only new member there and only studying symfony. I have simple frontend like from manual ex. with Job module, What i want to implement? users can login and view/add/edit only their jobs. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.c

[symfony-users] Re: How i can implement this with sfGuard plugin

2010-08-12 Thread RusAlex
I have my own opinion: I need to add new field "user" into job table, and use edited actions to show: class jobActions extends sfActions { public function executeIndex(sfWebRequest $request) { $this->jobs = Doctrine::getTable('JobeetJob') ->createQuery('a') ->where('a.user = ?

Re: [symfony-users] Re: Install plugins programmatically?

2010-08-12 Thread Gustavo Adrian
Hi, first of all, thank you both guys for your answers. @Damon: I couldn't try that yet but, as you said, the only problem I see is that I have no way (that I know) of enable the plugin on ProjectConfiguration class. And this class is used on the very first part of the framework initialization. I

Re: [symfony-users] Question about form and redirect

2010-08-12 Thread Stef
On Wed, Aug 11, 2010 at 6:44 PM, Gábor Fási wrote: > Why don't you directly post your data to the search action? You can > validate and do the search there. > > I've read that you should do a redirect when a form was submitted by POST. If I redirect I've managed to access the submitted data --

Re: [symfony-users] Question about form and redirect

2010-08-12 Thread Gábor Fási
That only applies to stuff like posting to a blog or a forum - when reloading the page does harm, for example by duplicating content. It is ok to not redirect in case of a search. On Thu, Aug 12, 2010 at 22:12, Stef wrote: > > > > > On Wed, Aug 11, 2010 at 6:44 PM, Gábor Fási wrote: >> >> Why do

[symfony-users] symfony form not merging with existing object data (1.4.7-DEV)

2010-08-12 Thread ashton
I have generated an action using doctrine:generate-module (I can reproduce this behavior in the admin module as well) When I post to the update page with an incomplete set of values (just the title for instance) so: /api_dev.php/event/update?id=1&event[title]=nothing The object is updated and save

Re: [symfony-users] [Symfony2] Problems creating sqlite database

2010-08-12 Thread Alexandre Salomé
Use path instead of dbname : I have this : doctrine.dbal: driver: PDOSQLite path: "%kernel.root_dir%/db.sql" user: root password: It works, here Le 12/08/10 10:00, alfonso a écrit : Hi: I keep on playing with Symfony2. I'm trying to create an sql

Re: [symfony-users] Re: Doctrine.ORM Proxy

2010-08-12 Thread Alexandre Salomé
I just answered for someone with the same problem : Escape your \ : ->createQuery('Bundle\\HelloBundle...') Or use namespaces : ->createQuery('HelloBundle:User'); Le 12/08/10 16:05, Michael a écrit : I run the console script (doctrine:generate:proxies) to create proxy classes, but s

Re: [symfony-users] sfGuard redirecting to referrer OR to default, can't have both?

2010-08-12 Thread Alexandre Salomé
Override the sfGuard controller. Create a module sfGuardAuth in your application, create the actions.class.php and extends the same class as the controller in the plugin. Override the executeSignin method to create your behavior Le 12/08/10 13:23, Tofuwarrior a écrit : Hi, We've got an ap

Re: [symfony-users] Different result on two servers when submitting a form that sends email automatically

2010-08-12 Thread Alexandre Salomé
Must be a strange behavior from your HTTP server installation. Try with another server, that you are sure it is configured correctly. Maybe a strange behavior from your mail server. Try debugging, with simple tests : * Disable mail sending * Compare the HTTP responses of each installat

Re: [symfony-users] Re: Virtual Columns with "tabular" layout

2010-08-12 Thread Alexandre Salomé
Sorry, i hadn't read this chapter. It's good, I read it. Try putting the relation name in your list attribute : list: [ id, title, content, category ] Your Category object has to have a __toString method. Otherwise, you will have to use partials. Le 12/08/10 08:55, Wildancer a écrit : S

Re: [symfony-users] rutas proyecto jobeet

2010-08-12 Thread Alexandre Salomé
Must be an error in your Apache configuration. Set the RewriteBase value in your .htaccess to "/jobeet/web", or change your DocumentRoot (in Apache configuration) to your project folder. Please, send questions in english, more easy for people to understand/answer. Por favor, envíe sus pregun

Re: [symfony-users] Question about form and redirect

2010-08-12 Thread Stef
On Thu, Aug 12, 2010 at 10:15 PM, Gábor Fási wrote: > That only applies to stuff like posting to a blog or a forum - when > reloading the page does harm, for example by duplicating content. It > is ok to not redirect in case of a search. > > Thanks for your explanation! It's crystal clear ;) --

Re: [symfony-users] [Symfony2] Problems creating sqlite database

2010-08-12 Thread Alfonso Alba García
Hi Alexandre: I tried your configuration: doctrine.dbal: driver: PDOSQLite path: "%kernel.root_dir%/db.sql" user: root password: Unfortunately, the driver you are using doesn't work in my version of doctrine (revision 5719f85): [Doctrine\DBAL\DBALException] The

Re: [symfony-users] [Symfony2] Problems creating sqlite database

2010-08-12 Thread Alfonso Alba García
Hi Brandon: Thanks for your answer but it didn't solve the problem, I'm still getting the same error (doctrine revision 5719f85) El 12/08/10 16:35, Brandon Turner escribió: On 8/12/10 3:00 AM, alfonso wrote: I'm trying to create an sqlite database for a pilot proyect: # file: sym

[symfony-users] Re: Install plugins programmatically?

2010-08-12 Thread James Cauwelier
It is possible to enable a plugin from the projectConfiguration methods, but nobody dictates that the plugin names should be hardcoded there, you could use a configuration XML for instance... The code below does not work, but illustrates the principle. There is also more than one way to do this.