[symfony-users] Re: a blank white screen

2009-02-27 Thread Eno
On Fri, 27 Feb 2009, Lawrence Krubner wrote: > So here is the moral of this story: when facing a blank white screen, > chmod the cache folder to 777. At least you can remove that as a > potential problem. Or look at your logs. -- --~--~-~--~~~---~--~~ You re

[symfony-users] Re: Multiple foreign keys for the same table

2009-02-27 Thread Dheeraj Kumar Aggarwal
Hi radu, replace this line $c->addAlias("T3_2", UsersPeer::TABLE_NAME); with $c->addAlias("U2", UsersPeer::TABLE_NAME); and replace this line $c->addJoin(ArticlePeer::CREATEDBY_ID, UsersPeer::alias("U2", UsersPeer::ID)); with $c->addJoin(ArticlePeer::MODIFIEDBY_ID, UsersPeer::alias("U2", UsersP

[symfony-users] Re: Multiple foreign keys for the same table

2009-02-27 Thread Dheeraj Kumar Aggarwal
hi radu, i think this should work for you. $c = new Criteria(); // Create Aliasses $c->addAlias("U1", UsersPeer::TABLE_NAME); $c->addAlias("T3_2", UsersPeer::TABLE_NAME); // Create Joins $c->addJoin(ArticlePeer::CREATEDBY_ID, UsersPeer::alias("U1", UsersPeer::ID)); $c->addJoin(ArticleP

[symfony-users] Re: Many to many and forms questions

2009-02-27 Thread Dheeraj Kumar Aggarwal
HI Chris, r u using Propel ? ok . if u r using propel then what u have to do is... u r having the job_id in $job_id $c = new Criteria(); $c->add(JobComponentPeer::JOB_ID,$job_id); $c->add(JobComponentPeer::COMPONENT_ID,ComponentPeer::ID); $components = ComponentPeer::doSelect($c); now all

[symfony-users] Re: a blank white screen

2009-02-27 Thread Sid Bachtiar
> "Exception in sfCache". So? What should I do with that info? It took > me a while to figure out what the real problem was - a permissions > conflict. So, you should get stack trace rather than just short error like that! Your user should not see any error (which is what sfErrorHandlerPlugin doe

[symfony-users] Re: Widget Error: sfForm->offsetGet is throwing an error getting my form field named "title". Why?

2009-02-27 Thread Lawrence Krubner
By making every mistake that it is possible to make, I am slowly figuring out how Symfony works. I did eventually find the solution to this problem. I had this in BaseNewNewsForm.class.php: $this->setWidgets(array( 'id' => new sfWidgetFormInputHidden(), 'title'

[symfony-users] Re: a blank white screen

2009-02-27 Thread Lawrence Krubner
On Feb 27, 8:57 pm, Sid Bachtiar wrote: > I think log4php is not really needed as symfony has built in logging > capability. But sending error to an email address is definitely > missing from Symfony. > > Any website owner would want to know if there's an error on their > website because it wou

[symfony-users] Re: how do I enable more than one plugin?

2009-02-27 Thread Lawrence Krubner
On Feb 27, 1:15 pm, Eno wrote: > On Thu, 26 Feb 2009, Lawrence Krubner wrote: > > What could it be? Where should I start to look? > > Look at your symfony or Apache logs. > Thanks. The error messages are somewhat cryptic. There was a mention of an exception being triggered in sfCache. I event

[symfony-users] Re: a blank white screen

2009-02-27 Thread Sid Bachtiar
I think log4php is not really needed as symfony has built in logging capability. But sending error to an email address is definitely missing from Symfony. Any website owner would want to know if there's an error on their website because it would affect their users/visitors. On Sat, Feb 28, 2009

[symfony-users] Re: a blank white screen

2009-02-27 Thread Lee Bolding
I started thinking about that - look in SVN, and you'll see I started adding Log4PHP ;) I never got round to finishing it though. Ideally, Log4PHP wouldn't be integrated in this plugin anyway - it would be another plugin to dynamically replace Symfony's built in logging classes... a job for

[symfony-users] Zend search indexing with many-to-many relation

2009-02-27 Thread Leenya
Hi I am attaching the lucene update to a doSave for a form the form contains a list box that is presenting a many to many relation.. table1_table2_list I want to index the values selected in this list box.. but I don't seem to be reaching anywhere.. especialy that I am also using i18n .. so t

[symfony-users] Re: How to access a custom added column in propel?

2009-02-27 Thread Joshua
On Feb 27, 6:51 pm, Eno wrote: > On Fri, 27 Feb 2009, Joshua wrote: > >    $c = new Criteria(); > >    $c->addAsColumn('distance', '((ACOS(SIN('.$zipcode->getLat().' * PI > > () / 180) * SIN(`zipcodes`.LAT * PI() / 180) + COS('.$zipcode->getLat > > ().' * PI() / 180) * COS(`zipcodes`.LAT * PI()

[symfony-users] Re: a blank white screen

2009-02-27 Thread Sid Bachtiar
Hey, that's a nice plugin! One very very useful feature that could be added is send stack trace error to an email address, e.g.: when there's error (any error), send email to the developer/admin. On Sat, Feb 28, 2009 at 1:28 PM, Lee Bolding wrote: > > Or, install sfErrorHandlerPlugin > > http:/

[symfony-users] Re: a blank white screen

2009-02-27 Thread Lee Bolding
Or, install sfErrorHandlerPlugin http://www.symfony-project.org/plugins/sfErrorHandlerPlugin :) On 28 Feb 2009, at 00:21, Lawrence Krubner wrote: > > What a mess. > > I post this as a warning for others. > > I did something that caused Symfony to crash. It might have been a > change to a yaml

[symfony-users] a blank white screen

2009-02-27 Thread Lawrence Krubner
What a mess. I post this as a warning for others. I did something that caused Symfony to crash. It might have been a change to a yaml file. I ended up facing a pure white screen. No error messages. I was looking at the development controller. Nothing. I got an earlier version of my yaml file ou

[symfony-users] Re: If I get a error when rebuilding the model, does it mean that I wrecked schema.yml?

2009-02-27 Thread Lawrence Krubner
On Feb 27, 4:55 am, Gareth McCumskey wrote: > I know certain DB engines do not employ boolean types so perhaps that was > causing the problem. > Why wouldn't Propel say so, in plain English? The error message doesn't really teach me much about the problem. These error messages are useless. --

[symfony-users] Re: FusionCharts generate errors of headers already sent

2009-02-27 Thread Eno
On Fri, 27 Feb 2009, Tomasz Ignatiuk wrote: > I think this is connected with this that FusionCharts change data for > xml. A tried to set content to text/xml but it didn't change anything. > Any guess what could it be? Of course there are no any blank spaces or > something before http://groups.go

[symfony-users] FusionCharts generate errors of headers already sent

2009-02-27 Thread Tomasz Ignatiuk
Hi guys. I use Fusion Charts (not a plugin) with PHP Class witch I put in lib dir. On my local Wamp Server everything is ok but on hosting server there is an warning: Warning: Cannot modify header information - headers already sent by (output started at /home/.../lib/FusionCharts_Gen.php:1) in /h

[symfony-users] Re: How to access a custom added column in propel?

2009-02-27 Thread Eno
On Fri, 27 Feb 2009, Joshua wrote: > $c = new Criteria(); > $c->addAsColumn('distance', '((ACOS(SIN('.$zipcode->getLat().' * PI > () / 180) * SIN(`zipcodes`.LAT * PI() / 180) + COS('.$zipcode->getLat > ().' * PI() / 180) * COS(`zipcodes`.LAT * PI() / 180) * COS(('. > $zipcode->getLon(

[symfony-users] How to access a custom added column in propel?

2009-02-27 Thread Joshua
$c = new Criteria(); $c->addAsColumn('distance', '((ACOS(SIN('.$zipcode->getLat().' * PI () / 180) * SIN(`zipcodes`.LAT * PI() / 180) + COS('.$zipcode->getLat ().' * PI() / 180) * COS(`zipcodes`.LAT * PI() / 180) * COS(('. $zipcode->getLon().' - `zipcodes`.LON) * PI() / 180)) * 18

[symfony-users] Re: Creating DB tables for use outside schema

2009-02-27 Thread Joshua
I mean doing the calculations within the SQL queries. I've got this far. $c->addAsColumn('distance', '((ACOS(SIN('.$zipcode->getLat().' * PI () / 180) * SIN(`walking_zipcodes`.LAT * PI() / 180) + COS('.$zipcode- >getLat().' * PI() / 180) * COS(`walking_zipcodes`.LAT * PI() / 180) * COS(('

[symfony-users] Re: Creating DB tables for use outside schema

2009-02-27 Thread Lee Bolding
I think he means using the MySQL geospacial functionality. TBH, I'm not entirely sure how you'd do this - interested to hear responses. I guess you'd use the generated models only for creating, updating and deleting - for reading you'd probably want to use raw SQL. On 27 Feb 2009, at 21:28

[symfony-users] Re: Creating DB tables for use outside schema

2009-02-27 Thread Eno
On Fri, 27 Feb 2009, Joshua wrote: > I guess I could, but I think its more efficient to do the distance > calculations directly in SQL so I wouldn't need the classes in that > case, just the table data. 'Directly in SQL' meaning what exactly? Straight PHP MySQL functions? If you're using Propel

[symfony-users] Re: removing controller name from urls

2009-02-27 Thread Eno
On Fri, 27 Feb 2009, slinky66 wrote: > I already went into settings.yml and turned no_script_name to "ON" and > cleared the cache. I keep getting a 404 > when I try to access without index.php in the URL Either your .htacces file is missing or not correct or Apache doesn't have mod-rewrite inst

[symfony-users] 'Undefined variable: form' error remains until renaming action

2009-02-27 Thread latourfl
I am rewriting existing pages with forms originally created under Symfony 1.0.x so they can work under Symfony 1.2.4 without compat_10 mode activated (it is currently enabled). Once rewriting is complete, I always get the following error after filling the form and submitting it: Undefined variabl

[symfony-users] Re: Creating DB tables for use outside schema

2009-02-27 Thread Joshua
On Feb 27, 3:07 pm, Eno wrote: > On Fri, 27 Feb 2009, Joshua wrote: > > I don't necessarily need this table defined in schema.yml because it > > will just be used by propel as a lookup for the long/lat values. I > > suppose I still have to define it in schema.yml and ignore the created > > clas

[symfony-users] Re: removing controller name from urls

2009-02-27 Thread michael.pie...@googlemail.com
You should really read the docs: http://www.symfony-project.org/book/1_2/09-Links-and-the-Routing-System#chapter_09_url_rewriting Look for "Rewriting Rules for Apache". Michael On 27 Feb., 21:25, slinky66 wrote: > Where do you configure symfony such that "index.php" is not required > in the

[symfony-users] removing controller name from urls

2009-02-27 Thread slinky66
Where do you configure symfony such that "index.php" is not required in the URLs? I want to go from this: http://www.mysite.com/index.php/module/action To this: http://www.mysite.com/module/action I already went into settings.yml and turned no_script_name to "ON" and cleared the cache. I keep g

[symfony-users] Re: Creating DB tables for use outside schema

2009-02-27 Thread Eno
On Fri, 27 Feb 2009, Joshua wrote: > I don't necessarily need this table defined in schema.yml because it > will just be used by propel as a lookup for the long/lat values. I > suppose I still have to define it in schema.yml and ignore the created > classes or what would be the proper way to addr

[symfony-users] Re: how do I enable more than one plugin?

2009-02-27 Thread Alexandru-Emil Lupu
Edit your "appname"_dev.php and add on the first line after " wrote: > > On Thu, 26 Feb 2009, Lawrence Krubner wrote: > > > What could it be? Where should I start to look? > > Look at your symfony or Apache logs. > > > > -- > > > > > > --~--~-~--~~~---~--~~ You rec

[symfony-users] Creating DB tables for use outside schema

2009-02-27 Thread Joshua
I have a table that stores zip codes with their corresponding longitude and latitudes to use in calculations of distance between two points. I don't necessarily need this table defined in schema.yml because it will just be used by propel as a lookup for the long/lat values. I suppose I still have

[symfony-users] Re: how do I enable more than one plugin?

2009-02-27 Thread Eno
On Thu, 26 Feb 2009, Lawrence Krubner wrote: > What could it be? Where should I start to look? Look at your symfony or Apache logs. -- --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To

[symfony-users] Re: sfWidgetFormTextareaTinyMCE() not working

2009-02-27 Thread Crafty_Shadow
I will assume that this question was directed to me. And no, the library itself is not included, the insanely-big portion of the code is dedicated to producing XHTML compliant output. On Feb 26, 9:00 pm, Jan Schlosser wrote: > Hey, > > just out of curiosity: Did you include the TinyMCE Javascrip

[symfony-users] Multiple foreign keys for the same table

2009-02-27 Thread korfos
Hello all, I'm new to symfony, so be gentle :) I have to tables: users {id, name} article{id, createdby_id, modifiedby_id} createdby_id and modifiedby_id are foreign keys to users table When i do: $c = new Criteria(); $c->addJoin(ArticlePeer::CREATEDBY_ID, UsersPeer::ID); $c->addJoin(ArticlePee

[symfony-users] Re: sfWidgetFormTextareaTinyMCE() not working

2009-02-27 Thread Jan Schlosser
Hey, just out of curiosity: Did you include the TinyMCE Javascript (the library) into the HTML source? Regards, Jan Am 26.02.2009 um 15:18 schrieb we-create: > when i try to call this function with: > > 'inhoudnl' => new sfWidgetFormTextareaTinyMCE( > array( >'width'=>550, >

[symfony-users] [sfDoctrineNestedSetManagerPlugin] Installation problem

2009-02-27 Thread Denis Fingonnet
Hi, I'm having a problem installing this plugin with symfony 1.2.5DEV : $ ./symfony plugin:install sfDoctrineNestedSetManagerPlugin >> plugininstalling plugin "sfDoctrineNestedSetManagerPlugin" >> sfPearFrontendPlugin downloading sfDoctrineNestedSetManagerPlugin-1.2.1.tgz ... >> sfPearFronten

[symfony-users] sf-1.1: Problem with embedding form which is generated dynamically by given request parameters

2009-02-27 Thread Fabian Spillner
I did generate my form dynamically by given request parameter (this is done in the bind() method because it provides the request parameters as parameter) and could be generated successfully on the template. But the problem is occurred if I embed this form in my another form and generate it on th

[symfony-users] Re: sfWidgetFormTextareaTinyMCE() not working

2009-02-27 Thread Denis Fingonnet
works like a charm ! On Fri, Feb 27, 2009 at 4:23 PM, Crafty_Shadow wrote: > > For i18n you should edit the representative form class; > that is to say, in the main form, let's call it > StaticPageForm.class.php you need: > > $this->embendI18n(array('en','fr')); //embends English and French > //

[symfony-users] Re: sfWidgetFormTextareaTinyMCE() not working

2009-02-27 Thread Crafty_Shadow
For i18n you should edit the representative form class; that is to say, in the main form, let's call it StaticPageForm.class.php you need: $this->embendI18n(array('en','fr')); //embends English and French //set labels so it's clearer $this->widgetSchema->setLabel('en', 'English'); $this->widgetSc

[symfony-users] Re: sfWidgetFormTextareaTinyMCE() not working

2009-02-27 Thread Denis Fingonnet
Does the tinyMCE widget used for a I18n field ? Because I managed to make the widget work without changing anything. I was doing this for a translated field called texte : $this->widgetSchema['texte'] = new sfWidgetFormTextareaTinyMCE(array( 'width' => 550, 'height' =>

[symfony-users] Re: Disable JS events until page fully loads

2009-02-27 Thread Denis Fingonnet
If I were you I'd use the jQuery Library (http://www.jquery.com). You'd have to learn the jQuery syntax and if you want to add events (onclicks, etc...), do something like this : $(document).ready(function(){ $('selector').onClick(function(){ // Whatever you want }); }); On Fri,

[symfony-users] Re: Disable JS events until page fully loads

2009-02-27 Thread Andrei Dziahel
You should bind (no onclicks&onmouseovers!) event handlers inside handler of onDOMReady (or documentReady) event. But this thread is offtopic. On Fri, Feb 27, 2009 at 15:17, Sumedh wrote: > > Hi Friends, > > I've put all my JS includes at the bottom of pages...that improves > visible performanc

[symfony-users] Re: sfWidgetFormTextareaTinyMCE() not working

2009-02-27 Thread Denis Fingonnet
I'll keep an eye on it. Thank you On Fri, Feb 27, 2009 at 1:43 PM, Crafty_Shadow wrote: > > Ticket with patch created, the rest is up to fabien: > > http://trac.symfony-project.org/ticket/5986 > > > -- Denis Fingonnet --~--~-~--~~~---~--~~ You received this m

[symfony-users] Disable JS events until page fully loads

2009-02-27 Thread Sumedh
Hi Friends, I've put all my JS includes at the bottom of pages...that improves visible performance of the page... But if user clicks somewhere on the page before it fully loads, it fires JS errors as the JS file is not found yet... How can I fix this generically? I want to disable all JS event

[symfony-users] Re: sfWidgetFormTextareaTinyMCE() not working

2009-02-27 Thread Crafty_Shadow
Ticket with patch created, the rest is up to fabien: http://trac.symfony-project.org/ticket/5986 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-use

[symfony-users] Re: sfWidgetFormTextareaTinyMCE() not working

2009-02-27 Thread Crafty_Shadow
This one is based off the original, with my custom patches. Original didn't work for me either and it didn't have some of the functionality I needed (esp generating XHTML valid code) so I went and created this one. There is only one thing I'm not happy with, and that's line 110, the part of the G

[symfony-users] sfFunctionCache examples

2009-02-27 Thread Sumedh
Hi Friends, I wanted to use sfFunctionCache for the stuff where I can't use symfony action cache... I refered to the following - http://www.symfony-project.org/book/1_0/18-Performance http://www.symfony-project.org/api/1_0/sfFunctionCache Are there some other references that are more elaborat

[symfony-users] sfParameterHolder::add() and sfWebRequest::addRequestParameters should support double-dimensional arrays

2009-02-27 Thread XinJia
Hi, Form submission produces request parameters of double-dimensional arrays, but it seems both methods doesn't work on this. Am I right? Thanks . - xj --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users"

[symfony-users] Re: sfWidgetFormTextareaTinyMCE() not working

2009-02-27 Thread Crafty_Shadow
This is gonna be a pretty long, but here's my custom sfWidgetFormTextareaTinyMCE.class.php It works with TinyMCE 3 and up, and also produces fully XHTML compatible output. It also allows for gzip compression; Sample usage: $this->widgetSchema['content'] = new sfWidgetFormTextareaTinyMCE(

[symfony-users] Re: sfWidgetFormTextareaTinyMCE() not working

2009-02-27 Thread Denis Fingonnet
Hello Schorsch, Could you tell us : Where you put the tinyMCE dir ? How you set up the TinyMCE dir in the app.yml ? And what files you copy in the web/js dir ? Thx Denis On Fri, Feb 27, 2009 at 11:29 AM, Schorsch wrote: > > Hey, > > did you set up the TinyMCE Dir in the app.yml and copy the T

[symfony-users] Re: sfWidgetFormTextareaTinyMCE() not working

2009-02-27 Thread Schorsch
Hey, did you set up the TinyMCE Dir in the app.yml and copy the TinyMCE- Files in you web/js Folder? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony

[symfony-users] awesome dedicated server deal

2009-02-27 Thread Lee Bolding
Hey guys, There was some discussion recently about different Symfony hosting setups and options. Just thought I'd tell you all that Cari.net is currently having a sale on P4 servers. 2GB RAM, 160GB drive and 650GB traffic (2Mb/sec) is currently going for $50/month. If you want 1300GB traffic

[symfony-users] Re: If I get a error when rebuilding the model, does it mean that I wrecked schema.yml?

2009-02-27 Thread Gareth McCumskey
I know certain DB engines do not employ boolean types so perhaps that was causing the problem. On 2/27/09, Lawrence Krubner wrote: > > > > Okay, I got an older version of schema.yml out of Subversion and > rebuilt the model with that, and everything went fine. > > Here is the change I made that c

[symfony-users] Re: N - M relationships and symfony forms (Propel)

2009-02-27 Thread vadim
Hi guys. My schema would look like that (for Propel): Category: id: name: { type: varchar, required: true } Article: id: title: { type: varchar, required: true } category_id: { type: INTEGER, size: '11', required: false, foreignTable: category, foreignReference: id, onDel

[symfony-users] Re: UTF8 half working with symfony 1.2 and MySQL and Propel

2009-02-27 Thread scoubyaya
-good newsI found the solution ! I had lot of help from french IRC channel, thanks to them. Finally, someone told me to create a new project with an all new database, and check if accents where working fine --> yes Then, I made this new project working with my old database and a generated modu