[symfony-users] Accessing Databases not specified in databases.yml

2010-09-07 Thread DEEPAK BHATIA
Hi, I have four projects in the htdocs directory and each have separate database in databases.yml. Now I have user login/password in each of the four different databases. How can I write the code in symfony when user change password, it gets changed in all the databases. Regards Deepak Bhatia

[symfony-users] Re: mobile site strategy

2010-09-07 Thread klemens_u
Hi, it's basically really just a question of view. Here's an old blog post about creating an iphone view: http://www.symfony-project.org/blog/2008/06/09/how-to-create-an-optimized-version-of-your-website-for-the-iphone-in-symfony-1-1 Most of it is still valid and it works. But there is one

[symfony-users] Re: mobile site strategy

2010-09-07 Thread klemens_u
Hi, it's basically really just a question of view. Here's an old blog post about creating an iphone view: http://www.symfony-project.org/blog/2008/06/09/how-to-create-an-optimized-version-of-your-website-for-the-iphone-in-symfony-1-1 Most of it is still valid and it works. But there is one

Re: [symfony-users] [symfony1.4] not sure how to make parent-child category structure in doctrine schema

2010-09-07 Thread Sebastien Armand [Pink]
I've had the same issue recently and decided NOT to go with nested set. Nested set is a great tool if you really have hierarchical data that should be represented by a tree of unknown depth and need to input new data anywhere in the tree. In my case, and it seems true in your case too, I was sure

Re: [symfony-users] Accessing Databases not specified in databases.yml

2010-09-07 Thread Sebastien Armand [Pink]
I had to do something like that some time ago to integrate the logins of 2 soft we were using (not our code) and did so using triggers in mysql. On Tue, Sep 7, 2010 at 2:07 PM, DEEPAK BHATIA toreachdee...@gmail.comwrote: Hi, I have four projects in the htdocs directory and each have separate

Re: [symfony-users] Accessing Databases not specified in databases.yml

2010-09-07 Thread DEEPAK BHATIA
Hi, Thanks for your mail. Can get some google link which is useful or send me some sample code of mysql trigger and how it gets invoked in symfony project ? Regards Deepak Bhatia On Tue, Sep 7, 2010 at 2:31 PM, Sebastien Armand [Pink] khe...@gmail.comwrote: I had to do something like that

Re: [symfony-users] Accessing Databases not specified in databases.yml

2010-09-07 Thread Sebastien Armand [Pink]
I absolutely cannot and I'm sorry for that! It was a few years ago that I did it! My original meaning was that you probably would not need any PHP and symfony in here. See the mysql doc about triggers and stored procedures: On certain actions (any password modification in your case) you will start

[symfony-users] Re: mobile site strategy

2010-09-07 Thread Kevin
Thanks, this stuff is great. Never thought of that. On Sep 7, 3:49 am, klemens_u klem...@ull.at wrote: Hi, it's basically really just a question of view. Here's an old blog post about creating an iphone view:http://www.symfony-project.org/blog/2008/06/09/how-to-create-an-optim... Most of

[symfony-users] Any way to retrieve from the layout to the name of the template of the action?

2010-09-07 Thread Javier Garcia
Hi, hi, any way to retrieve from the layout to the name of the template of the action? -- Javi Ubuntu 10.04, sf 1.4 -- 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

Re: [symfony-users] Abridged summary of symfony-users@googlegroups.com - 19 Messages in 12 Topics

2010-09-07 Thread joost . farla
Beste, Tot en met vrijdag 10 september ben ik niet aanwezig op kantoor. U kunt voor dringende zaken contact opnemen met mijn collega Dimitri van Hees: dimi...@freshheads.com of 013 5448761. Met vriendelijke groet, Joost Farla joost.fa...@freshheads.com - - freshheads grafisch ontwerp en

[symfony-users] automated response

2010-09-07 Thread Saad Tazi | Twist Image
Merci de votre message. Nos bureaux sont présentement fermés aujourd'hui, le 6 septembre 2010. En cas d’urgence, vous pouvez rejoindre notre équipe technique en envoyant un courriel à l’adresse suivante: supp...@twistimage.com. Cordialement, Saad Tazi - - - - - - - - - - - - - Thank you for

