Re: [symfony-users] Re: Difference between sfFormDoctrine methods: doSave(), save(), updateObject()

2010-04-16 Thread Alan Bem
Every do*() method is kind of hook which you can overwrite without much impact on other parts form framework. Of course you have to know what are you doing, but this is safest way to extend/add your own logic. Read this.

[symfony-users] Re: Difference between sfFormDoctrine methods: doSave(), save(), updateObject()

2010-04-16 Thread rooster (Russ)
A quick check of the source code will tell you all you need to know... save() is a wrapper function, that runs doSave() inside a transaction doSave() first calls updateObject() then calls save() on the object itself. updateObject() is a method called just before the object is actually saved, it'

Re: [symfony-users] schema query problem-- 2 tables only generated from mysql- please help

2010-04-16 Thread Andro Fumero
Thank you so much. i don't know that symfony is this sensitive. From: Tom Haskins-Vaughan To: symfony-users@googlegroups.com Sent: Fri, April 16, 2010 2:57:41 PM Subject: Re: [symfony-users] schema query problem-- 2 tables only generated from mysql- please h

[symfony-users] Re: organizing partials in folders

2010-04-16 Thread Joshua
god i freaken hate these group nonsense. why can't symfony guys spring for a real forum? mistake in directory, should be project_root/apps/frontend/modules/some_module/templates/folder/ _headline_news.php On Apr 16, 5:53 pm, Joshua wrote: > I'm doing this from a module. I would want the partial

[symfony-users] Re: organizing partials in folders

2010-04-16 Thread Joshua
I'm doing this from a module. I would want the partial directory to be something like project_root/apps/frontend/modules/templates/folder/_headline_news.php On Apr 16, 5:51 pm, Joshua wrote: > include_partial("headline_news"); > > How can I do this with partial _headline_news.php inside a folder

[symfony-users] organizing partials in folders

2010-04-16 Thread Joshua
include_partial("headline_news"); How can I do this with partial _headline_news.php inside a folder within templates? If I try include_partial("folder/headline_news"); The template "_headline_news.php" does not exist or is unreadable in "". -- If you want to report a vulnerability issue on symf

Re: [symfony-users] Re: symfony 1.4 install

2010-04-16 Thread Angel Robert Marquez
hey gabriel, netstat -tlnp Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp0 0 0.0.0.0:39944 0.0.0.0:* LISTEN 1273/rpc.statd tcp0 0 0.0.0.0:33060.

[symfony-users] Re: Add symfony to svn project

2010-04-16 Thread pghoratiu
You need to use svn:externals Subversion property . Initialize your repository with the following directory: lib/vendor than after you have the project checked out from SVN: cd lib/vendor svn propedit svn:externals . Here you have to add the path to the symfony repository you want to use and the na

[symfony-users] Re: symfony 1.4 install

2010-04-16 Thread pghoratiu
On Apr 16, 7:29 pm, Angel Robert Marquez wrote: > Hi Gabor, > Yes, I did check it and moved things around and was able to perfrom the > install. BUT now I have a new issue. I set up the virtual host in the > httpd.conf file and after restarting mysql and checking the  url(s) > > *htttpd.conf file

[symfony-users] Re: does setflash() work with redirect() in Symfony 1.0?

2010-04-16 Thread pghoratiu
It should work fine, how do you display the flash value in your template? You can check also in the web debug bar the user data that is saved for your current session. gabriel On Apr 16, 7:48 pm, jake barnes wrote: > In Symfony 1.0, I can forward to another action/page, and my setFlash > mess

[symfony-users] primary key with 2 values

2010-04-16 Thread Vitor
I´m trying to make a project that needs a table with a PRIMARY KEY with 2 values INT. That values are also FOREIGN KEY.I did the table at MySQL, and the project at symfony, and everything is fine. But, when I insert a value, selecting by the Combo with the values (because its foreign key), thats a

Re: [symfony-users] schema query problem-- 2 tables only generated from mysql- please help

2010-04-16 Thread Tom Haskins-Vaughan
Try: ... ->leftJoin('p.User u') ... Tom On Fri, Apr 16, 2010 at 2:46 PM, Andro Fumero wrote: > Schema.yml Im just new to Symfony. please help.--- wasted whole day > fixing this. > - > Profi

[symfony-users] schema query problem-- 2 tables only generated from mysql- please help

2010-04-16 Thread Andro Fumero
Schema.yml Im just new to Symfony. please help.--- wasted whole day fixing this. - Profile: connection: doctrine tableName: profile columns: id: type: integer(4) fixed: fal

Re: [symfony-users] Re: Question about routing

2010-04-16 Thread Tom Haskins-Vaughan
Did you enable the plugin in the Project config? On Fri, Apr 16, 2010 at 11:52 AM, Javier Garcia wrote: > I don't know if it's related, but i'm gettin also this error after > clicking on 'Register' button: > > Fatal error: Class 'sfGuardExtraMail' not found in /opt/lampp/htdocs/ > rs/apps/fronten

