[symfony-users] Re: Doctrine Complete Reference

2009-07-28 Thread seifolah Ghaderi
Thanks.I try it. On Tue, Jul 28, 2009 at 11:07 PM, Gábor Fási wrote: > > Most of the stuff is the same, like the rich text editor you mentioned > has nothing to do with propel or doctrine. > > On Tue, Jul 28, 2009 at 17:08, seifolah Ghaderi wrote: > > Thanks Fabian. > > I look some thing similar

[symfony-users] Re: Freeze Symfony 0.6.3

2009-07-28 Thread Sid Ferreira
You should upgrade it... Portuguese: Cara, a versão 0.6 tem mais de 2 anos já! Se quizer entra em contato comigo ;-) Sidney G B Ferreira Desenvolvedor Web On Tue, Jul 28, 2009 at 22:22, Felipe Luiz Pereira < pereira.univ...@gmail.com> wrote: > Hi, > > I'm developing a project with Symfony 0.6.

[symfony-users] Freeze Symfony 0.6.3

2009-07-28 Thread Felipe Luiz Pereira
Hi, I'm developing a project with Symfony 0.6.3. I need to freeze this project but this version doesn't support this feature. I tryed do it manualy: cp -R /usr/local/php5/lib/php/symfony /var/www/htdocs/project/lib cp -R /usr/local/php5/lib/php/data/symfony /var/www/htdocs/project/data cp /usr/l

[symfony-users] Re: filter=filter does not work in admin

2009-07-28 Thread despai -
Me autorespondo, lo que he hecho es lo siguiente: function buildCriteria() { $criteria = parent::buildCriteria(); $criteria->add(EdicionImagenPeer::EDICION_ID,$this->getRequestParameter("edicion")); return $criteria; } Me parece un poco engorroso de esta forma, estar sobrescribiendo

[symfony-users] Re: routing.data.cache