[symfony-users] Re: Using mysql php functions in symfony

2010-09-07 Thread Massimiliano Arione
On 7 Set, 07:52, DEEPAK BHATIA toreachdee...@gmail.com wrote: I tried accessing some other database than specified in databases.yml. But below is not working. Please help.     $con=mysql_connect(localhost,root,);     if(!$con)     {       echo Database Connection Not Estabilished\n;      

[symfony-users] Re: Any way to retrieve from the layout to the name of the template of the action?

2010-09-07 Thread guiguiboy
Hi, What do you want to do ? Have you looked at slots ? On 7 sep, 15:03, Javier Garcia tirengar...@gmail.com wrote:   Hi, hi, any way to retrieve from the layout to the name of the template of the action? -- Javi Ubuntu 10.04, sf 1.4 -- If you want to report a vulnerability issue on

Re: [symfony-users] Re: Using mysql php functions in symfony

2010-09-07 Thread DEEPAK BHATIA
I am sure you mean this.. $connection = Propel::getConnection(); $query = 'SELECT MAX(?) AS max FROM ?'; $statement = $connection-prepareStatement($query); $statement-setString(1, ArticlePeer::CREATED_AT); $statement-setString(2, ArticlePeer::TABLE_NAME); $resultset = $statement-executeQuery();

Re: [symfony-users] Re: Using mysql php functions in symfony

2010-09-07 Thread DEEPAK BHATIA
Thanks, Do I need to put various connections from different databases.yml ? all: propel: class: sfPropelDatabase param: dsn: 'mysql://root:@localhost/rtdb' all: propel: class: sfPropelDatabase param:

[symfony-users] Re: Escaped Form

2010-09-07 Thread Stephane
I'm getting that too and cannot find a work-around. I'm guessing this is PR3 current state because I _just_ got my src from the head revision of the PR3 branch, right off github. Stephane On Aug 28, 6:14 pm, Tomen Meta tommi.enen...@gmail.com wrote: I checked out the current PR3 Branch from

[symfony-users] Action ... does not exist - sfError404Exception

2010-09-07 Thread Hugo Briand
Hi everyone, I'm currently running into an issue regarding the development of a custom action in the list view in the backend part of my application. Here is my generator.yml file : config: actions: ~ fields: description: { label: Nom } address:{ label:

Re: [symfony-users] Re: Escaped Form

2010-09-07 Thread Greg Thornton
There are a few work-arounds. When passing your form to the view, you can wrap it in a Symfony\Component\OutputEscaper\SafeDecorator object: return $this-render('ExampleBundle:Test:create', array('form' = new SafeDecorator($form))); or you can use the getRawValue() method on the automagically

[symfony-users] Hello fellow Symfony Users

2010-09-07 Thread Texas Webmaster
Sorry, I had the group name wrong, this is updated. I am a php/xhtml/css/ etc developer in DFW Texas. I have recently started teaching myself Symfony, and hope to learn more here in your group. I don't know if I can post my group here, but I have started a layouts group for those interested in

[symfony-users] doctrine query help needed

2010-09-07 Thread Shihab KB
dear friends, I have the following tables. News [id, title, …] Education [id, title…..] Health [id, title, ….] ContentImage [id, contented (id of the News, Education, Health), type (like News, Education, Health), path…] The News, Education, Health may or may not have images in the ContentImage

[symfony-users] Race condition with session data

2010-09-07 Thread Phil Moorhouse
Hi, I currently have an action (A1) that performs some manipulation of objects saved in the session, and then loads a view containing an iframe. The iframe loads another action (A2) from the same application which relies on objects saved to the session in A1. Sometimes, particularly when

[symfony-users] Re: doctrine query help needed

2010-09-07 Thread Phil Moorhouse
Is your schema already fixed? If not, the normal way to do this would be to have m-m join tables: NewsImage [ news_id, image_id ] EducationImage [ education_id, image_id ] HealthImage [ health_id, image_id] and remove: content_id type from the ContentImage table. Then if you want all news

[symfony-users] Re: Race condition with session data

2010-09-07 Thread pghoratiu
The session is closed after all content is sent from A1. You should find a way to delay the load of the iframe (via Javascript maybe) to make sure that A1 has completed and that A2 can load the new content. gabriel On Sep 7, 6:04 pm, Phil Moorhouse moorhouse.p...@gmail.com wrote: Hi, I

[symfony-users] Re: Doctrine Pager max per page problem

2010-09-07 Thread ziclo
class articleActions extends sfActions { public function executeIndex(sfWebRequest $request) { // sorting if ($request-getParameter('sort') $this- isValidSortColumn($request-getParameter('sort'))) { $this-setSort(array($request-getParameter('sort'), $request-

[symfony-users] Re: IE8 and isXmlHttpRequest

2010-09-07 Thread Dennis
I keep seeing IE8 problems here with Symfony. Is IE8 turning out to be another IE6 - a long lived NIGHTMARE for developers? On Sep 2, 11:27 am, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: Damn... it indeed was a cache problem. God I hate IE Thank you! On 2 sep, 15:18, Gustavo

[symfony-users] schema.yml // 2 relations for a same table problem

2010-09-07 Thread ziclo
Hello, I have created a schema.yml but I do not know how to create 2 relations for a same table. How can i disctinct those 2 relations (rsource). With a suffix ? Here is my code : TrackerPret: actAs: { Timestampable: ~ } connection: doctrine attributes: export: tables columns:

[symfony-users] ahDoctrineEasyEmbeddedRelationsPlugin + Admin Generator

2010-09-07 Thread John Kary
I'm using ahDoctrineEasyEmbeddedRelationsPlugin trunk (svn export) with symfony 1.4.6 but having a problem displaying the relation when using generator.yml. Everything works great if I do `edit: display: ~` and `new: display: ~` in generator.yml. But I am using the `display:` option to order my

Re: [symfony-users] Re: Escaped Form

2010-09-07 Thread Stephane Duguay
Hi! The getRawValue work-around didn't work (cannot call getRawValue on a non-object) but the SafeDecorator one worked fine! If it doesn't take much time, I would like to understand what was causing this bug and why using the SafeDecorator fixed it. I'm new to Symfony2 and trying to understand

Re: [symfony-users] ahDoctrineEasyEmbeddedRelationsPlugin + Admin Generator

2010-09-07 Thread Hugo Briand
I also ran into this problem. I solved it by defining the fields in the form class (DocumentsForm in your case). For the fields I didn't wanted to display, I applied the widget InputHidden. I'm interested also if there's a better way, this one is not really clean. Le 7 sept. 2010 à 18:44, John

Re: [symfony-users] schema.yml // 2 relations for a same table problem

2010-09-07 Thread Pietrino Atzeni
Hi, just define a different name for each of them, and use a class attribute: relations: User: {class: rsource, local: oid_user, foreign: oid, foreignAlias: ASAusers } CDP: {class: rsource, local: oid_cdp, foreign: oid, foreignAlias: ASAcdps } Hope this helps, Pietro Hello,

[symfony-users] sfGuard Error

2010-09-07 Thread Social It
Hello: I'm getting this error when I'm trying to implement this code. The first code block with $user seems to work as the database is updated, but the second part fails. This is the error: Unknown record property / related component “sf_guard_user” on “sfGuardUserProfile” public function

[symfony-users] Relationships, Schema.yml SfDoctrineGuard

2010-09-07 Thread Kei Takahashi
The Context: a) Add new tables via mysql b) ./symfony doctrine:build-schema c) ./symfony doctrine:build --all-classes --model --forms --filters Item b) in the above list creates an issue: It reads the sf_guard_* tables and places the YAML into the newly generated /config/doctrine/schema.yml file.

[symfony-users] find out if user has credentials for route

2010-09-07 Thread Jochen Daum
Hi all, I have a backend application with various access cerdentials for a variety of modules. I'd like to build a navigation list, which should obviously be adjusted depending on what access rights you have. Is there a reasonably easy way to find out if the current user can access a route? If

[symfony-users] Re: doctrine query help needed

2010-09-07 Thread Shihab KB
Hi, Thanks for your reply. I cannot change my table structure.. I need to use the existing table.. regards Shihab On Sep 7, 8:55 pm, Phil Moorhouse moorhouse.p...@gmail.com wrote: Is your schema already fixed? If not, the normal way to do this would be to have m-m join tables: NewsImage [