[symfony-users] Trying to use sfConfig::set to set flag for filter

2011-04-01 Thread Jonathan Franks
I'm trying to set a flag in a doctrine listener so that a sfFilter knows whether to do something or not. In the listener I have... sfConfig::set('app_database_altered', true); In my filter I have... public function execute($filterChain) { $filterChain-execute(); var_dump

Re: [symfony-users] Trying to use sfConfig::set to set flag for filter

2011-04-01 Thread Jonathan Franks
is loaded after your event is called, so that override your value... Yohan g. 2011/4/1 Jonathan Franks jonat...@ifranks.com I'm trying to set a flag in a doctrine listener so that a sfFilter knows whether to do something or not. In the listener I have... sfConfig::set

[symfony-users] Re: cli memory problem...

2011-03-26 Thread Jonathan Franks
that you should try also with a compiled C program this test to verify that the limitation affects all processes. Best regards, gabriel On Wednesday, March 23, 2011 12:43:57 PM UTC+2, Jonathan Franks wrote: Hi Gabriel. Thanks! Following ur advice, I used a script to test memory usage

[symfony-users] Re: cli memory problem...

2011-03-23 Thread Jonathan Franks
Hi Gabriel. Thanks! Following ur advice, I used a script to test memory usage that I found here... http://magazine.joomla.org/issues/Issue-Dec-2010/item/295-Are-you-getting-your-fair-share-of-PHP-memory?tmpl=componentprint=1 And you were right! Through the web, the script happily gets up to

[symfony-users] Re: cli memory problem...

2011-03-23 Thread Jonathan Franks
I said that you should try also with a compiled C program this test to verify that the limitation affects all processes. Best regards, gabriel On Wednesday, March 23, 2011 12:43:57 PM UTC+2, Jonathan Franks wrote: Hi Gabriel. Thanks! Following ur advice, I used a script to test

[symfony-users] Debug Toolbar Memory Use Value

2010-10-25 Thread Jonathan Franks
What does this amount mean? I have some pages with a value as high as 12544.0 KB. Is that bad? Thanks Jonathan -- 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

Re: [symfony-users] Zend Lucene Search - Parser problem

2010-10-19 Thread Jonathan Franks
Hi Adam, The chapter after search adds implements getting the results by ajax. The javascript that sends the request adds an asterisk (*) to the end of the search query. You can add asterisks to the ends of the words in the user search query. On 19 Oct 2010, at 10:59, Adam wrote: Hi I

Re: [symfony-users] Re: Zend Lucene Search - Parser problem

2010-10-19 Thread Jonathan Franks
* but i get Error: At least 3 non-wildcard characters are required at the beginning of pattern. ) On okt. 19, 16:38, Jonathan Franks jonat...@ifranks.com wrote: Hi Adam, The chapter after search adds implements getting the results by ajax. The javascript that sends the request adds an asterisk

[symfony-users] sf_method requirement being ignored...

2010-04-06 Thread Jonathan Franks
I'm trying to make my code enforce a PUT request on a certain url... basket_add: url:/basket/add/:class/:id param: { module: jbShoppingBasket, action: add } class: sfRequestRoute requirements: sf_method:[put] ./symfony

[symfony-users] Swift Mailer Configuration

2010-03-30 Thread Jonathan Franks
I'm a bit confused. I altered my factories.yml to look like this... all: mailer: param: transport: param: host: smtp.gmail.com port: 465 encryption: ssl username: username password: password But, when I try to

[symfony-users] [sf1.3][doctrine 1.2] baseClassName

2009-11-07 Thread Jonathan Franks
We can change the baseClassName for all models using the builder options. But is it possible to change the baseClassName for selected models only? something like this... User: baseClassName:myDoctrineRecord columns: . Doctrine's Inheritance is not suitable as

[symfony-users] Re: sf1.2 routes fail in sf1.3

2009-10-16 Thread Jonathan Franks
-by-:author.html param: { module: books, action: list } options: segment_separators: [/, .] 2009/10/15 Jonathan Franks jonat...@ifranks.com in sf1.2, i could write a route like this... url: /books-by-:author.html param: { module: books, action: list } options

[symfony-users] sf1.3 ANSI color on the command line....

2009-10-15 Thread Jonathan Franks
is there a way to make this the default? instead of typing --color every time --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to

