Re: [symfony-users] Re: Sluggable behaviour: field called slug is not created

2010-08-02 Thread Javier Garcia
To create a profile schema that inherits from the sfGuardUser. Anyway i have created a new profile schema in a way that doesn't use inheritance. On 07/31/2010 05:35 PM, Tom Ptacnik wrote: Maybe your problem is a bug, but. Why do you want to use a simple inheritance. I don't think that

[symfony-users] Doctrine Migration Diff fails

2010-08-02 Thread binarious
Hello, in an ongoing project I'm not able to edit the database via migrations. When I edit something in the schema.yml and run doctrine:generate- migrations-diff I get: doctrine generating migration diff file+ C:\Users\bieder\AppData\Local\Temp/doctrine_schema_15481.yml Notice: Undefined

Re: [symfony-users] Re: permissions checker - where to test, where to put method?

2010-08-02 Thread Paul Burdon
Thanks, very helpful. Paul On 30 July 2010 11:54, Oscar Saraza oscarsar...@gmail.com wrote: I already do something like that... I think. My solution: to create a subclass of the symfony class sfActions (in my case ssActions, placed in the lib folder). This subclass contains the preExecute

[symfony-users] Emails and multiple Applications

2010-08-02 Thread Stephen Melrose
Hey, I've just been reading up on email best practices for 1.3/1.4. It all makes sense, however my project has two applications (frontend and backend) and both will be sending the same email. I don't want to duplicate my template into both applications, but at the same time I don't know how to

[symfony-users] Re: Emails and multiple Applications

2010-08-02 Thread pghoratiu
You should use a plugin, put your templates in the same module and enable the plugin for all the applications that need it. gabriel On Aug 2, 5:26 pm, Stephen Melrose step...@sekka.co.uk wrote: Hey, I've just been reading up on email best practices for 1.3/1.4. It all makes sense,

Re: [symfony-users] Re: Emails and multiple Applications

2010-08-02 Thread Stephen Melrose
I thought of that, but it just seems like the wrong approach, as the templates aren't really a plugin. Is that really the best approach? On 2 August 2010 15:51, pghoratiu pghora...@gmail.com wrote: You should use a plugin, put your templates in the same module and enable the plugin for all

Re: [symfony-users] Re: Emails and multiple Applications

2010-08-02 Thread Gustavo Adrian
If it's just a text email, you could encapsulate the message in a message object so you don't have to use the template. But, as I said, this would be just for a text email, With HTML it would be a little cumbersome. On Mon, Aug 2, 2010 at 12:11 PM, Stephen Melrose step...@sekka.co.ukwrote: I

[symfony-users] Re: Emails and multiple Applications

2010-08-02 Thread Richtermeister
Hey Stephen, while there's nothing wrong with creating a plugin, even to just share one template, for emails I prefer to wrap them in classes. As Gustavo says, it sucks a bit if there's complex HTML involved, and I'm currently looking at integrating the templating standalone component to be able

[symfony-users] Error with include_once()

2010-08-02 Thread Javier Garcia
Hi, after installing sfDoctrineApplyPlugin-1.1.1, extracting Zend at lib/vendor/Zend, executing sfApply/apply and submitting the form that appears i get this errror: *Quote:* Warning: include_once(Zend/Loader/Autoloader.php) [function.include-once]: failed to open stream: No such file

[symfony-users] Re: [SYMFONY 1.4] How to deploy on a subdirectory?

2010-08-02 Thread Gustavo Adrian
Anyone? On Fri, Jul 30, 2010 at 1:13 PM, Gustavo Adrian comfortablynum...@gmail.com wrote: Hi all, This is a topic I've been avoiding for a long time but now I need to deploy my app on a subdirectory and there's no other option. IMPORTANTE: It's on a SHARED HOSTING. The app dir structure

Re: [symfony-users] Re: [SYMFONY 1.4] How to deploy on a subdirectory?

2010-08-02 Thread Luciano A. Andrade
The easy way to do this is with a symlink from public_html to web (on your symfony proyect) symlink will work if apache is correctly configured, ie, followsymlink is active. Other easy option is change the way the front controller loads the config, just put every thing from your web directory in

[symfony-users] Problem With Jobeet: Day 5

