[symfony-users] if anyone would like to sign up on our site, we could use some Symfony experts

2010-02-20 Thread lawrence
Hey, everyone, we are looking for some Symfony programmers to answer questions on our new Symfony site. Darren Hoyt and I are often asked for help with small programming or design tasks, simple problems that require maybe 5 minutes of our time. We find it isn't always easy to charge for the small

[symfony-users] Re: How to get user object on libs to not get the erro The "default" context does not exist.

2010-02-22 Thread lawrence
On Feb 19, 12:08 pm, Nei Rauni Santos wrote: > It worked for me, do you think it's a good solution? > > > class tools > { > >   /* >    * This code is used to allow get the user object on sf 1.3 >    * I usually used to $sf_user = sfContext::getInstance()->getUser(); >    * but it throw excepti

[symfony-users] Re: if anyone would like to sign up on our site, we could use some Symfony experts

2010-02-28 Thread lawrence
On Feb 23, 3:59 am, Eno wrote: > I dont suppose anyone knows of a similar site forAndroidquestions? :-) > We will be launching an Android site at the end of March. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this

[symfony-users] database configuration question

2010-04-09 Thread lawrence
There is a $60 award for a question about database configuration on Symfony Experts: http://www.symfonyexperts.com/question/show/id/36 -- 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 subscrib

[symfony-users] Re: Problem with doctrine:build-schema

2010-11-27 Thread lawrence
I have been struggling with this same issue. I have written this up on Symfony Experts. I am offering a $20 prize for a solution: http://www.symfonyexperts.com/question/show/id/156 Any help is greatly appreciated. I have been stuck on this for hours. On Nov 16, 6:45 am, Pratik Mazumder wrot

[symfony-users] Re: Problem with doctrine:build-schema

2010-11-27 Thread lawrence
Any progress with this? I am desperate for an answer. On Nov 16, 6:45 am, Pratik Mazumder wrote: > No Alex, I don't have tabs. These are white spaces only !!! > > On Tue, Nov 16, 2010 at 5:11 PM, Dominik Tuleweit wrote: > > > > > > > > > You have tabs for idention, take whitespaces instead: > >

[symfony-users] Re: Problem with doctrine:build-schema

2010-11-27 Thread lawrence
Are there any other scripts I might be able to use to generate the schema? doctrine:build-schema does not work On Nov 16, 6:45 am, Pratik Mazumder wrote: > No Alex, I don't have tabs. These are white spaces only !!! > > On Tue, Nov 16, 2010 at 5:11 PM, Dominik Tuleweit wrote: > > > > > > > > >

[symfony-users] Re: Problem with doctrine:build-schema

2010-11-27 Thread lawrence
Was there any other development in this thread? I am struggling with the same issue. On Nov 16, 6:45 am, Pratik Mazumder wrote: > No Alex, I don't have tabs. These are white spaces only !!! > > On Tue, Nov 16, 2010 at 5:11 PM, Dominik Tuleweit wrote: > > > > > > > > > You have tabs for idention

[symfony-users] how to change an integer form input to a string?