[symfony-users] Query alias problems with Doctrine

2010-04-16 Thread ahugas
Hi, I'm using Symfony 1.4 with Doctrine. I have a table named ExchServer, and I defined this functions to get only the registers that has de active field set. class ExchServerTable extends PluginExchServerTable { public function getActive( Doctrine_Query $q = null ) { return $this->addAc

[symfony-users] Add symfony to svn project

2010-04-16 Thread Pau Peris
Hi, i'm trying to integrate symfony into a personal svn project. I would like to do something like svn import http://svn.symfony-project.com/branches/1.4 myproject/lib/vendor/symfony so i could be able to update symfony and also to commit the project to my private svn. The goal is to integrate sym

[symfony-users] does setflash() work with redirect() in Symfony 1.0?

2010-04-16 Thread jake barnes
In Symfony 1.0, I can forward to another action/page, and my setFlash messages appear correctly. However, if I use redirect, then the setFlash message does not appear: $this->setFlash('notice', 'That course is no longer available.'); $this->redirect('wss/courseIndex'); Can anyone tell

Re: [symfony-users] symfony 1.4 install

2010-04-16 Thread Angel Robert Marquez
Hi Gabor, Yes, I did check it and moved things around and was able to perfrom the install. BUT now I have a new issue. I set up the virtual host in the httpd.conf file and after restarting mysql and checking the url(s) *htttpd.conf file edited* /etc/httpd/conf/httpd.conf # Be sure to only have th

[symfony-users] Re: Question about routing

2010-04-16 Thread Javier Garcia
I don't know if it's related, but i'm gettin also this error after clicking on 'Register' button: Fatal error: Class 'sfGuardExtraMail' not found in /opt/lampp/htdocs/ rs/apps/frontend/modules/sfGuardRegister/actions/actions.class.php But that class is inside plugins/sfDoctrineGuardExtraPlugin/li

[symfony-users] Re: Handle form error in the action

2010-04-16 Thread WallTearer
Oh, missed your message. Thank you very much, I'll give a try for this approach. Thanks! -- 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 Google Groups "symfony users" group.

[symfony-users] Difference between sfFormDoctrine methods: doSave(), save(), updateObject()

2010-04-16 Thread WallTearer
Hello group. I'm reading symfony docs, but can't get what is the difference between sfFormDoctrine methods: doSave() save() updateObject() What is the order of their execution? Thanks a lot -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-projec

Re: [symfony-users]SF2.0 - SetEnv password

2010-04-16 Thread Jérémie
Fabien Potencier wrote: On 4/16/10 1:12 PM, Jérémie wrote: Hi there, I just watched a video of Fabien doing his presentation of SF2.0. He explains we can use SetEnv SYMFONY_DOCTRINE_DBAL_PASSWORD "mypwd" to give the application the database pwd. My question is: what do I have to write in the con

Re: [symfony-users]SF2.0 - SetEnv password

2010-04-16 Thread Fabien Potencier
On 4/16/10 1:12 PM, Jérémie wrote: Hi there, I just watched a video of Fabien doing his presentation of SF2.0. He explains we can use SetEnv SYMFONY_DOCTRINE_DBAL_PASSWORD "mypwd" to give the application the database pwd. My question is: what do I have to write in the config.yml file? doctrine.d

[symfony-users] Re: sort with paging

2010-04-16 Thread kim
now you mention it this should work. I'll try it out thnx a lot :) On 16 apr, 13:43, Gareth McCumskey wrote: > Store the table parameters as a session variable with symfony's > $this->getUser()->setAttribute() methods that can be called everytime > you need to rebuild the table. We had to do this

[symfony-users] IE shows errors related to Prototype in Symfony 1.2.12