2010-08-02 Thread David Savage
Hey all, So, I just downloaded symfony and decided to try and learn it by following the Jobeet tutorial. After some bumps and starts (not sure if the symfony website maintainers read this, but they might think of including a specialized install guide for Snow Leopard, took me forever and a ton of

[symfony-users] How to add new type to schema?

2010-08-02 Thread Rafał
Hi, I want to ask for help. I want to add new data type to my schema.yml. I have a field name IP (IP Address) in my application. My Postgresql database has 'inet' data type but I can't use it in my symfony. Could you help me and show some links how to do it? Thank you. Rafał -- If you want

Re: [symfony-users] Re: [SYMFONY 1.4] How to deploy on a subdirectory?

2010-08-02 Thread Gustavo Adrian
First of all, thanks for your reply! The problem of creating a symlink comes from the fact that I have a shared hosting. Is there a way of doing this on a shared hosting without ssh access?. Anyway, remember that my app is working 100%. My problem lies in the place where my app looks for the

Re: [symfony-users] How to add new type to schema?

2010-08-02 Thread Michał Piotrowski
Hi, 2010/8/3 Rafał inad...@gmail.com: Hi, I want to ask for help. I want to add new data type to my schema.yml. I have a field name IP (IP Address) in my application. My Postgresql database has 'inet' data type but I can't use it in my symfony. Could you help me and show some links how to

[symfony-users] Re: How to add new type to schema?

2010-08-02 Thread Rafał
On Aug 3, 12:14 am, Michał Piotrowski mkkp...@gmail.com wrote: Hi, 2010/8/3 Rafał inad...@gmail.com: Hi, I want to ask for help. I want to add new data type to my schema.yml. I have a field name IP (IP Address) in my application. My Postgresql database has 'inet' data type but I

Re: [symfony-users] Re: How to add new type to schema?

2010-08-02 Thread Michał Piotrowski
2010/8/3 Rafał inad...@gmail.com: On Aug 3, 12:14 am, Michał Piotrowski mkkp...@gmail.com wrote: Hi, 2010/8/3 Rafał inad...@gmail.com: Hi, I want to ask for help. I want to add new data type to my schema.yml. I have a field name IP (IP Address) in my application. My Postgresql

Re: [symfony-users] Re: How to add new type to schema?

2010-08-02 Thread Stéphane
AFAIK Doctrine manages the Inet type when using pgSql. http://www.symfony-project.org/doctrine/1_2/en/04-Schema-Files Search for INET I don't know if there is any inet type validator on the symfony-doctrine, but that's not that difficult to code as a validator, then modify generator form to add

Re: [symfony-users] Re: How to add new type to schema?

2010-08-02 Thread RaV
Thanks for your answer. Unfortunatelly I'm using Propel and can't change it into Doctrine. Rafał On Tue, Aug 3, 2010 at 12:38 AM, Stéphane stephane.er...@gmail.com wrote: AFAIK Doctrine manages the Inet type when using pgSql. http://www.symfony-project.org/doctrine/1_2/en/04-Schema-Files

Re: [symfony-users] Re: How to add new type to schema?

2010-08-02 Thread Michał Piotrowski
2010/8/3 RaV inad...@gmail.com: Thanks for your answer. Unfortunatelly I'm using Propel and can't change it into Doctrine. According to http://www.propelorm.org/wiki/Documentation/1.5/Schema you can use this type in Propel 1.5 (maybe in 1.4 too) Form validator can be done in sfValidatorRegex.

[symfony-users] Re: Real purpose of admin generator

2010-08-02 Thread Christian Fazzini
Yes but I think you are missing the point Richtermeister. All this extending makes it more difficult with the admin generator involved. Not difficult perse'. But just extra effort. If one can achieve the same thing using just plain sfForm, why do we need to go through admin generator to do the

Re: [symfony-users] Re: Real purpose of admin generator

2010-08-02 Thread Gustavo Adrian
I think it depends on your requirements. If you need a backend with simple CRUD modules.. then you could use the generator to create them in just a few minutes. Maybe then customize the templates and there you go. You have a fully CRUD module ready to go in notime. You could of course extend the

[symfony-users] propel:data-load failures.

2010-08-02 Thread Allen S. Rout
Hi there. a...@litho:~/src/edge-web$ php -v PHP 5.3.2-1ubuntu4.2 with Suhosin-Patch (cli) (built: May 13 2010 20:01:00) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies a...@litho:~/src/edge-web$ ./symfony -Version symfony version 1.4.5

Re: [symfony-users] Re: [SYMFONY 1.4] How to deploy on a subdirectory?

2010-08-02 Thread Anibal Sólon
You can make it with PHP! It's a hard, but functional, way: http://php.net/symlink On Mon, 2010-08-02 at 19:00 -0300, Gustavo Adrian wrote: First of all, thanks for your reply! The problem of creating a symlink comes from the fact that I have a shared hosting. Is there a way of doing

Re: [symfony-users] Re: [SYMFONY 1.4] How to deploy on a subdirectory?

2010-08-02 Thread Gustavo Adrian
Finally I did it from with a cron, but it didn't work. Is there a way to configure the .htaccess file to make the trick? Thanks On Mon, Aug 2, 2010 at 11:34 PM, Anibal Sólon anibalso...@gmail.com wrote: You can make it with PHP! It's a hard, but functional, way: http://php.net/symlink

Re: [symfony-users] Re: Trying to redirect a user to a login page with ajax: 401 unauthorized

2010-08-02 Thread Gustavo Adrian
Or you could just check for the code of the response in your jQuery script that handles the AJAX form. If it's 401, then you redirect the user to the login page. On Sun, Aug 1, 2010 at 10:31 AM, Tristan tristan.bessou...@gmail.comwrote: mmhhh i'm not sure in understand everything here ='(

[symfony-users] Re: Real purpose of admin generator

2010-08-02 Thread Richtermeister
Hey Christian, I guess I haven't really played with the non-admin-generator version of admin modules. However, I think Gustavo speaks to my point that so far the admin generator fits my requirements quite well. Specifically, for my work I build quite a lot of different apps and sites with

[symfony-users] Re: Real purpose of admin generator

2010-08-02 Thread pghoratiu
I see the admin generator more as a starting point, something you can build upon. We have in our application backend both simple and complicated admin modules. Simple - generated admin modules where only a couple of partials are used, no actions override. Complicated - rewritten editing + custom