[symfony-users] testing routes

2009-10-15 Thread Jonathan Franks
I have a very long, complicated routing.yml and I want to make sure that when I add a new route, it doesn't conflict with any of the existing ones. So, I wanna write a test which does something like this... $routing = new sfPatternRouting(new sfEventDispatcher()); ... some code to load the

[symfony-users] sf1.2 routes fail in sf1.3

2009-10-15 Thread Jonathan Franks
in sf1.2, i could write a route like this... url: /books-by-:author.html param: { module: books, action: list } options: segment_separators: [/, ., -] and it would match... /books-by-jon.html /books-by-jon-franks.html but in sf1.3, it only matches... /books-by-jon.html

[symfony-users] Re: testing routes

2009-10-15 Thread Jonathan Franks
/load_data.php ;) On Thu, Oct 15, 2009 at 5:17 PM, Jonathan Franks jonat...@ifranks.com wrote: I have a very long, complicated routing.yml and I want to make sure that when I add a new route, it doesn't conflict with any of the existing ones. So, I wanna write a test which does something like

[symfony-users] best way to access the query string from an sfRoute object...

2009-07-08 Thread Jonathan Franks
I'm building a sfRoute class and I want to have some parameters in the url itself and some appended in the query string. The problem is that I need to access all the parameters in my sfRoute class. The following... public function matchesUrl($url, $context = array()) { if (false

[symfony-users] [sf1.2] sfConfig in tasks to access app.yml

2009-07-05 Thread Jonathan Franks
can I use sfConfig in tasks to access settings in my app.yml?? I'm finding that whatever I try to get, returns false and the default value is used. I'm defining my application as frontend. --~--~-~--~~~---~--~~ You received this message because you are

[symfony-users] Re: [sf1.2] sfConfig in tasks to access app.yml

2009-07-05 Thread Jonathan Franks
that works! thanks! On 5 Jul 2009, at 21:16, Thomas Rabaix wrote: if your task extends sfBaseTask, you can access to the app.yml value by adding --application=frontend|backend ... On Sun, Jul 5, 2009 at 7:40 PM, Jonathan Franks jonat...@ifranks.com wrote: can I use sfConfig

[symfony-users] accessing the doctrine schema configuration

2009-06-18 Thread Jonathan Franks
Hi y'all, I'm developing a plugin with a doctrine behavior. The behavior is configured in the schema.yml. I have made a routing class which needs access to this configuration. What's the best way to do this please? Should I use sfYaml or can I access it somehow through a doctrine class?

[symfony-users] Re: accessing the doctrine schema configuration

2009-06-18 Thread Jonathan Franks
with your class table : Doctrine::getTable('yourModel') Look to the API to get more information from there. On Thu, Jun 18, 2009 at 5:57 PM, Jonathan Franks jonat...@ifranks.com wrote: Hi y'all, I'm developing a plugin with a doctrine behavior. The behavior is configured

[symfony-users] Doctrine behaviors with generated files

2009-05-11 Thread Jonathan Franks
Hello All - I'm writing my own doctrine behavior which generates a couple of database tables. I've turned on file generation so that the record classes actually get written to disk. This works but the generated base classes extend Doctrine_Record instead of sfDoctrineRecord. How do I

[symfony-users] Controlling output escaping in the Admin generator on a per getter basis...

2009-04-15 Thread Jonathan Franks
I have output escaping set to on and I'm using substitution with % %getter%% My getter returns HTML, so I want to use the RAW value. Is it possible??? Thanks, Jonathan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[symfony-users] Re: Admin gen: setting default values for form fields

2009-01-27 Thread Jonathan Franks
Moo! Why don't you just overide the new action and pass the default value to the form?... Or are you hoping that there should be some 'built in' support for this? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[symfony-users] Re: Login redirection trick?

2009-01-06 Thread Jonathan Franks
I also do not like how in sfGuardPlugin, the profile is separated from the user on different tables (should be in the same table somehow). I haven't tried it yet but I thought that 1.2 (and maybe even 1.1) supports schema inheritance, allowing you to add fields to a table defined in a

[symfony-users] Re: unset vs display with admin generator