2009-07-28 Thread Frank Stelzer
I would not share the cache folder of a symfony application. The risk for dead locks is too big, like you have experienced it. I would do this: - define the cache folder to a local and not shared directory like / tmp/someproject/cache - purge all your caches when you have deployed something (o

[symfony-users] Re: Customize sfDoctrineGuardPlugin

2009-07-28 Thread jforet
up On 16 juil, 17:17, jforet wrote: > Thanks, > > But i have an error "Unknown attribute" > In symfony: 1.2.8\lib\plugins\sfDoctrinePlugin\lib\vendor\doctrine > \Doctrine\Configurable.php the function setAttribute does not support > this attribute. > > An idea ? Jonathan ? > > On 16 juil, 12:20,

Re: Yan: [symfony-users] Re: jquery - json problem

2009-07-28 Thread Wojtek
Hello, I found this in description of sfJqueryReloadedPlugin functions * To access the server response, use 'request.responseText', to * find out the HTTP status, use 'request.status'. * * If you are using JSON, you can access it via the 'data' parameter But I think there is a bug in sfJquer

[symfony-users] Re: Looking for a simple doctrine nested form example symfony 1.2 branch

2009-07-28 Thread Damien Lepage
Hi, I am looking for something like that too. I found the following posts which may help you: http://sandbox-ws.com/how-to-embed-forms-in-symfony-12-admin-generator http://sandbox-ws.com/how-to-embed-forms-in-s

[symfony-users] Re: Problem Symfony Ubuntu 8.04

2009-07-28 Thread Jacob Coby
looks like you need to change your RewriteBase in the .htaccess or change your DocumentRoot to be the /web dir instead of /. On Jul 28, 2009, at 1:45 PM, juaninf wrote: > > > sorry I can see the http://localhost/web/frontend_dev.php/, but I > cannot the css :( > On 28 jul, 11:54, mintao wro

[symfony-users] Re: Doctrine Complete Reference

2009-07-28 Thread Gábor Fási
Most of the stuff is the same, like the rich text editor you mentioned has nothing to do with propel or doctrine. On Tue, Jul 28, 2009 at 17:08, seifolah Ghaderi wrote: > Thanks Fabian. > I look some thing similar to it for Doctrine.(It's in Propel); > > > On Tue, Jul 28, 2009 at 5:48 PM, Fabian

[symfony-users] implementing one to many relation between User and Images at backend

2009-07-28 Thread dagger
Hi, I am trying to implement the edit page of User object which can have many images; How can i make a very user friendly edit image section in User edit form on backend? have no idea... please help, this is a big show stopper in my project. Requirement - User at sign-up uploads 4 images - now

[symfony-users] DoctrineForm (NestedSet => OptGroup)

2009-07-28 Thread mintao
Hi there, I have a doctrine nested set model and want to display the root (level=0) entries as "headlines" in a drop down (select-box in a form): EUROPE (root_id 1, level 0) -- germany (root_id 1, level 1) -- france (root_id 1, level 1) -- sweden (root_id 1, level 1) -

[symfony-users] Re: Problem Symfony Ubuntu 8.04

2009-07-28 Thread juaninf
sorry I can see the http://localhost/web/frontend_dev.php/, but I cannot the css :( On 28 jul, 11:54, mintao wrote: > Try: > chmod 777 /home/juan/webs/fid/cache > > Best > Florian > > On 28 Jul., 18:41, juaninf wrote: > > > Hi everyone > > > I am migrating my symfony project to Ubuntu 8.04 but

[symfony-users] Re: Problem Symfony Ubuntu 8.04

2009-07-28 Thread Jacob Coby
./symfony fix-perms you might have to run it as root. On Jul 28, 2009, at 1:35 PM, juaninf wrote: > > nothing > > On 28 jul, 11:54, mintao wrote: >> Try: >> chmod 777 /home/juan/webs/fid/cache >> >> Best >> Florian >> >> On 28 Jul., 18:41, juaninf wrote: >> >>> Hi everyone >> >>> I am migrati

[symfony-users] Re: Problem Symfony Ubuntu 8.04

2009-07-28 Thread juaninf
nothing On 28 jul, 11:54, mintao wrote: > Try: > chmod 777 /home/juan/webs/fid/cache > > Best > Florian > > On 28 Jul., 18:41, juaninf wrote: > > > Hi everyone > > > I am migrating my symfony project to Ubuntu 8.04 but when I want see > > to browser obtained the tree of directory where are all

[symfony-users] Re: Problem Symfony Ubuntu 8.04

2009-07-28 Thread mintao
Try: chmod 777 /home/juan/webs/fid/cache Best Florian On 28 Jul., 18:41, juaninf wrote: > Hi everyone > > I am migrating my symfony project to Ubuntu 8.04 but when I want see > to browser obtained the tree of directory where are all my project, > and when I entered to web folder I obtained the

[symfony-users] Problem Symfony Ubuntu 8.04

2009-07-28 Thread juaninf
Hi everyone I am migrating my symfony project to Ubuntu 8.04 but when I want see to browser obtained the tree of directory where are all my project, and when I entered to web folder I obtained the following error: Fatal error: Uncaught exception 'sfCacheException' with message 'Failed to make ca

[symfony-users] Re: routing.data.cache

2009-07-28 Thread CaffeineInc
do you use a plugin class for handling the session interface, or did you build your own? like sfMySQLiSessionStorage ?? On Jul 28, 5:19 pm, Eno wrote: > On Tue, 28 Jul 2009, CaffeineInc wrote: > > Yeah, we have to share the files over NFS because otherwise we'd have > > to share the sessions be

[symfony-users] Re: Primary key input hidden

2009-07-28 Thread François CONSTANT
Hi, First of al, check the html out to see if there is a hidden field, there must be ! I use Propel but it must be the same. Look to the generated form in lib/forms/base/Base*YourTableName*Form.class.php You should see that : 'id' => new sfWidgetFormInputHidden(), in setWidget. So, what U h

[symfony-users] Re: routing.data.cache

2009-07-28 Thread Eno
On Tue, 28 Jul 2009, CaffeineInc wrote: > Yeah, we have to share the files over NFS because otherwise we'd have > to share the sessions between the servers... and that won't work > because the database session plugin was broken for me - it just drops > all sessions, and won't cleanup after itself

[symfony-users] Re: Doctrine Complete Reference

2009-07-28 Thread seifolah Ghaderi
Thanks Fabian. I look some thing similar to it for Doctrine.(It's in Propel); On Tue, Jul 28, 2009 at 5:48 PM, Fabian Lange < fabian.la...@symfony-project.com> wrote: > > It looks like you are looking for this link: > http://www.symfony-project.org/book/1_2/14-Generators > > > > --~--~-

[symfony-users] Re: Dynamic edition of a yaml configuration file

2009-07-28 Thread Eno
On Tue, 28 Jul 2009, Ahmed wrote: > The goal is to give the user (admin) a way to edit some config value > in the app.yml file > ( like the number off line to display in a grid or the delay of job > expiration ) Sounds like something that should be in a database... -- --~--~-~--

[symfony-users] Re: Unable to open PDO connection [wrapped: SQLSTATE[28000] [1045] Access denied for user

2009-07-28 Thread AlexChalumeau
Actually, i had a bad dns. I changed the databases.yml to the following and it works fine : all: propel: class: sfPropelDatabase param: classname: PropelPDO dsn: 'mysql:dbname=webdpe_utf8_prod;host=172.16.15.50;port=10008;' username: symfony password :

[symfony-users] Re: Primary key input hidden

2009-07-28 Thread Javier Mendoza
what if the pk is a not an autoincrement ? fails on validation.. 2009/7/28 Eno > > On Tue, 28 Jul 2009, bouda25 wrote: > > > I have generated my first application with Symfony+Doctrine. But when > > I open a form there is no input zone corresponding to a primary key > > column of my tables. I am

[symfony-users] Re: Symfony Deployment

2009-07-28 Thread Eno
On Tue, 28 Jul 2009, Gre Taguran wrote: > The requested URL /mymodule/validate was not found on this server. > So we copied the link using firebug and put it in a different tab then I > modified the link from www.myserver.com/mymodule/validate to > www.myserver.com/index.php/mymodule/valida

[symfony-users] Re: routing.data.cache

2009-07-28 Thread CaffeineInc
Yeah, we have to share the files over NFS because otherwise we'd have to share the sessions between the servers... and that won't work because the database session plugin was broken for me - it just drops all sessions, and won't cleanup after itself... That bug however was a while ago but i've be

[symfony-users] Re: Primary key input hidden

2009-07-28 Thread Eno
On Tue, 28 Jul 2009, bouda25 wrote: > I have generated my first application with Symfony+Doctrine. But when > I open a form there is no input zone corresponding to a primary key > column of my tables. I am wondering if I have done anything wrong? Is > there any way to get these inputs displayed?

[symfony-users] Re: Notice: Undefined Variable: ret

2009-07-28 Thread Fabian Lange
Hi, Thats correct, I just wanted to crosscheck my assumption about his setup :) Fabian On Tue, Jul 28, 2009 at 4:28 PM, Hugo HAMON wrote: > > I looked at the code and the $ret variable is only declared once at > line 124 in the foreach() statement. You should declare it before the > foreach() sta

[symfony-users] Re: Notice: Undefined Variable: ret

2009-07-28 Thread Hugo HAMON
I looked at the code and the $ret variable is only declared once at line 124 in the foreach() statement. You should declare it before the foreach() statement to be sure that is always declared and returned at the end of the method. On 28 juil, 16:25, Fabian Lange wrote: > Hi, > Looks like a corn

[symfony-users] Re: Notice: Undefined Variable: ret

2009-07-28 Thread Fabian Lange
Hi, Looks like a corner case bug for me. Can you send me your sfConfig::get('sf_data_dir').'/sql/sqldb.map' Thanks Fabian On Tue, Jul 28, 2009 at 10:32 AM, MHK ONLY wrote: > Helloo All, > > when I do symfony propel:build-all > on Ubuntu 9 and windows xp both > > how this can be solved? > > > m..

[symfony-users] Re: Doctrine Complete Reference

2009-07-28 Thread Fabian Lange
It looks like you are looking for this link: http://www.symfony-project.org/book/1_2/14-Generators --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-u

[symfony-users] Re: Unable to open PDO connection [wrapped: SQLSTATE[28000] [1045] Access denied for user

2009-07-28 Thread andrea cecchetto
Hi I think there is an error with your username or/and password! 2009/7/28 AlexChalumeau > > Hi everyobdy, > > I'm trying to access the database from a symfony project that is on a > different machine. > > On the server, I moved the installation folder of lampp from "/opt" to > "/webdpe/users/w

[symfony-users] sfDoctrineApplyPlugin problem - installation failed

2009-07-28 Thread SatBoy78
Hi, I'm trying to install sfDoctrineApplyPlugin but installation fails I've tried using symfony plugin:install sfDoctrineApplyPlugin and I got this message: >> sfPearFrontendPlugin downloading sfDoctrineApplyPlugin-1.0.2.tgz ... >> sfPearFrontendPlugin Starting to download sfDoctrineApplyPlugin-

[symfony-users] Notice: Undefined Variable: ret

2009-07-28 Thread MHK ONLY
Helloo All, when I do *symfony propel:build-all* on Ubuntu 9 and windows xp both how this can be solved? * m...@mhk-ubuntu:~/public_html/sf_blog$ php symfony propel:build-all >> schemaconverting "/home/mhk/public_ht..._blog/config/schema.yml" to XML >> schemaputting /home/mhk/public_html

[symfony-users] Re: Symfony Deployment

2009-07-28 Thread Marc
Hello, It seems that you have a conflict with your apache configuration & your .htaccess file! Maybe mod_rewrite isn't enable on your production server... Have fun ;) Marc Le 28 juil. 09 à 10:49, Gre Taguran a écrit : > Hi Guys, > > We're trying to deploy our project now So far in our de

[symfony-users] Re: dynamic input fields

2009-07-28 Thread Dennis Hellmich
I'm not totally sure, if this works, but couldn't you just create the form in the action and add the fields you have configured, like this: public function executeMyDynamicFormAction() { $this->form = new ContactForm(); $dynamic_fields = GET_THEM_FROM_DB; foreach($dynamic_fields a

[symfony-users] Unable to open PDO connection [wrapped: SQLSTATE[28000] [1045] Access denied for user

2009-07-28 Thread AlexChalumeau
Hi everyobdy, I'm trying to access the database from a symfony project that is on a different machine. On the server, I moved the installation folder of lampp from "/opt" to "/webdpe/users/webdpe", and I have to use the port 10008 for MySQL (10009 is for Apache while 10006 is for SSL). I tried

[symfony-users] Re: String Variable to ClassName

2009-07-28 Thread Ludovic Meyer
Some tips, I have worked past week with variable classname. You can do : $function_name = 'getId'; $id = $element->{$function_name}($parameters) or as Davide said : $classname = 'ArticlePeer'; $element = call_user_func_array($classname.'::DoSelectOne', array ($criteria)); and if you want to g

[symfony-users] Doctrine Complete Reference

2009-07-28 Thread seifolah Ghaderi
Hi. I want to use some configuration in my generator.yml -- generator: class: sfDoctrineGenerator param: model_class: FarzaneNews theme: admin non_verbose_templates: true with_show: false singular: ~ plural:

[symfony-users] Re: Propel Unit Testing - Reset database before running sfPropelData()?

2009-07-28 Thread Stephen Melrose
Not a bad idea. I'll give it a shot and report back this afternoon. Cheers. On 28 July, 13:05, Gareth McCumskey wrote: > Instead of trying to run the symfony/propel command try running the mysql > command to insert that sql: > > mysql database_name < /path/to/project/data/saql/lib.model.schem

[symfony-users] Re: routing.data.cache

2009-07-28 Thread Eno
On Tue, 28 Jul 2009, CaffeineInc wrote: > Now both servers have separate caches (sfsqllite) on mem-cache, but > use the same configuration files, which i think seems to be causing > the lock problems. Two servers are sharing the exact same file or are they copies? How are you sharing, NFS? This

[symfony-users] Re: Propel Unit Testing - Reset database before running sfPropelData()?

2009-07-28 Thread Gareth McCumskey
Instead of trying to run the symfony/propel command try running the mysql command to insert that sql: mysql database_name < /path/to/project/data/saql/lib.model.schema.sql Perhaps that will help more :) - Original Message - From: "Stephen Melrose" To: "symfony users" Sent: Tuesday, J

[symfony-users] Timeout loading yaml files > 1MB

2009-07-28 Thread danielwinter
Has anyone had any success loading yaml files > 1MB? I have a script that loads yaml files using sfYaml and the load() method takes several minutes to load files > 1MB. Is there a faster way to handle large files? Anyone? :) --~--~-~--~~~---~--~~ You received this m

[symfony-users] Re: Symfony Deployment

2009-07-28 Thread Gareth McCumskey
You also need to make sure that the Apache virtual host settings also have AllowOverride settings. For example: AllowOverride All Allow from All AllowOverride All Allow from All This will allow the .htaccess file to act

[symfony-users] Re: Propel Unit Testing - Reset database before running sfPropelData()?

2009-07-28 Thread Stephen Melrose
Balls Uncaught exception 'PropelException' with message 'Cannot insert a value for auto-increment primary key (badword_list_group.ID)' :/ On 28 July, 11:29, Gábor Fási wrote: > Did not try it, but should work: add those data (including their ids) > to your fixtures, they should get inserted as

[symfony-users] Re: Propel Unit Testing - Reset database before running sfPropelData()?

2009-07-28 Thread Gábor Fási
Did not try it, but should work: add those data (including their ids) to your fixtures, they should get inserted as long as there's no key conflict, and you can be sure what the ids are. On Tue, Jul 28, 2009 at 12:14, Stephen Melrose wrote: > > Hey, > > I am just setting up, or at least trying to

[symfony-users] Propel Unit Testing - Reset database before running sfPropelData()?

2009-07-28 Thread Stephen Melrose
Hey, I am just setting up, or at least trying to set up, some Propel unit tests for an application we're developing. I've read the documentation online and I see how this is done and how you load test data, however I have a problem in that some of our database tables contain static data purely f

[symfony-users] Primary key input hidden

2009-07-28 Thread bouda25
Hi, I have generated my first application with Symfony+Doctrine. But when I open a form there is no input zone corresponding to a primary key column of my tables. I am wondering if I have done anything wrong? Is there any way to get these inputs displayed? I have searched the forum but didn't get

[symfony-users] Re: Symfony Deployment

2009-07-28 Thread Sid Bachtiar
Seems like you don't have mod rewrite enabled On Tue, Jul 28, 2009 at 8:49 PM, Gre Taguran wrote: > Hi Guys, > > We're trying to deploy our project now So far in our development it's > been QA'd and everything is ok, but I'm having a problem on deployment. > We've tried this... > modified con

[symfony-users] routing.data.cache

2009-07-28 Thread CaffeineInc
I've found that now after load balancing a symfony 1.1 application (I know it's outdated, but I'm not sure if this is a bug with this or the framework) I've run into lock problems which generate 500's because of a sfCacheException : cache/frontend/prod/config/routing/symfony.routing.data.cache

[symfony-users] Symfony Deployment

2009-07-28 Thread Gre Taguran
Title: GRE B Hi Guys, We're trying to deploy our project now So far in our development it's been QA'd and everything is ok, but I'm having a problem on deployment. We've tried this... modified config/properties.ini basing on our production server host and etc... php symfony project:deploy

[symfony-users] Re: Dynamic edition of a yaml configuration file

2009-07-28 Thread Gábor Fási
This is not what the yml files were made for. If you want such a function, you'll need to store the dynamic values somewhere else, like the DB. On Tue, Jul 28, 2009 at 10:07, Ahmed wrote: > > Hi, > The goal is to give the user (admin) a way to edit some config value > in the app.yml file > ( like

[symfony-users] Re: Dynamic edition of a yaml configuration file

2009-07-28 Thread Ahmed
Hi, The goal is to give the user (admin) a way to edit some config value in the app.yml file ( like the number off line to display in a grid or the delay of job expiration ) Thanks On 27 juil, 18:00, Eno wrote: > On Mon, 27 Jul 2009, Ahmed wrote: > > Hi all, i need to change a config value in t