2010-04-16 Thread Peter Peltonen
I am maintaining an application using Symfony 1.2.12. I noticed that on one page IE shows an error message related to Prototype: Object required prototype.js line 3936 character 5 Both IE6 and IE8 complain about the page. How to resolve this? Would updating Prototype help (can I just replace

[symfony-users] Question about routing

2010-04-16 Thread Javier Garcia
Hi, i've installed sfDoctrineGuardExtraPlugin. I don't know what i touched exactly but now when i ask for sfGuardRegister/register this is showed: The route "sf_guard_register" does not exist. To debug my problem I have installed sfDGEP in another project, and i found out that if i remove

[symfony-users] Re: Problem with generating forms/classes from YAML file in plugin

2010-04-16 Thread Jo Carter
The plugin class wasn't declared as abstract. Problem solved On Apr 16, 9:37 am, Jo Carter wrote: > This happens with both Symfony 1.1 (old site), and Symfony 1.4 > (upgrade). > > With Symfony 1.4 the problem is worse, because the generated Base > class extends the fake plugin. > > On Apr 12, 3:

[symfony-users] Re: call javascript from actionsclass

2010-04-16 Thread kim
no because there is code needed from the javascript (because i work with AJAX) so i can only do this by calling that function in my javascript but i don't know how to do this On 16 apr, 13:52, Tom Haskins-Vaughan wrote: > Can you not just output the options with PHP as HTML in the first page ca

Re: [symfony-users] symfony 1.4 install

2010-04-16 Thread Gábor Fási
It means the file is not there. Did you check it? On Fri, Apr 16, 2010 at 04:33, Angel wrote: > When I run this command from the sfproject directory: > php lib/vendor/symfony/data/bin/symfony generate:project PROJECT_NAME > > I receive this error: > Could not open input file: lib/vendor/symfony/d

[symfony-users] symfony 1.4 install

2010-04-16 Thread Angel
When I run this command from the sfproject directory: php lib/vendor/symfony/data/bin/symfony generate:project PROJECT_NAME I receive this error: Could not open input file: lib/vendor/symfony/data/bin/symfony I performed this checkout: svn checkout http://svn.symfony-project.com/branches/1.4/ OS

Re: [symfony-users] call javascript from actionsclass

2010-04-16 Thread Tom Haskins-Vaughan
Can you not just output the options with PHP as HTML in the first page call? On Fri, Apr 16, 2010 at 5:29 AM, kim wrote: > hello > > this should be a simple question but i really don't find the solution > on the internet > > I want to start a javascript function from my actions class. > in my tem

Re: [symfony-users] Re: sort with paging

2010-04-16 Thread Gareth McCumskey
Store the table parameters as a session variable with symfony's $this->getUser()->setAttribute() methods that can be called everytime you need to rebuild the table. We had to do this on our rather complex data table that has filtering by column values, sorting by column and pagination. It works rea

[symfony-users] Re: sort with paging

2010-04-16 Thread kim
normaly that would be a good solution but in my case it isn't because you also have a search for this and the parameters are in a post but this is not in the same form and can't be in the same form so this will not work. On 16 apr, 12:09, Gareth McCumskey wrote: > I did mention this before on a

[symfony-users]SF2.0 - SetEnv password

2010-04-16 Thread Jérémie
Hi there, I just watched a video of Fabien doing his presentation of SF2.0. He explains we can use SetEnv SYMFONY_DOCTRINE_DBAL_PASSWORD "mypwd" to give the application the database pwd. My question is: what do I have to write in the config.yml file? doctrine.dbal: driver: PDOMySql dbname: myd

Re: [symfony-users] Re: sort with paging

2010-04-16 Thread Gareth McCumskey
I did mention this before on another question like this. Just create a link on the header to an action that then amends the criteria with an order by for the query each time and rerun the query with that new order by. On Fri, Apr 16, 2010 at 12:26 PM, kim wrote: > oh yeah maybe i should also say

[symfony-users] Re: sort with paging

2010-04-16 Thread kim
oh yeah maybe i should also say it must be sorted by clicking the headers not just directly sort (cause this is just adding a order by and this is already done but i want them to be able by clicking the header it gets sorted on that table just like the standard admin does) On 16 apr, 11:21, kim w

[symfony-users] Re: sort with paging

2010-04-16 Thread kim
thanks for you response i'm already using the sfDoctrinePager but i don't know how to use the addSortOrder? how do you use this? thanks :) greetings On 16 apr, 11:11, Alexandru-Emil Lupu wrote: > use the sfPager, sfPropelPager or sfDoctrinePager. It has a option > like : addSortOrder or, you can

Re: [symfony-users] sort with paging

2010-04-16 Thread Alexandru-Emil Lupu
use the sfPager, sfPropelPager or sfDoctrinePager. It has a option like : addSortOrder or, you can use a custom Query to solve the problem. On Fri, Apr 16, 2010 at 12:34 PM, kim wrote: > hi, > > I made a program with a table that you can search on and use > pagination > but now i want to sort it

[symfony-users] sort with paging

2010-04-16 Thread kim
hi, I made a program with a table that you can search on and use pagination but now i want to sort it (like in the admin control but when i look at this code i can't finde the templates to see how it is done in there) and i couldn't use the admin because then i wouldn't have the liberty to change

[symfony-users] call javascript from actionsclass

2010-04-16 Thread kim
hello this should be a simple question but i really don't find the solution on the internet I want to start a javascript function from my actions class. in my templates i can do this like onChange="JavaScript:retrieve(this.options[this.selectedIndex].value);" but i want to do the same function i

[symfony-users] Re: Problem with generating forms/classes from YAML file in plugin

2010-04-16 Thread Jo Carter
This happens with both Symfony 1.1 (old site), and Symfony 1.4 (upgrade). With Symfony 1.4 the problem is worse, because the generated Base class extends the fake plugin. On Apr 12, 3:27 pm, Jo Carter wrote: > I have a bizarre problem with a YAML file creating two copies of a > Plugin class (one

[symfony-users] Re: cache invalidation on server cluster

2010-04-16 Thread pghoratiu
Hi @alex - we need to cache partials and components mostly, so we will probably override the caching methodology used by symfony, memcache I don't think it's yet an option for us. Will investigate it how to use it for caching pieces of templates, we are currently using it to store shared counters