2008-12-30 Thread Jonathan Franks
because the display option could be overriden for the edit or new view. Damien 2008/12/29 Jonathan Franks jonat...@ifranks.com Yes, it is the behavior but is it the intended behavior?? I can't think of any reason why the generator.yml display option behaves like this. To me, it seems

[symfony-users] unset vs display with admin generator

2008-12-29 Thread Jonathan Franks
if I use the display option in the admin generator to hide fields they disappear from the form but they are saved with null values. For instance, if I hide the updated_at field, when I save the form, the object is written to the database with an updated_at value of null. In order to get

[symfony-users] Re: unset vs display with admin generator

2008-12-29 Thread Jonathan Franks
Yes, it is the behavior but is it the intended behavior?? I can't think of any reason why the generator.yml display option behaves like this. To me, it seems like a bug. But i'm wondering if there is a good reason that I've missed? --~--~-~--~~~---~--~~

[symfony-users] [1.2] customise the output of an embedded form in a template.

2008-12-05 Thread Jonathan Franks
I want to embed a form for use in the admin generator but I want to be able to customise the output of the embedded form in a template. My first idea was to simply overide the sfForm render method in my embedded form like this... public function render($attributes = array()) {

[symfony-users] Re: Re : [symfony-users] Re: File upload deletes previous file if field is empty

2008-11-18 Thread Jonathan Franks
Daniel - I managed to dig out the code for the solution I found for this problem. Try the following... public function save($con = null) { $file = $this-getValue('file'); if ($file) { if (file_exists($this-getObject()-getFile())) {

[symfony-users] Re: File upload deletes previous file if field is empty

2008-11-17 Thread Jonathan Franks
You haven't done anything wrong - the example in the tutorial does delete previous uploads if the upload field is left empty. You need to add extra logic to your form in order to prevent this from happening. --~--~-~--~~~---~--~~ You received this message

[symfony-users] Re: Re : [symfony-users] Re: File upload deletes previous file if field is empty

2008-11-17 Thread Jonathan Franks
://groups.google.com/group/symfony-devs/browse_thread/thread/be2b ... De : Jonathan Franks [EMAIL PROTECTED] À : symfony-users@googlegroups.com Envoyé le : Lundi, 17 Novembre 2008, 21h23mn 43s Objet : [symfony-users] Re: File upload deletes previous file if field is empty

[symfony-users] Re: Re : [symfony-users] Re: File upload deletes previous file if field is empty

2008-11-17 Thread Jonathan Franks
to NULL. On Nov 17, 10:38 pm, Daniel Staver [EMAIL PROTECTED] wrote: I'm calling unset in the doSave method before parent::doSave. As far as I can tell doSave calls updateObject() and then save(), so my unset should be in the right place. On Nov 17, 10:33 pm, Jonathan Franks [EMAIL

[symfony-users] Re: Why use Doctrine?

2008-10-24 Thread Jonathan Franks
If I was starting with symfony today, I would definitely use doctrine. Jonathan Wage, the man behind Doctrine, is now part of the core symfony team, which I think gives a clear signal of which ORM is going to be dominant in future. From a learning point of view, the down side is that the

[symfony-users] Re: embed propel forms

2008-10-23 Thread Jonathan Franks
(); $obj-setRelatedId($this-object-getPrimaryKey()); ... BECAME ... $obj = new Relationship(); $obj-setRelatedId($this-getEmbeddedObject()-getPrimaryKey()); ... In addition to this i had to refactor the doSave methods a bit as well. I hope that helps. Jonathan Franks wrote: I'm

[symfony-users] Re: core plugins that use the new forms framework

2008-10-23 Thread Jonathan Franks
schema files, migrations, execute doctrine tasks, etc. The schema can be built and edited using easy to populate forms. I'll post here when I commit it to the main svn. - Jon On Thu, Oct 23, 2008 at 5:13 AM, Jonathan Franks [EMAIL PROTECTED] wrote: I've just been reading

[symfony-users] sfInflector::camelize

2008-10-14 Thread Jonathan Franks
hi, i'm on 1.1.4 and I'm getting a strange result from sfInflector::camelize echo sfInflector::camelize('contact_us'); outputs ContactUs but i want contactUs is this me or symfony??? --~--~-~--~~~---~--~~ You received this message because you

[symfony-users] Re: sfInflector::camelize

2008-10-14 Thread Jonathan Franks
case version. So in that respect is it just you. However, I can see when the other possibility would be useful. But just run it through the lcfirst function to get what you want. Regards, Thomas On Tue, Oct 14, 2008 at 3:26 PM, Jonathan Franks [EMAIL PROTECTED] wrote: hi, i'm

[symfony-users] sfAutoloadConfigHandler problem

2008-10-07 Thread Jonathan Franks
I'm using symfony 1.1.4 and the classes in... plugins / myplugin / modules / mypluginmodule / lib are not autoloading. If i look in the cached config_autoload.yml.php file, i see this // plugins module lib 'ifdsContactForm/BaseifdsContactFormActions' = '/Users/jonathan/Sites/

[symfony-users] Re: sfAutoloadConfigHandler problem

2008-10-07 Thread Jonathan Franks
then everything works as expected. On 7 Oct 2008, at 15:20, Eno wrote: On Tue, 7 Oct 2008, Jonathan Franks wrote: I'm using symfony 1.1.4 and the classes in... plugins / myplugin / modules / mypluginmodule / lib are not autoloading. Is the module enabled in your settings.yml

[symfony-users] Re: sfAutoloadConfigHandler problem

2008-10-07 Thread Jonathan Franks
Are you using your plugin with a simlink ? On Tue, Oct 7, 2008 at 5:09 PM, Jonathan Franks [EMAIL PROTECTED] wrote: Yup, it is enabled. As I showed in the previous email, the class and the path to the class are in the generated config_autoload.yml.php file The problem

[symfony-users] Re: sfAutoloadConfigHandler problem

2008-10-07 Thread Jonathan Franks
If this is indeed the case, why is Jonathan seeing this in his autoloader cache? exactly! I just realised that part of the problem is the sf_compat plugin. If I disable this, then sfContext::hasInstance() does get a valid sfContext object. However, the problem is not solved. The code

[symfony-users] form framework style

2008-10-02 Thread Jonathan Franks
the form framework book has a nice simple style applied to all the forms it shows. Is the css for this available anywhere?? (the examples are screen shots, so I can't just grab the css) Regards, Jonathan --~--~-~--~~~---~--~~ You received this message because

[symfony-users] [off topic] YAML in eclipse

2008-08-27 Thread Jonathan Franks
Hi guys, Just wondering whether anybody is using a good yaml plugin for eclipse. I've tried a few but I haven't found one I like. I'm looking for one which automagically changes the tab key output to a double space as well as adding some basic syntax highlighting. Anything extra is a

[symfony-users] Re: [off topic] YAML in eclipse

2008-08-27 Thread Jonathan Franks
as it's inline with the symfony coding standards. regards, jonathan On 27 Aug 2008, at 07:38, Yanko Simeonoff wrote: Jonathan Franks wrote: Hi guys, Just wondering whether anybody is using a good yaml plugin for eclipse. I've tried a few but I haven't found one I like. I'm looking for one

[symfony-users] Re: [off topic] YAML in eclipse

2008-08-27 Thread Jonathan Franks
27, 9:50 am, Jonathan Franks [EMAIL PROTECTED] wrote: symfoclipse is nice because it is very easy to read but it doesn't convert tabs to double spaces. This is good because it will help you to code by YAML rules only (let's imagine that you need to change YAML config by other editor and you

[symfony-users] using renderComponent() outside of an action

2008-07-10 Thread Jonathan Franks
can I use renderComponent() outside of an action?? I want to use it in a propel getter to output a component from a plugin as a field in the admin generator. Something like... public function getPhotos() { return .-renderComponent( 'PhotosPluginModule' , 'ComponentName' ) } Is

[symfony-users] Re: the new form framework and form fields added by javascript on the client side

2008-07-02 Thread Jonathan Franks
name to something with [] may solve the problem. That way you can recieve an array and wirte a custom validatar that calls sffilevalidator for each item. Do i make sense? On Jun 30, 5:57 pm, Jonathan Franks [EMAIL PROTECTED] wrote: How could one use the new form system to deal with form

[symfony-users] Re: What happened to sfUJSPlugin??

2008-06-30 Thread Jonathan Franks
and include_dynamic_javascript(), PJS are natively supported and in a cleaner way, so PJS become a viable solution. François 2008/6/30 Jonathan Franks [EMAIL PROTECTED]: Some time ago, there was a bit of a buzz on the user list about sfUJSPlugin and I wondered if we were gonna see a move towards a system

[symfony-users] the new form framework and form fields added by javascript on the client side

2008-06-30 Thread Jonathan Franks
How could one use the new form system to deal with form fields generated using javascript on the client side? For instance, if one wanted to allow multiple file uploads like here http://www.fyneworks.com/jquery/multiple-file-upload/ Ideally, each new file upload field should be validated

[symfony-users] What happened to sfUJSPlugin??

2008-06-29 Thread Jonathan Franks
Some time ago, there was a bit of a buzz on the user list about sfUJSPlugin and I wondered if we were gonna see a move towards a system that separated the markup and the behaviour in symfony 1.1. Well it looks like this isn't gonna happen and sfUJSPlugin development seems to have stopped - It

[symfony-users] Admin generator and components from other modules...

2008-06-24 Thread Jonathan Franks
I'd like to use a plugin to hold some code that I use regularly for uploading images in the admin generator. I know that I can do this with helpers but I'd rather use a component and get the model/view separation. Is there a way to do this?? the ~component syntax in the generator.yml will

[symfony-users] how to implement hierarchical tags?

2008-06-17 Thread Jonathan Franks
I'm thinking to implement a tagging system for a product database that supports a tags hierarchy. So, for instance, a computer could be tagged as intel, and that would then allow the subtags of pentium, core 2 duo, etc. I'm just wondering if anybody has developed something like this and how

[symfony-users] Re: ysfDimensiondsPlugin - APC

2008-06-09 Thread Jonathan Franks
So, do you consider APC to be the de facto optimizer for php?? What is it that makes it better than the others?? Regards, Jonathan On 9 Jun 2008, at 13:14, Dustin Whittle wrote: Jonathan, Yes, it is hard coded in ysfProjectConfiguration, but you can override in the ysfConfigDimension

[symfony-users] off topic: svn gui for OS X

2008-05-02 Thread Jonathan Franks
i'm moving over to OS X and I was wondering what svn gui people recommend?? I've been using tortoiseSVN on my pc. Regards Jonathan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to

[symfony-users] Re: off topic: svn gui for OS X

2008-05-02 Thread Jonathan Franks
I do use svn from the command line, but I prefer a graphical interface for browsing files. Nicolas Perriault wrote: On Fri, May 2, 2008 at 12:42 PM, Jonathan Franks [EMAIL PROTECTED] wrote: i'm moving over to OS X and I was wondering what svn gui people recommend?? I've been using

[symfony-users] Re: off topic: svn gui for OS X

2008-05-02 Thread Jonathan Franks
[EMAIL PROTECTED] wrote: On Fri, May 2, 2008 at 12:42 PM, Jonathan Franks [EMAIL PROTECTED] wrote: i'm moving over to OS X and I was wondering what svn gui people recommend?? I've been using tortoiseSVN on my pc. If you got a bit of time, you can learn using svn through the command

[symfony-users] Re: off topic: svn gui for OS X

2008-05-02 Thread Jonathan Franks
bundle for SVN too. I had forgotten about that. On 5/2/08 8:32 AM, Jonathan Franks [EMAIL PROTECTED] wrote: I use eclipse on the PC but I've heard such good things about TextMate that I'm playing with that at the moment. Thomas Rabaix wrote: Eclipse has a nice svn

[symfony-users] Re: off topic: MYSQL query question

2008-03-27 Thread Jonathan Franks
HAVING instead WHERE. 1. SELECT `stocknumber`, count(`stocknumber`) AS count FROM `holloware_item` HAVING count 1 GROUP BY `stocknumber` or SELECT `stocknumber`, count(`stocknumber`) AS count FROM `holloware_item` where count(`stocknumber`) 1 GROUP BY `stocknumber` Jonathan Franks wrote

[symfony-users] Re: off topic: MYSQL query question

2008-03-27 Thread Jonathan Franks
I got it working by moving the HAVING clause to the end of the query. SELECT `stocknumber`, count(`stocknumber`) AS count FROM `holloware_item` GROUP BY `stocknumber` HAVING count 1 Thanks!!! Jonathan Franks wrote: Thanks for the reply, but neither option works! SELECT

[symfony-users] Re: Routing with and without slashes at the end of the url

2008-01-26 Thread Jonathan Franks
you can use .htaccess to remove trailing slashes from urls. Just google it, there are plenty of examples online Yılmaz Uğurlu wrote: Hi, i am using like this post_detail: url: /blog/:stripped_category_title/detail/:stripped_title/* param: { module: blog, action: detail } and it

[symfony-users] Re: AdminGenerated Many-to-Many Relationships

2007-12-31 Thread Jonathan Franks
Yep, sorry i missed that. I assume that you can do something similar with doctrine but I don't know how. isleshocky77 wrote: I'm thinking that would probably only work with propel, correct? On Dec 30, 6:02 pm, Jonathan Franks [EMAIL PROTECTED] wrote: You can override doSelect in your

[symfony-users] Re: AdminGenerated Many-to-Many Relationships

2007-12-31 Thread Jonathan Franks
Unless this functionality has been added in a recent update, symfony 1 does not have a parameter for this. isleshocky77 wrote: I'm thinking that there should be a parameter or something you can give the admin-generator to do it. On Dec 31, 3:07 am, Jonathan Franks [EMAIL PROTECTED] wrote

[symfony-users] Re: AdminGenerated Many-to-Many Relationships

2007-12-30 Thread Jonathan Franks
You can override doSelect in your peer class: public static function doSelect(Criteria $criteria, $con = null) { // by default order by name /// getOrderByColumns() if(count($criteria-getOrderByColumns()) == 0) {

[symfony-users] Re: International Addresses

2007-12-26 Thread Jonathan Franks
character standard in the US, but other countries include spacing and alpha/numeric characters. Some are more than 5 characters long. Give yourself 20 characters, and validate them for the countries you are familiar with. James On Dec 23, 2007, at 4:23 PM, Jonathan Franks wrote

[symfony-users] International Addresses

2007-12-23 Thread Jonathan Franks
Are there any best practices recommended for collecting international postal addresses and for the database structure to contain them?? It seems to me that this must be something that lots of people have worked on before but I've looked online and I can't find much. If there isn't anything,

[symfony-users] Re: doctrine tasks problem...

2007-12-10 Thread Jonathan Franks
: Check your schema. I think I ran into this problem where the schema was incorrectly defined. Unfortunately, the documentation is not yet as accurate as it needs to be about using schema.yml. You may also need to clear your cache. Charley On Dec 9, 2007, at 5:20 PM, Jonathan Franks

[symfony-users] Re: doctrine tasks problem...

2007-12-10 Thread Jonathan Franks
in recreating the schema for this email. Charley User: tableName: user columns: id: type: integer(4) primary: true autoincrement: true username: type: string(255) password: type: string(255) On Dec 10, 2007, at 2:58 AM, Jonathan Franks

[symfony-users] Re: Call to Arms - lets build the Open Source e-commerce module Symfony needs!

2007-12-01 Thread Jonathan Franks
This seems to be something of recurring interest on the mailing list. Obviously, it will need quite a lot of discussion, especially as we begin. Why don't we create a new google group? That way, we don't clutter the general mailing list with our messages. regards // jonathan

[symfony-users] New symfony site using sfDimensions by amateur coder...

2007-11-19 Thread Jonathan Franks
I just thought i'd post up about my new websites. They're not amazing in any way but as I'm not a coder - I'm actually an antiques dealer - its proof that even total amateurs can make sites with symfony www.ifranks.com www.davidshure.com If you're interested in how I ended up making the

[symfony-users] Re: New symfony site using sfDimensions by amateur coder...

2007-11-19 Thread Jonathan Franks
thanks! Kiril Angov wrote: Great job, Jonathan, not shabby at all for antiques dealer. I am sure many php developers can learn a lot from you. Do not stop writing to the list and helping when you can, right :) Kupo Jonathan Franks wrote: I just thought i'd post up about my new

[symfony-users] Symfony allows multiple urls to the same content...

2007-10-20 Thread Jonathan Franks
I have read often that search engines don't like to find the same content accessible from multiple urls. But I notice that in my application this is happening I have a symfony routing rule to make my homepage index.html As such, I can reach my home page with ... www.mysite.com/

[symfony-users] sfGuard trailing slash problem

2007-10-19 Thread Jonathan Franks
sfGuard is working perfectly for me except for one problem. After log in, it adds a trailing slash to the url... www.mysite.com/backend.php becomes www.mysite.com/backend.php/ This stops the css from loading (and probably any other assets) Am I doing something wrong? // Regards Jonathan

[symfony-users] Re: different configuration between local and live machines

2007-10-13 Thread Jonathan Franks
Thanks Dan. I thought about doing something like you suggested. For instance configuring the prod environment for the live server and creating a local_prod environment for final testing on my local machine. Is that what you mean? I wonder if this method has any inherent problems? Regards

[symfony-users] Re: unexpected sql from criteria...

2007-10-04 Thread Jonathan Franks
= FeedPeer::doSelectFeed($c, null, 'GoAntiquesItem'); Thanks for your help. Kiril Angov wrote: Jonathan Franks wrote: my code... $c = New Criteria; $criterion = $c-getNewCriterion(ItemPeer::PUBLISHED, 1); $criterion-addAnd($c-getNewCriterion(ItemPeer::SOLD, 0)); $c-add

[symfony-users] unexpected sql from criteria...

2007-10-03 Thread Jonathan Franks
my code... $c = New Criteria; $criterion = $c-getNewCriterion(ItemPeer::PUBLISHED, 1); $criterion-addAnd($c-getNewCriterion(ItemPeer::SOLD, 0)); $c-add($criterion); $c-addOr(ItemPeer::GOANTIQUES, 1); $this-items = FeedPeer::doSelectFeed($c, null, 'GoAntiquesItem');

[symfony-users] batch file -- cli environment problem

2007-10-02 Thread Jonathan Franks
So, now I'm trying to use a batch with the environment set to cli. And my settings.yml contains... cli: controller: class: sfConsoleController request: class: sfConsoleRequest response: class: sfConsoleResponse And my settings.yml contains... cli: .settings:

[symfony-users] Re: batch file -- cli environment problem

2007-10-02 Thread Jonathan Franks
addStyleSheet() { return ''; } public function addJavascript() { return ''; } public function sendHttpHeaders() { return ''; } } I'm not sure if it would work in all cases but it works for my script. Regards Jonathan Lukas Kahwe Smith wrote: Jonathan

[symfony-users] Getting the content from an action success....

2007-10-01 Thread Jonathan Franks
Hi, A long time ago I read somewhere on the Symfony site (but I forgot where) about a function to grab the output from an action. So you could write something like this... $content = getOutput('module name', 'action name'); Was I dreaming? if not, can someone remind me of how this is done?

[symfony-users] Re: simple yaml question

2007-09-27 Thread Jonathan Franks
Thanks! that explains that. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to

[symfony-users] Strange Pager Problem...

2007-09-22 Thread Jonathan Franks
I'm having a strange problem with the sfpropelpager. I'm getting the right results but the wrong result count. Using the debug tool bar, I can see the database query that is being made SELECT (various columns) FROM holloware_item, maker, status, holloware_type, material, town WHERE

[symfony-users] __toString is misbehaving on production server...

2007-09-12 Thread Jonathan Franks
__toString works as expected on my local development machine but fails on my production server. It outputs 'object' or 'object id #X' instead of the return value of the toString method. Any advice please?? --~--~-~--~~~---~--~~ You received this message because

[symfony-users] Re: How to debug the production environment...

2007-08-24 Thread Jonathan Franks
I can answer my own question! You have to edit the front controller file (for instance index.php) in the web directory. Jonathan Franks wrote: My app is working in the dev environment but fails in production. I have cleared the cache. All i get is a blank white screen. How do I get more

[symfony-users] How to debug the production environment...

2007-08-24 Thread Jonathan Franks
My app is working in the dev environment but fails in production. I have cleared the cache. All i get is a blank white screen. How do I get more info?? I tried giving prod the same settings as dev in the settings.yml (and cleared the cache) but this still didn't work. Any suggestions

[symfony-users] Re: disable action...

2007-08-17 Thread Jonathan Franks
Jonathan Franks wrote: Thanks for the link, but that seems to allow you to disable all actions of a module. I want to disable some actios but not all. Am I missing something?? Thanks // Jon Kiril Angov wrote: Do not waste your time: http://www.symfony-project.com/book

[symfony-users] Re: Code Snippets section of website is broken for some tags....

2007-08-15 Thread Jonathan Franks
Nope, I wasn't typing a snippet - just viewing. And it only seems to be happening for certain tags, 'propel', 'model', ... halk wrote: This happens when the session expires while you type your snippet. I think this happens too much. The developer should fix it On 15 Aug., 11:29, Jonathan

[symfony-users] Re: disable action...

2007-08-11 Thread Jonathan Franks
%20Configuration Jonathan Franks wrote: I was thinking the same thing, but I just wanted to check that there was a built in solution! Thanks! Will try that now [EMAIL PROTECTED] wrote: what about writing a filter? you can place different parametes in the filter.yml config

[symfony-users] disable action...

2007-08-10 Thread Jonathan Franks
Is it possible to disable an action with the config files, so that a call to that action results in a 404:page not found error? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this

[symfony-users] Best practices for paginated search results....

2007-08-07 Thread Jonathan Franks
This is not really a symfony question but as symfony is all about best practices, I thought I would ask anyway I have a custom search engine which allows the user to search using a number of different criteria. The result set might be large and so i'm using the built in symfony

[symfony-users] Re: AW: [symfony-users] Quick preg match query...

2007-05-05 Thread Jonathan Franks
That works! thanks! joo wrote: Hello, 04.05.2007 â 17:03 Âû ïèñàëè: Thanks! but that didn't work. Here are some examples d1234 e3456b d4n01 basically, I just want to match any string which contains at least one number . The number

[symfony-users] refresh kills page in production environment

2007-05-01 Thread Jonathan Franks
My app is working fine in the dev environment. But in production, it is behaving strangely. If I clear the cache and then view any page, it loads fine. But if I refresh the page, I get a 500 server error. Also, if I click a link to another page I get a 500 server error. If I clear the cache

[symfony-users] Re: sfDimensionsPlugin and CSS location

2007-04-26 Thread Jonathan Franks
And another question... include_partial('global/navigation') looks for... templates/_navigation.php and not templates/DIMENSION/_navigation.php Does sfDimensions deal with this somehow?? I've seen on the forum an include_theme_partial() helper. Maybe I should use this instead??

[symfony-users] building my own plugin.... configuration question...

2007-04-12 Thread Jonathan Franks
I'm trying my first plugin and using sfSimpleBlog as a guide to file arrangement. I noticed that sfSimpleBlog uses a config.php file to add a yml config file to the config cache. I tried to reuse this code but I'm getting the following error... Fatal error: Call to undefined method

[symfony-users] Re: building my own plugin.... configuration question...

2007-04-12 Thread Jonathan Franks
] [mailto:[EMAIL PROTECTED] De la part de Jonathan Franks Envoyé : jeudi 12 avril 2007 12:57 À : [EMAIL PROTECTED] Objet : [symfony-users] building my own plugin configuration question... I'm trying my first plugin and using sfSimpleBlog as a guide to file arrangement. I noticed

[symfony-users] how can I use peer_method with n-n table relationships in admin gen...

2007-04-04 Thread Jonathan Franks
when using one of the admin controls for many to many relationships, how do you sort the list?? I've tried using the peer_method technique but with no success. Thanks // Jonathan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[symfony-users] Re: how can I use peer_method with n-n table relationships in admin gen...

2007-04-04 Thread Jonathan Franks
Thanks, that works perfectly. skr wrote: You can override doSelect in your peer class: public static function doSelect(Criteria $criteria, $con = null) { // by default order by name /// getOrderByColumns()

[symfony-users] Sharing code between applications

2007-04-02 Thread Jonathan Franks
I've just written a very simple image gallery that I want to reuse across multiple applications and possibly domains. I could put the code in the global lib directory as a helper or class but if I do this, I will lose the MVC structure. If I want to keep the nice MVC separation, do I need to

[symfony-users] One Application, Multiple Domains??

2007-04-02 Thread Jonathan Franks
I'm building two very similar websites with an identical data structure. I would like to use templates as shown in the code snippets http://www.symfony-project.com/snippets/snippet/115 and then select the template and set a database flag based on the request domain. Is this best down