2009-05-17 Thread Lawrence
I've got a field that was mistakenly defined in the schema as an integer. So the base class looks like this (I'm leaving out the irrelevant fields): $this->setWidgets(array( 'payment_amount'=> new sfWidgetFormInput(), )); $this->setValidators(array( 'payment_amount'

[symfony-users] What might cause output to appear when running a command line script? We're getting: Content-type: text/html; charset=iso-8859-1

2009-05-17 Thread Lawrence
We are now unable to run commands such as: symfony propel:build-all-load Because this seems to output between all the major steps: X-Powered-By: PHP/5.2.9 Content-type: text/html; charset=iso-8859-1 Which causes this: Fatal error: Class 'Content-type' not found in /home/apartments/php/ symfon

[symfony-users] Re: What might cause output to appear when running a command line script? We're getting: Content-type: text/html; charset=iso-8859-1

2009-05-18 Thread Lawrence
(c) 1998-2009 Zend Technologies But this just started a few days ago. The problem wasn't there last week. > On 18. Máj, 08:02 h., Lawrence wrote: > > > We are now unable to run commands such as: > > > symfony propel:build-all-load > > > Because th

[symfony-users] Re: Symfony backend questions?

2009-05-18 Thread Lawrence
As Eno says, you would create a plugin to share a module between the backend and frontend. For the sake of simplicity, I usually create duplicate, redundant modules on the frontend and backend. Once the project is up and running, if there is time, I pull them out and make them a plugin. Fabien Po

[symfony-users] Re: What might cause output to appear when running a command line script? We're getting: Content-type: text/html; charset=iso-8859-1

2009-05-18 Thread Lawrence
On May 18, 4:43 pm, Eno wrote: > On Mon, 18 May 2009, Lawrence wrote: > > mybai...@mybailiwick.com [~/home/sfprojects/bw2]# php -v > > PHP 5.2.9 (cgi-fcgi) (built: May 18 2009 02:46:53) > > Copyright (c) 1997-2009 The PHP Group > > Zend Engine v2.2.0, Copyright (c)

[symfony-users] Re: how to change an integer form input to a string?

2009-05-18 Thread Lawrence
t I guess the model classes do this too. > On Mon, May 18, 2009 at 7:13 AM, Lawrence wrote: > > > I've got a field that was mistakenly defined in the schema as an > > integer. So the base class looks like this (I'm leaving out the > > irrelevant fiel

[symfony-users] Re: Best Practices for Schema Changes

2009-05-23 Thread Lawrence
On May 20, 9:50 am, slinky66 wrote: > I have not been able to find a best practice approach in the Symfony > docs for dealing with > schema changes as it relates to rebuilding the data model. Can someone > give me some guidance with this scenario? > > Site is up and running and a few weeks late

[symfony-users] how can we find out if an URL is pointing to a template? (if we want to delete the template?)

2009-05-25 Thread Lawrence
Recently, I was working on a site, and we deleted a template that we no longer wanted. But it turned out, in an obscure area of the site, there was a link going to that template. So when people clicked on that link, they got an error page. The site is under rapid evolution and we are constantly

[symfony-users] where does symfony hard-code paths?

2009-06-15 Thread Lawrence
This was a surprising problem. I suppose it shows how poorly I understand Symfony. We were doing development on our server at this path: /home/mypail/home/sfprojects/bw2/ On the server, in the directory that is available on the web, we created an alias so that the above path could be reached at

[symfony-users] why do the objects take so long to dump to screen?

2009-07-26 Thread Lawrence
I was pursuing a rare bug involved with saving a form, so I opened sfForm.class.php and I added in a print_r() statement: public function getErrorSchema() { echo " the error schema: "; print_r($this->errorSchema); die(); return $this->errorSchema; } I simply wanted to see what the errorSc

[symfony-users] what plugins or code do symfony developers prefer for image cropping?

2009-09-29 Thread lawrence
A client has asked me to build an image gallery. I'm curious what code or plugins Symfony developers typically use for this (assuming there is any typical usage). Have developers here used the eCropPlugin, and do you have an opinion about it? http://www.symfony-project.org/plugins/eCropPlugin/p

[symfony-users] any plugins offering a GUI form builder for non-programmers

2009-10-04 Thread lawrence
I've a friend who is in charge of overseeing a web start-up. They are still assembling their tech team, but their recruiters are already active gathering up corporations and talents into a database. As a stop-gap (since he has no tech team), he has started building forms using Zoho.com. The recru

[symfony-users] anonymous visits getting into a module marked credentials: admin. Why?

2009-12-13 Thread Lawrence
I create a new module. Then I create a folder called "config" in that module, and in a file called security.yml I add: all: is_secure: on credentials: admin Then I run "symfony cc". And yet, even when I'm not logged in, I can still point my browser at every page in the module. Did I forg

[symfony-users] Re: anonymous visits getting into a module marked credentials: admin. Why?

2009-12-13 Thread Lawrence
I'm using Symfony 1.2.5 On Dec 13, 7:42 pm, Lawrence wrote: > I create a new module. Then I create  a folder called "config" in that > module, and in a file called security.yml I add: > > all: >   is_secure:   on >   credentials: admin > > Then I run "

[symfony-users] is anyone else having trouble with url_for()?

2010-01-04 Thread lawrence
We are having a serious problem with url_for() on our site. Sometimes it does not correctly render the HTML. I saw it myself, but only in Google Chrome. But then our customers began reporting it in FireFox: -- I noticed it happening a few times in various locations, on the top experts “+

[symfony-users] Re: is anyone else having trouble with url_for()?

2010-01-04 Thread lawrence
rs HTML. As I said before, the problem is intermittent. But it just stopped a customer from completing a sale, so I regard the problem as serious. --- lawrence > > > On Tue, Jan 5, 2010 at 8:44 AM, lawrence wrote: > > > We are having a serious problem with url_for() on

[symfony-users] Re: is anyone else having trouble with url_for()?

2010-01-04 Thread lawrence
uestions.com/2009/12/09/some-responses-to-your-questions-and-feedback/ Basically, an HTML element will fail to render correctly, and some of the HTML will appear on screen. It is almost as if the closing ">" is forgotten. But if you hit refresh, or "View Source" then the pro

[symfony-users] Re: is anyone else having trouble with url_for()?

2010-01-04 Thread lawrence
On Jan 4, 4:31 pm, Gábor Fási wrote: > >> ui=2&view=att&th= > >> 1257035cb4bc9c21&attid=0.1&disp=attd&realattid=ii_1257035cb4bc9c21&zw > > This is a partial "view attachment" link from gmail's web interface - > how did it end up on your site? Interesting. It is possible that he made a mistake

[symfony-users] created_at is intermittently blank

2010-01-05 Thread lawrence
I've a problem with the created_at field defined in my schema.yml on this site: http://www.wpquestions.com/ I've this table: sf_guard_user_profile: _attributes: { phpName: sfGuardUserProfile } id: ~ user_id: { type: integer, foreignTable: sf_guard_user, fo

[symfony-users] Re: Free opensource Symfony-friendly PHP IDE: NetBeans 6.8

2010-01-06 Thread lawrence
> NetBeans 6.8 has built-in Symfony support. I have composed small blog- > post about setting up symfony project in NetBeans: > > http://www.fractalizer.ru/frpost_393/free-opensource-symfony-friendly... > > I consider now NetBeans as a replacement for Zend Studio ;) Yes, people should consider

[symfony-users] Re: Accessing arrays from templates turns them into sfOutputEscaperArrayDecorator objects?

2010-01-06 Thread lawrence
On Jan 4, 11:58 pm, Eno wrote: > > actions.class.php: > > $this->content_tabs = array('key1' => 'value1', 'key2' => 'value2'); > > Maybe something like this? > > $this->content_tabs[] = new array('key1' => 'value1', 'key2' => 'value2'); This is PHP. Why "new array"? -- You received this mess

[symfony-users] debug error: Fatal error: Allowed memory size of 134217728 bytes exhausted

2009-02-15 Thread Lawrence Krubner
type: CHAR, size: '1', required: true, default: F } IsSponsor: { type: CHAR, size: '1', required: true, default: F } new_player_id: { type: INTEGER, required: true, default: '' } new_location_id: { type: INTEGER, required: true, default: '' } As

[symfony-users] Re: debug error: Fatal error: Allowed memory size of 134217728 bytes exhausted

2009-02-15 Thread Lawrence Krubner
n phpMyAdmin, it correctly gets the values for this entry. On Feb 16, 1:31 am, Lawrence Krubner wrote: > I am getting an intermittent error. I'm having trouble debugging it, > because it is intermittent. Sometimes it manifests as a fatal error > due to the maximum amount

[symfony-users] how to get multiple options into a select in a form in symfony 1.1?

2009-02-16 Thread Lawrence Krubner
For Symfony 1.2, this is a great article: http://www.symfony-project.org/cookbook/1_2/en/make-a-choice How to implement a choice in a form? But I need to know how to do this in Symfony 1.1. I've a model that looks like this: new_coach: _attributes: { idMethod: native } id: { type: I

[symfony-users] Re: Could Symfony be easier to use?

2009-02-17 Thread Lawrence Krubner
I have to disagree with Alexandru-Emil Lupu about adding certain plugins to the core. If anything, you want to be going the other way - removing stuff from the core and moving it out to a plugin. If you add stuff to core, then eventually folks will feel the need to fork Symfony, for the same reas

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

2009-02-21 Thread Lawrence Krubner
too. For now I'm writing the SQL by hand, and creating the SELECT box by hand. Clumsy! --- lawrence Rytis Daugirdas wrote: > Hello, > > Does symfony handle N - M relationships in any way? For example: > > Category: > tableName: pp_category > column

[symfony-users] Re: CSRF tokens and attacks

2009-02-21 Thread Lawrence Krubner
ng to a user who is logged in? (Unless you have foolishly allowed outside attackers to embed Javascript directly into your templates, in which case you've some serious architectural issues that you need to fix.) --- lawrence krubner Hassen Ben Tanfous wrote: > Hi, > I sta

[symfony-users] Re: How to display the data from a Join query?

2009-02-21 Thread Lawrence Krubner
>> I solved the problem. There was no problem in the schema. >> Actually to access the fields from a joined table, I did not know I >> had to use the following syntax >> $item -> Table2[0] -> table2Field Interesting. Where is this documented? Where did you find this info? Alexandru-E

[symfony-users] Re: Multiple File Uploads

2009-02-21 Thread Lawrence Krubner
juro wrote: > I have tried that. $_POST has all the data (also the filenames) but > $_FILES is empty. > > Any ideas, why? Is your form set to be multi-part? > On Feb 16, 10:24 am, Lupu Alexandru-Emil wrote: >> personally i would do a >> print_r($_POST); >> print_r($_FILES); >> d

[symfony-users] Re: Full documentation functionality.

2009-02-21 Thread Lawrence Krubner
Developing better documentation - isn't that what people are doing, on their weblogs and forums? Search Google for "symfony" plus whatever subjected you are interested in ("embedded forms" or "form choices" or "sql") and you find a lot of material. The official site has every form of document

[symfony-users] Re: Full documentation functionality.

2009-02-21 Thread Lawrence Krubner
rt slowly. --- lawrence krubner Fabien Potencier wrote: > Have you read the description from "the definitive guide to symfony" for > example? > > http://www.symfony-project.org/book/1_2/08-Inside-the-Model-Layer#chapter_08_sub_object_and_peer_classes > > Or the de

[symfony-users] Re: Could Symfony be easier to use?

2009-02-21 Thread Lawrence Krubner
me of the functionality of a framework with pre-existing code, and for those situations, something lighter weight, with less assumptions, is better. --- lawrence krubner > On 17 Feb 2009, at 22:18, Lawrence Krubner wrote: > >> I have to disagree with Alexandru-Emil Lu

[symfony-users] Re: extending doctrine schema with SQL views

2009-02-21 Thread Lawrence Krubner
ll script and call it from the command line? That's really all that the above mentioned propel or doctrine commands do. It would take you, what, 5 minutes to write your own script? --- lawrence > > > > 2009/2/17 David Herrmann > >> Damien Lepage schrieb: &g

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

2009-02-25 Thread Lawrence Krubner
Label () ?> 21. 22. renderError() ? > 23. * at require('/home/lawrence/public_html/bocahoops/apps/frontend/ modules/newnews/templates/editSuccess.php') in SF_SYMFONY_LIB_DIR/view/sfPHPView.class.php

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

2009-02-25 Thread Lawrence Krubner
I am looking at the README section here: http://www.symfony-project.org/plugins/sfMediaLibraryPlugin I see these 5 lines: Enable the new module in your application, via the settings.yml file. // in myproject/apps/frontend/config/settings.yml all: .settings: enabled_modules:[sfMed

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

2009-02-25 Thread Lawrence Krubner
arated list inside of square brackets.  The > parenthesis should not be there. > > So, for example: > all: >   .settings: >     enabled_modules:       [sfMediaLibrary, default, sfOtherPluginModule] > > --Colin > > On Thu, Feb 26, 2009 at 1:32 AM, Lawrence Krubner >

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

2009-02-25 Thread Lawrence Krubner
m still getting a blank white screen. I assume there is nothing wrong with my yaml file? -- lawrence > On Thu, Feb 26, 2009 at 1:32 AM, Lawrence Krubner > wrote: > > > > > I am looking at the README section here: > > >http://www.symfony-project.org/plugins

[symfony-users] Re: Symfony Deployment

2009-02-25 Thread Lawrence Krubner
We use Springloops for our hosted Subversion, and it has a very nice deploy feature. You can log in and deploy any version number of your site to a dev server or a staging server or a production server - as many servers as you actually have, you can record the deploy info there, and then deploy t

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

2009-02-26 Thread Lawrence Krubner
I made some changes to schema.yml. Then I ran this command: php symfony propel:build-model And I got these errors: [PHP Error] DOMDocument::load(): error parsing attribute name in /home/ lawrence/public_html/bocahoops/config/generated-schema.xml, line: 41 [line 407 of /usr/share/php/symfony

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

2009-02-26 Thread Lawrence Krubner
On Feb 26, 2:12 am, Colin Williams wrote: > Hi Lawrence, > > Are you using a development controller, or production controller? If > production, try the dev controller, it should give you more information. If > you're already using the dev controller, make sure that you

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

2009-02-26 Thread Lawrence Krubner
e, default: '' } and changed it to this: active: { type: BOOLEAN, required: true, default: '' } Why would this cause a crash? -- lawrence On Feb 27, 12:29 am, Lawrence Krubner wrote: > I made some changes to schema.yml. Then I ran this command: > > php symfony

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

2009-02-26 Thread Lawrence Krubner
On Feb 21, 4:28 pm, Paolo Mainardi wrote: > On Sat, Feb 21, 2009 at 10:16 PM, Lawrence Krubner > wrote: > > > > >  > I inspected the generated forms for this example and they don't seem > >  > to > >  > include any many-to-many funcion

[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
essages are useless. --- lawrence > 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 crashed the fil

[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: 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 trigg

[symfony-users] Re: a blank white screen

2009-02-27 Thread Lawrence Krubner
t; email to the developer/admin. > > >> On Sat, Feb 28, 2009 at 1:28 PM, Lee Bolding wrote: > > >>> Or, install sfErrorHandlerPlugin > > >>>http://www.symfony-project.org/plugins/sfErrorHandlerPlugin > > >>> :) > > >>> On 28 Feb 2009

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

2009-02-27 Thread Lawrence Krubner
} What this means is that the widget "title" has not been set in the form class. So so a problem comes up when Symfony tries to load the template editSuccess.php (in the module newnews) and encounters this line: renderLabel() ?> I post this as a warning f

[symfony-users] there is no default values for auto-generated checkboxes

2009-02-28 Thread Lawrence Krubner
This is crazy: That's the HTML being generated by this: 'active' => new sfWidgetFormInputCheckbox(), There is no value in this checkbox so nothing gets sent to the server. Shouldn't there be some default value? I think "1" would be a good default. --~--~-~--~~~

[symfony-users] Re: there is no default values for auto-generated checkboxes

2009-02-28 Thread Lawrence Krubner
gumentException(sprintf('%s does not support the following options: \'%s\'.', get_class($this), implode('\', \'', $diff))); } On Feb 28, 3:09 am, Lawrence Krubner wrote: > This is crazy: > >   id="comments" /> > > That's the H

[symfony-users] how to set the date for sfWidgetFormDateTime?

2009-02-28 Thread Lawrence Krubner
How do I set a default value for sfWidgetFormDateTime? I looked here: http://www.tig12.net/downloads/apidocs/symfony/widget/sfWidgetFormDateTime.class.html Which made me think I could get away with this: $this->widgetSchema['date']->setAttribute('time', time()); But apparently that doesn

[symfony-users] Re: how to set the date for sfWidgetFormDateTime?

2009-02-28 Thread Lawrence Krubner
fWidget.class.php line 43 ... // check option names if ($diff = array_diff(array_keys($options), array_merge(array_keys ($this->options), $this->requiredOptions)) { throw new InvalidArgumentException(sprintf('%s does not support the following options: \'%s\'

[symfony-users] Re: how to set the date for sfWidgetFormDateTime?

2009-02-28 Thread Lawrence Krubner
Tomasz, I tried this: $this->widgetSchema['date']->setDefault(date('Y/m/d H:m')); but got this: Fatal error: Call to undefined method sfWidgetFormDateTime::setDefault () in /home/lawrence/public_html/bocahoops/lib/form/ NewNewsForm.class.php on line 38

[symfony-users] Re: how to set the date for sfWidgetFormDateTime?

2009-02-28 Thread Lawrence Krubner
I also tried this: $dateWidget =new sfWidgetFormDateTime(); $dateWidget->setDefault(date('Y/m/d H:m')); Again, the same fatal error. On Feb 28, 7:23 am, Tomasz Ignatiuk wrote: > Try to use setDefault method. I had the same problem. > > On 28 Lut, 10:02, L

[symfony-users] In the Base model classes, what does alreadyInSave accomplish?

2009-03-01 Thread Lawrence Krubner
I'm examining some auto-generated code in the Base class of one of my model classes. I'm curious about the line with the $this- >alreadyInSave. It is first set to true, and then later it is set to false. As near as I can see, it is always set to true, and then false. What is the point of this? If

[symfony-users] Re: Symfony Deployment

2009-03-01 Thread Lawrence Krubner
Are the creators of Symfony still working on pake? I think they were thinking that pake would become the build tool that everyone used to deploy Symfony projects. Consider this article: "How to deploy PHP sites with the Pake build tool" http://morethanseven.net/2008/01/07/how-to-deploy-php-sites-

[symfony-users] I am unable to install sfErrorHandlerPlugin

2009-03-02 Thread Lawrence Krubner
: enabled_modules: [sfMediaLibrary, default, sfErrorHandler] I then tried to rebuild the cache: php symfony cc I got this error: Failed to write cache file "/home/lawrence/public_html/bocahoops/cache/ frontend/dev/config/config_settings.yml.php" generated from configuration file "conf

[symfony-users] How does one activate the Rich Date widget?

2009-03-03 Thread Lawrence Krubner
'date'] = new sfWidgetFormJQueryDate(); No effect. What else do I have to do? -- lawrence --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-user

[symfony-users] Re: Most developed CMS plugin using doctrine?

2009-03-03 Thread Lawrence Krubner
Tom, that sounds really great. What kind of license will this be under? On Jan 14, 10:25 am, "Tom Boutell" wrote: > We're speeding along on one right now and should have an early public > beta in a couple weeks. Features of the forthcoming pkContextCMS > include: > > * Use of Doctrine column ag

[symfony-users] Re: How does one activate the Rich Date widget?

2009-03-03 Thread Lawrence Krubner
Apologies, I didn't see that I had to install JQuery myself. On Mar 3, 9:09 pm, Lawrence Krubner wrote: > I'm running Symfony 1.1.4 > > I want to use the rich date widget mentioned here: > > http://www.symfony-project.org/blog/2008/10/18/spice-up-your-forms-wi... >

[symfony-users] what is the best way to enable JQuery in Symfony?

2009-03-03 Thread Lawrence Krubner
I'm looking at this page: http://www.symfony-project.org/book/1_1/11-Ajax-Integration It says; --- All of the helpers described here are available in templates, provided that you declare the use of the Javascript helper group. --- But

[symfony-users] Re: How does one activate the Rich Date widget?

2009-03-03 Thread Lawrence Krubner
do I need to do to get the formatting correct? -- lawrence On Mar 3, 9:09 pm, Lawrence Krubner wrote: > I'm running Symfony 1.1.4 > > I want to use the rich date widget mentioned here: > > http://www.symfony-project.org/blog/2008/10/18/spice-up-your-forms-wi... > >

[symfony-users] Re: what is the best way to enable JQuery in Symfony?

2009-03-03 Thread Lawrence Krubner
On Mar 3, 10:35 pm, Damien Lepage wrote: > You can use sfJqueryReloadedPlugin which allows to specify a path to > jquery.js in your app.yml > The plugin does not handle the UI extension yet. > I guess you can set the path to your UI js in a custom property of app.yml. Thanks, but I'm using Jq

[symfony-users] I can not get sfWidgetFormTextareaTinyMCE to work, even when I copy the examples straight from the Symfony website

2009-03-03 Thread Lawrence Krubner
If you go here: http://www.symfony-project.org/blog/2008/10/18/spice-up-your-forms-with-some-nice-widgets-and-validators then you see this as an example: $this->widgetSchema['content'] = new sfWidgetFormTextareaTinyMCE(array ( 'width' => 550, 'height' => 350, 'config' => 'theme_advanced_

[symfony-users] Re: I can not get sfWidgetFormTextareaTinyMCE to work, even when I copy the examples straight from the Symfony website

2009-03-03 Thread Lawrence Krubner
reaTinyMCE->render('new_news[description]', 'Davy Johnson, now a Junior, shows great promise. ', array(), null) It clearly shows the second array as empty, even though my code clearly shows that I've added the class to the second array. What am I getting wrong here? --

[symfony-users] Re: I can not get sfWidgetFormTextareaTinyMCE to work, even when I copy the examples straight from the Symfony website

2009-03-03 Thread Lawrence Krubner
?> I still get: [InvalidArgumentException] You must pass a "class" attribute for a TinyMCE widget (new_news [description]). On Mar 3, 11:58 pm, Lawrence Krubner wrote: > This page has some useful documentation: > > http://www.symfony-project.org

[symfony-users] Re: How do you efficiently build object graphs

2009-03-03 Thread Lawrence Krubner
> The ideal way I would think to solve this would be for Propel to be > able to efficiently create composite objects, but I don't see an easy > way to do this, since the Criteria objects only allow me to specify > conditions regarding the query results, not column selects that would > allow me to

[symfony-users] Re: How do you efficiently build object graphs

2009-03-03 Thread Lawrence Krubner
This is also worth noting: http://propel.phpdb.org/trac/wiki/Users/Documentation/1.2/ManyToManyRelationships "Because Propel's support for relationships maps directly to the way that relationships are handled at the database level, there is no magical support for many-to-many relationships in Pr

[symfony-users] Re: what is the best way to enable JQuery in Symfony?

2009-03-04 Thread Lawrence Krubner
On Mar 4, 5:50 am, Thomas Rabaix wrote: > view.yml > > all: >   javascript: >     - file1 >     - file2 > Thomas, pardon my ignorance, but how does this work? I put the full path in view.yml? Like this: all: javascript: - /bocahoops/js/jquery/jquery-1.3.1.js - /bocahoops/js/jquery/j

[symfony-users] Re: I can not get sfWidgetFormTextareaTinyMCE to work, even when I copy the examples straight from the Symfony website

2009-03-04 Thread Lawrence Krubner
On Mar 4, 4:51 am, Garakkio wrote: > My humble opinion: it's better to use directly javascript to get > tinyMCE working. > So, simple add a "class="rich"" to yout textarea and write (and > include it in your page, of course) a js like this one: > > tinyMCE.init({ >   theme : "advanced", >   mod

[symfony-users] Re: I can not get sfWidgetFormTextareaTinyMCE to work, even when I copy the examples straight from the Symfony website

2009-03-04 Thread Lawrence Krubner
On Mar 4, 4:51 am, Garakkio wrote: > My humble opinion: it's better to use directly javascript to get > tinyMCE working. > So, simple add a "class="rich"" to yout textarea and write (and > include it in your page, of course) a js like this one: > > tinyMCE.init({ >   theme : "advanced", >   mod

[symfony-users] What is a legacy error? as related to security?

2009-03-05 Thread Lawrence Krubner
...', 76, Array) #1 /usr/share/ php/symfony/exception/sfException.class.php(76): header('HTTP/1.0 500 In...') #2 /usr/share/php/symfony/controller/ sfFrontWebController.class.php(57): sfException->printStackTrace() #3 / usr/share/php/symfony/util/sfContext.class.php(164): sfFrontWe

[symfony-users] Re: What is a legacy error? as related to security?

2009-03-05 Thread Lawrence Krubner
On Mar 5, 8:30 pm, Lawrence Krubner wrote: > Check out this screenshot: > > http://lawrence.sds5.com/security_error.gif > > I just turned on security for this module, and suddenly I get this, > which you can see in the screenshot: > > Fatal error: Uncaught exception

[symfony-users] Re: What is a legacy error? as related to security?

2009-03-05 Thread Lawrence Krubner
On Mar 5, 9:53 pm, Lawrence Krubner wrote: > On Mar 5, 8:30 pm, Lawrence Krubner wrote: > > > > > Check out this screenshot: > > >http://lawrence.sds5.com/security_error.gif > > > I just turned on security for this module, and suddenly I get this, >

[symfony-users] Re: sf 1.2: is all the documentation about the admin generator wrong?

2009-03-05 Thread Lawrence Krubner
On Mar 5, 7:50 pm, "ganda...@gmail.com" wrote: > Hello all! > > Last time I wrote about this nobody answered, I assumed that I asked > the dumbest question ever, now after 1h googling I had to ask again, > is all the documentation about the admin generator wrong? > > the type: is being ignored

Re: Re : Re : [symfony-users] Re: Which version of symfony use?

2009-03-05 Thread Lawrence Krubner
On Mar 5, 4:46 pm, lmdes wrote: > i've used symfony 1.0 and 1.1, but not symfony 1.2. If i install > symfony 1.2, is it compatible with features of previous versions? I > mean, can I install symfony 1.2 and use some features of previous > versions and some features of symfony 1.2? I did this us

[symfony-users] i can not login, using the simple, built in security that Symfony has be default

2009-03-05 Thread Lawrence Krubner
Check out this screenshot: http://lawrence.sds5.com/no_login.gif I find this odd. I've got a module I want to lock down to people who are logged in. I've got this in the module's config/security.yml: read: is_secure: on update: is_secure: on delete: is_secure: on edit: is_secur

[symfony-users] Re: i can not login, using the simple, built in security that Symfony has be default

2009-03-06 Thread Lawrence Krubner
odule, but that had no effect. > > On Fri, Mar 6, 2009 at 7:59 PM, Lawrence Krubner > wrote: > > > Check out this screenshot: > > >http://lawrence.sds5.com/no_login.gif > > > I find this odd. I've got a module I want to lock down to people who > >

[symfony-users] why do I need to clear the cache when I'm looking at the dev controller? Isn't caching off by default?

2009-03-06 Thread Lawrence Krubner
I'm working on a new site. It is in development. When I look at it in the browser, I'm always looking at the dev controller. Everytime I add a plugin, or new models, I need to run this command: php symfony cc Why do I need to do this? I thought caching was off by default for the dev controller?

[symfony-users] Re: What is a legacy error? as related to security?

2009-03-06 Thread Lawrence Krubner
On Mar 6, 4:59 am, Lee Bolding wrote: > On 6 Mar 2009, at 02:59, Lawrence Krubner wrote: > > > Okay, I sort of see what is going on now. > > > When the login page is done loading, the sfErrorHandler plugin > > attempts to send a 500 response and then send an error.

[symfony-users] how do I set a default value for a hidden input?

2009-03-06 Thread Lawrence Krubner
I've tried this: $this->widgetSchema['date'] = new sfWidgetFormInputHidden(); $this->widgetSchema['date']->setDefault(date("Y-m-d h:m:i")); but I get this error: Fatal error: Call to undefined method sfWidgetFormInputHidden::setDefault() in /h

[symfony-users] Re: how do I set a default value for a hidden input?

2009-03-06 Thread Lawrence Krubner
On Mar 6, 7:16 am, Lawrence Krubner wrote: > I've tried this: > >    $this->widgetSchema['date'] = new sfWidgetFormInputHidden(); >    $this->widgetSchema['date']->setDefault(date("Y-m-d h:m:i")); > > but I get this error: >

[symfony-users] Re: how do I set a default value for a hidden input?

2009-03-06 Thread Lawrence Krubner
for this example? I'd like to see more background information. > Cheers, Alan Gabriel Bem > > On Fri, Mar 6, 2009 at 1:16 PM, Lawrence Krubner > wrote: > > > > > I've tried this: > > >   $this->widgetSchema['date'] = new sfWidgetForm

[symfony-users] Re: how do I set a default value for a hidden input?

2009-03-06 Thread Lawrence Krubner
27;t work. The "setDefault" method is only available in symfony 1.2. I'm trying to figure out how to do this in symfony 1.1.7 > > On Fri, Mar 6, 2009 at 1:16 PM, Lawrence Krubner > wrote: > > > > > I've tried this: > > >   $this->

[symfony-users] Re: Hit counter?

2009-03-06 Thread Lawrence Krubner
On Mar 6, 7:19 pm, Sid Bachtiar wrote: > Hi, > > I just tried out sfSimpleBlogPlugin and it's awesome. But it is > missing a hit counter to analyse the traffic (even really simple one). > What do you guys use for hit counter for your Symfony projects? I'm > just surprised there isn't a plugin f

[symfony-users] Re: what is the best way to enable JQuery in Symfony?

2009-03-06 Thread Lawrence Krubner
On Mar 4, 6:51 am, Paolo Mainardi wrote: > RTFM:http://www.symfony-project.org/book/1_2/07-Inside-the-View-Layer#chap... > Does the standard Javascript helper work in these circumstances? Like this: > On Wed, Mar 4, 2009 at 12:45 PM, Lawrence Krubner > wrote: > >

[symfony-users] Re: what is the best way to enable JQuery in Symfony?

2009-03-06 Thread Lawrence Krubner
On Mar 4, 6:51 am, Paolo Mainardi wrote: > RTFM:http://www.symfony-project.org/book/1_2/07-Inside-the-View-Layer#chap... Just to be clear, I'm asking about the layout, not the template. The page you point me to shows me how to get my Javascript files into my template. But I'm wondering if ther

[symfony-users] Re: In the Base model classes, what does alreadyInSave accomplish?

2009-03-06 Thread Lawrence Krubner
On Mar 2, 12:38 pm, vadim wrote: > It's a variable showing that the save/update operation already started > for this object, so it prevents an implementation of other insert/ > update operations until the current one is over. When the operation > starts - alreadyInSave is turned to true. When i

[symfony-users] Re: what is the best way to enable JQuery in Symfony?

2009-03-06 Thread Lawrence Krubner
On Mar 4, 6:51 am, Paolo Mainardi wrote: > RTFM:http://www.symfony-project.org/book/1_2/07-Inside-the-View-Layer#chap... > So, perhaps this is impossible? > On Wed, Mar 4, 2009 at 12:45 PM, Lawrence Krubner > wrote: > > > > > > > On Mar

[symfony-users] a plugin to generate Google Sitemaps

2009-03-07 Thread Lawrence Krubner
I haven't been able to find a plugin that generates a Google Sitemap. (or rather, sitemap for those search engines that use the format developed by Google). Is there one? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Group

[symfony-users] Re: a plugin to generate Google Sitemaps

2009-03-07 Thread Lawrence Krubner
On Mar 7, 8:42 pm, Sid Bachtiar wrote: > I'm looking for it too, to be integrated with sfSimpleBlogPlugin. I > don't think there is one at the moment. > > On Sun, Mar 8, 2009 at 2:38 PM, LawrenceKrubner wrote: > > > I haven't been able to find a plugin that generates a Google Sitemap. > > (or r

[symfony-users] Re: what is the best way to enable JQuery in Symfony?

2009-03-07 Thread Lawrence Krubner
On Mar 7, 1:16 am, Ant Cunningham wrote: > layout.php is just a wrapper for the the template and contains the > section of the html, so all things that are added to the head are > actually added to layout.php by the include_metas() call. so if in > apps/applicationname/config/view.yml you do:

[symfony-users] Re: Symfony Production Performance improvements

2009-03-07 Thread Lawrence Krubner
On Mar 7, 2:06 am, Gareth McCumskey wrote: > Greetings all, > > We have recently released a project we have been working on for some months > now as an Alpha version and while we have focussed primarily on bug fixing > as well as feature completion for the next Alpha release coming up in a > we

  1   2   >