[symfony-users] Re: Select multiple cells in a table

2009-05-25 Thread Ian P. Christian
2009/5/25 DEEPAK BHATIA : > I am building an application where i need to selected multiple rows in > a column in a table using mouse then use them for further action. > Look at how the admin generator does it - it does exactly that. -- Blog: http://pookey.co.uk/blog Follow me on twitter: http:

[symfony-users] Re: How to create mysql partitioning table with symfony?

2009-05-24 Thread Ian P. Christian
2009/5/24 chrisyue > I am a newbie in symfony, recently I am studying symfony by the jobeet > tutorials, but I am used to creating partitioning for large table to > improve performance. wish somebody would help me with this question, > thx a lot. No ORM I know can do this. I'd suggest creating a

[symfony-users] functional testing and the dispatcher

2009-05-24 Thread Ian P. Christian
Everytime a new request is made with sfTestFunctional, a new sfEventDispatcher is created. I'm trying to test that an event is fired when certain data is posted. here's the test: $listener = new Listener(); sfContext::getInstance()->getEventDispatcher()->connect('user.register', array($liste

[symfony-users] Re: How to make validator of two fields

2009-05-22 Thread Ian P. Christian
Look at setPostValidator() Example: $this->validatorSchema->setPostValidator( new sfValidatorSchemaCompare('password', sfValidatorSchemaCompare::EQUAL, 'password1', array(), array('invalid' => 'Passwords much match') ) ); 2009/5/22 E2 : > > I am trying to ma

[symfony-users] Re: Doctrine DQL: "where" clause help

2009-05-07 Thread Ian P. Christian
2009/5/7 Mohd Shakir bin Zakaria : > $ symfony doctrine:dql "FROM Message m where('m.id = ?', 1)" Yeah, it's a DQL string, not the API, so you don't use place holders like that 'FROM Message m WHERE m.id = 1' -- Blog: http://pookey.co.uk/blog Follow me on twitter: http://twitter.com/ipchristia

[symfony-users] Re: Taking action on object creation in the admin gen.

2009-05-06 Thread Ian P. Christian
2009/5/5 Ian P. Christian : > I think that the admin gen might benefit from a presave event to hook into. > > I could move my logic into the Domain, but I don't think it belongs > there for my use case. I've solved this for now by adding a preInsert() hook which fires an

[symfony-users] Taking action on object creation in the admin gen.

2009-05-05 Thread Ian P. Christian
I want to call a function when a new object is created though the admin gen. Currently, the admin gen fires a 'admin.save_object' event after saving an object, but there's no way to know after that if an object has just been created, or simply updated. The method processForm() is the responsible

[symfony-users] Security issue fixed in sf1.2 and sf1.3

2009-04-24 Thread Ian P. Christian
A few hours ago, Romain Dorgueil (hartym) fixed a security problem he found in the admin generator (1.2, 1.3) which could cause data loss, or data injection if user did not remove necessary fields in the form class, but did choose some fields for display in generator.yml. The patch is made by the

[symfony-users] Re: London symfony users meeting! 17th April

2009-04-17 Thread Ian P. Christian
Last reminder! meeting in Putney night! 2009/4/3 Ian P. Christian : > Everyone remember, london meeting! > http://www.meetup.com/symfony/calendar/10055154/ Blog: http://pookey.co.uk/blog Follow me on twitter: http://twitter.com/ipchr

[symfony-users] Re: London symfony users meeting! 17th April

2009-04-03 Thread Ian P. Christian
2009/3/29 Hugo HAMON : > > I had a look at Agavi... Is that a framework ? lol Yes :) Everyone remember, london meeting! http://www.meetup.com/symfony/calendar/10055154/ -- Blog: http://pookey.co.uk/blog Follow me on twitter: http://twitter.com/ipchristian --~--~-~--~~~

[symfony-users] Re: London symfony users meeting! 17th April

2009-03-29 Thread Ian P. Christian
incase there was any confusion - this is for developers using symfony, not symfony developers. Hope to see some of you soon! :) 2009/3/28 Ian P. Christian : > see: http://www.meetup.com/symfony/calendar/10055154/ > > I'll be there in a nice red Agavi t-shirt, as shown

[symfony-users] London symfony users meeting! 17th April

2009-03-28 Thread Ian P. Christian
see: http://www.meetup.com/symfony/calendar/10055154/ I'll be there in a nice red Agavi t-shirt, as shown here: http://twinkle.tapulous.com/index.php?hash=30853425533377206107cd53b3e90deb238fd0b7 -- Blog: http://pookey.co.uk/blog Follow me on twitter: http://twitter.com/ipchristian --~--~

[symfony-users] Re: Why should I write queries like this?

2009-03-26 Thread Ian P. Christian
2009/3/26 Benjamin : > > This question may be unrelated to symfony, and more related to > database abstraction, but I'm wondering why I should pull the table > names from the model.  I've been programming for a long time and have > never seen anyone need to use dyamic table names except when they

[symfony-users] Re: http not working

2009-03-25 Thread Ian P. Christian
2009/3/25 Tom Castonzo : > > This can be caused by the server logs being full. For example, on apache, > there are logs for http and also logs for https and that would explain your > problem. You can also do a port scan to make sure port 80 (http) is open > Port scanning your own machine? Crazy

[symfony-users] Re: SfWidgetFormDoctrineChoice - how do you filter values

2009-03-24 Thread Ian P. Christian
2009/3/24 fredlab : > Thanks for the answers but even with the source code, I can't see how > to do it. > > What do you mean by table-method ? What is the difference between it > and the query option that is also available ? don't set a query option. instead, set a table_method - for example 'get

[symfony-users] Re: constructor in symfony

2009-03-24 Thread Ian P. Christian
2009/3/24 dziobacz : > > So in symfony doesn't exist normal constructor ? Define normal? It is normal, it just has parameters - this is standard OOP. If you want to override a constructor from a base class, you'll need to call it's parent with the params it requires. Check the API docs for sfAc

[symfony-users] Re: SfWidgetFormDoctrineChoice - how do you filter values

2009-03-24 Thread Ian P. Christian
2009/3/24 fredlab : > > Hey, > > Imagine I have the following : > > $w = new sfWidgetFormDoctrineChoice(array( >  'model'     => 'Codetype', >  'add_empty' => false, > )); >From the source: 71 public function getChoices() 72 { 73 $choices = array(); 74 if (false !== $this->getOpt

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

2009-01-27 Thread Ian P. Christian
2009/1/27 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? Hi Jon! I could indeed do what you suggest, or create my own admin gen template that does it.

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

2009-01-27 Thread Ian P. Christian
2009/1/27 Lupu Alexandru-Emil : > hi! > this is my method for auto complete Sorry, should have mentioned - I'm talking about symfony 1.2, so this suggestion won't work :) The filter form allows you to populate input via GET params, I must be missing something obvious here... Thanks anyway, Ian

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

2009-01-27 Thread Ian P. Christian
I've been looking though the code, and I can't see a way to do this. I'm almost certain I must be missing something though, as it seems odd that it's not possible with the admin gen. I'm trying to link to the 'new' action providing a value, for example, linking to something like this: .../mail_d

[symfony-users] Re: What is Base64 encoding?

2008-12-17 Thread Ian P. Christian
2008/12/17 Samir van de Sand : > Hello everybody, > > I recently noticed a function called base64_encode. Eg. the Symfony cookbook > tutorial about cookies recommends encoding cookie contents with base64: > http://www.symfony-project.org/cookbook/1_2/en/cookie > However I still haven't understood

[symfony-users] Re: regarding curl

2008-07-18 Thread Ian P. Christian
Sumedh wrote: > But when we make the cURL call from that class, it doesn't work...any > clues? Sounds a bit unlikely, are you sure you're reading the symptoms correctly? > Secondly, functions like logMessage() don't work in that class...what > class we need to extend to use general purpose symf

[symfony-users] Re: How to show a custom sfException page in _prod?

2008-07-17 Thread Ian P. Christian
Andrew Backer wrote: > I've been searchin, but I can't figure this one out :( > > How do I set up symfony to display a custom page an sfException is > thrown, and the app is in production mode? It works just fine if I use > _dev instead of prod, but I would like to trap these as well. Right now >

[symfony-users] Re: symfony for web designers

2008-07-16 Thread Ian P. Christian
alessandro cinelli wrote: > On Wed, Jul 16, 2008 at 10:08 AM, Paulo Magalhaes wrote: > Hi, > > I'm looking for some slides, documentation, etc on introducing Symfony > from a web designer perspective > > Not too technical, keeping PHP to the bare essential. > http://www.symfo

[symfony-users] Re: sfCompatPlugin and symfony 1.2

2008-07-14 Thread Ian P. Christian
Jonathan Franks wrote: > Ok, so the plugin will be removed from the core but made available in > the plugin repo. Thats good news. Obviously I want to move my projects > over to the new form system ASAP but in reality this will probably > take some time and the plugin helps me through this process

[symfony-users] Re: sfCompatPlugin and symfony 1.2

2008-07-14 Thread Ian P. Christian
Jonathan Franks wrote: > I notice that the roadmap for symfony 1.2 includes this > >> Dustin Whittle: Removal of the 1.0 compatibility plugin >> (sfCompatPlugin) > > > does this mean that forms based on the symfony 1 system will no longer > work with 1.2?? I believe this to be the case, howe

[symfony-users] Re: symfony 1,0 output scaping sf_request....

2008-07-14 Thread Ian P. Christian
[EMAIL PROTECTED] wrote: > $sf_data ['sf_request'] -> getParameter ('email'); > > but im sure that i'm missing the point since that's an unscaped > version. > Are you sure it's unescaped? Can you give an example of the output you're seeing and what you're expecting? > I did that to: > > $s

[symfony-users] Re: symfony 1,0 output scaping sf_request....

2008-07-14 Thread Ian P. Christian
[EMAIL PROTECTED] wrote: > Hello, > > I put this in my settings.yml > > escaping_strategy: on > escaping_method:ESC_ENTITIES > > > > But I can't access sf_request (to repopulate a form) in my > templates Did I miss something? > $sf_data['sf_request']; try doing

[symfony-users] Re: developers wanted for phorum integration

2008-07-12 Thread Ian P. Christian
Ian P. Christian wrote: > Ian P. Christian wrote: > >> I'm working on integrating phorum into symfony , using sfGuard for >> authentication. >> >> > If you want to play, now it's in SVN - not in the official repos yet as > it might ne

[symfony-users] Re: developers wanted for phorum integration

2008-07-11 Thread Ian P. Christian
Ian P. Christian wrote: > I'm working on integrating phorum into symfony , using sfGuard for > authentication. > If you want to play, now it's in SVN - not in the official repos yet as it might never get finished ;) http://svn.two-pebbles

[symfony-users] developers wanted for phorum integration

2008-07-11 Thread Ian P. Christian
I'm working on integrating phorum into symfony , using sfGuard for authentication. I've made reasonable progress so far: http://garden.pookey.co.uk/frontend_dev.php/forum It would be nice to have some help. Please email me off list if interested in helping, please do NOT email me if you're

[symfony-users] Re: London meetup

2008-07-02 Thread Ian P. Christian
Ian P. Christian wrote: > > Well, I've not set a date - when are you back? > > Date set... for tomorrow! A collection of symfony developers are meeting at the PHPLondon meeting tomorrow - where I will also be giving a talk on doctrine. Details here: http://www.p

[symfony-users] Re: Location of symfony developers

2008-06-18 Thread Ian P. Christian
Brian Hoke wrote: > Some kind of Google maps mashup, with easy post-where-i-am > functionality, perhaps? I agree with Tom - I'd love to see if there > are folks near us. > > ~ symfonians.net might do it? if not... Nicolas, there's an idea for you :) --~--~-~--~~~-

[symfony-users] Re: London meetup

2008-06-18 Thread Ian P. Christian
Lee Bolding wrote: > Normally, I would - but I'll be rallying across Africa :) > > Well, I've not set a date - when are you back? BTW - Love the cow car on that site ;) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[symfony-users] Re: London meetup

2008-06-18 Thread Ian P. Christian
Ian P. Christian wrote: > Anyone interested at a casual meet up in London some time in the next 4 > weeks? > Don't all shout at once ;) So far the count is at 4 would be nice to have a few more! --~--~-~--~~~---~--~~ You received this messa

[symfony-users] London meetup

2008-06-17 Thread Ian P. Christian
Anyone interested at a casual meet up in London some time in the next 4 weeks? Mail me off list. --~--~-~--~~~---~--~~ 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] Re: Website uptime

2008-06-04 Thread Ian P. Christian
Daevid Vincent wrote: > > Seriously, just install Nagios http://www.nagios.org on a few servers > that point at each other and don’t waste your time with these “free > services” – you get what you pay for. (well, Nagios is free too, but > in a FOSS way, not a crappy-service way) > I concur - I

[symfony-users] Re: Uploading files in symfony 1.1

2008-05-09 Thread Ian P. Christian
Fabien POTENCIER wrote: > As of r8883, symfony throws an exception if you try to bind a multipart > form without a files argument. > Fantastic - thanks :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfo

[symfony-users] Re: What does '=&' mean?

2008-05-07 Thread Ian P. Christian
Tom Haskins-Vaughan wrote: > I have this line in my SwiftMailer batch script: > > $message =& new Swift_Message($subject, $body); > Nothing under PHP5. Basically it forces assign by reference, rather then copying the whole object- but that's default under PHP5 --~--~-~--~~--

[symfony-users] Re: Uploading files in symfony 1.1

2008-05-07 Thread Ian P. Christian
Fabien POTENCIER wrote: > When binding the form, you have to pass the files specifically: > > $this->form->bind($request->getParameter('photoform'), > $request->getFiles('photoform')); > This isn't the first, or even second time I've seen this question, it's been on IRC a couple of times too

[symfony-users] Re: Standalone PHP script

2008-04-30 Thread Ian P. Christian
Jacob Coby wrote: > Batch files (and symfony init-batch): and Tasks in sf1.1 :) --~--~-~--~~~---~--~~ 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

[symfony-users] Re: SO: Documentation about new Symfony 1.1 Features

2008-04-29 Thread Ian P. Christian
Fabian Lange wrote: > Hey, > you might want to take a look at: > http://www.symfony-project.org/blog/2008/03/25/symfony-1-1-beta-2-released-w > hat-s-new > a quite compact listing of all major changes from 1.0 to 1.1 > Of course, there's the UPGRADE doc too --~--~-~--~~--

[symfony-users] timezones

2008-04-24 Thread Ian P. Christian
Hi all, Forgive me for what might be a stupid question - but... I don't have much i18n knowledge :) We store all times in UTC in our database, but we need to dipslay times in a users timezone - pretty basic stuff I think - that's what the DateHelper is for However, I'm a bit puzzled as t

[symfony-users] Re: Does sfDoctrine support multiple databases opened simultaneously?

2008-04-23 Thread Ian P. Christian
Gloria W wrote: > This isn't working out as cleanly as you've stated. Is this a bug, or > am I missing something? > > I've never build my schema.yml from a database - I think doing so is a little backwards, especialy considering the model cuodl potentially differ from the underlying database

[symfony-users] Re: sfGuardPlugin

2008-04-23 Thread Ian P. Christian
Haris Zukanović wrote: > Hi ppl, > > We use symfony 1.0 I wanted to try out the sfGuardPlugin. > Does sfGuardPlugin rely on credentials that are written in yml files ? > rely in what sense? It allows you to use secury.yml, yes - sfGuard uses the standard symfony credentials. > Does it work wi

[symfony-users] Re: sfThumbnailPlugin

2008-04-23 Thread Ian P. Christian
CX wrote: > correct! > > THANK YOU Ian, :) > > No problem - welcome to the community btw - hopefully the support you've had here proves you should be using symfony, not cake ;) I have just committed a 'fix' in r8609 [1] that improves the error message when an invalid filename is passed. I

[symfony-users] Re: sfThumbnailPlugin

2008-04-23 Thread Ian P. Christian
s what you have $thumbnail->loadFile('/'. sfConfig::get('sf_upload_dir') .'/ photos/'. $agenda->getPhoto()); ^ that's what you should try instead. I removed the _name from the sfConfig::get() call. That's it - I hope! > On Apr 23, 11:56 am,

[symfony-users] Re: sfThumbnailPlugin

2008-04-23 Thread Ian P. Christian
CX wrote: > this is my code at a partial template > > $thumbnail = new sfThumbnail(1500, 100, true, true, 75, > 'sfGDAdapter'); > $thumbnail->loadFile('/'. sfConfig::get('sf_upload_dir_name') .'/ > photos/'. $agenda->getPhoto()); > $thumbnail->save('/'. sfConfig::get('sf_upload_

[symfony-users] Re: sfThumbnailPlugin

2008-04-23 Thread Ian P. Christian
CX wrote: > thanks for your replies guys. > > the file is a valid picture, i tested it with the whole path '/var/ > www//image.jpg' and it didn't wor either. > > :( > > ps: i don't know how to open a ticketcan anyone tell me? > http://trac.symfony-project.com/ - you'll need to registe

[symfony-users] Re: sfThumbnailPlugin

2008-04-23 Thread Ian P. Christian
Thomas Rabaix wrote: > Is your file a valid picture ? > Regardless of the outcome of this problem - this shoudl be considered a bug in the library. The exceptino is too vague and hides the real error - I suggest a ticket is created, assign it to me if you like, I don't know who maintains

[symfony-users] Re: sfThumbnailPlugin

2008-04-23 Thread Ian P. Christian
CX wrote: > phpinfo data: > gd > GD Supportenabled Modify the plugin on the lines I showed, remove the @ sign so you can see the real error. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group

[symfony-users] Re: Propel13 and sf1.0

2008-04-23 Thread Ian P. Christian
Kiril Angov wrote: > Here is it even 3AM and I am late with a project otherwise I would > have taken a look at the problem. Make sure you have sfPropel13Plugin > from SVN and your phing in lib/vendor and try again. I do indeed have the latest SVN of sfPropel13Plugin - previous versions worked -

[symfony-users] Re: sfThumbnailPlugin

2008-04-22 Thread Ian P. Christian
plugins/sfThumbnailPlugin/lib/sfGDAdapter.class.php 80 public function loadFile($thumbnail, $image) 81 { 82 $imgData = @GetImageSize($image); 83 84 if (!$imgData) 85 { 86 throw new Exception(sprintf('Could not load image %s', $image)); 87 } This suggest

[symfony-users] Propel13 and sf1.0

2008-04-22 Thread Ian P. Christian
Hi all, Has anyone managed to get the current version of propel1.3 working ? I've discovered a couple of issues and thought i'd quickly mail the list just in case I was re-inventing the wheel. Firstly, the latest propel1.3 uses a newer version of phing then symfony 1.0.13 provides. I fixed t

[symfony-users] Re: Accesing sfActions method from sfAction class

2008-04-20 Thread Ian P. Christian
Mohammad Ali Safari wrote: > I had a bunch of method in one of my modules and, as the number of > actions increased, I decided to move some action into separate sfAction > files. I've thought about this before. One option would be to have a BaseXxxAction where Xxx is your module name, then

[symfony-users] Re: sfPropel13 bug?

2008-04-16 Thread Ian P. Christian
Kiril Angov wrote: > I think you are right that there is a problem, but it should be > reported to the Propel guys rather than here. Ah well - the reason I didn't is because in propels SVN trunk, BasePeer class doesn't even have a doCount() method, so I'm not too sure if it's a symfony thing or

[symfony-users] sfPropel13 bug?

2008-04-16 Thread Ian P. Christian
Please keep in mind, I don't use propel anymore, and haven't for years, so I'm almost at n00b level I guess ;) I've been told to fix a problem in a website using it however, so I've had to get the hands a little dirty This code: $c = new Criteria(); //pager $pager = new sfPrope

[symfony-users] Re: symfony cc problem

2008-04-11 Thread Ian P. Christian
Joe Kelsey wrote: > I have a symfony project with three apps: sales, tracking and admin. > I have been working on it for a while, and I thought that something to > do before I start releasing it is to clear the cache. I tried: > > symfony cc > PHP Fatal error: Class '\adminConfiguration' not fou

[symfony-users] Re: sfValidatorAnd

2008-04-10 Thread Ian P. Christian
Dmitry Nesteruk wrote: > I have following code > > $validatorMobilePhone = new sfValidatorAnd( Dunno if this helps, but... sfValidatorAnd has a 2nd param that is the optoins, which most use as the 1st param.. 39 public function __construct($validators = null, $options = array(), $m

[symfony-users] Re: Symfony + Propel + Multiple Schemas

2008-04-10 Thread Ian P. Christian
Ryan G wrote: > Reynier - I agree with you - this is exactly my situation too. As far > as I'm aware Doctrine also does not support this yet. There is a > ticket for this issue: http://trac.phpdoctrine.org/ticket/594, and > heres Propels: http://propel.phpdb.org/trac/ticket/460 ... Apparently > no

[symfony-users] Re: Regarding Url

2008-04-04 Thread Ian P. Christian
manish wrote: > what is the default parameter in url_for . true or false? False. --~--~-~--~~~---~--~~ 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

[symfony-users] Re: sfAlternativeSchemaPlugin broken on Windows?

2008-04-03 Thread Ian P. Christian
Lee Bolding wrote: > I'm guessing that it's something to do with hardcoded /'s in paths or maybe 2 /'s in a row - took me ages to figure that out when deploying onto a windows machine once actaully, maybe a co-worker figured it out... either way, annoying :) define(SOMETHING, dirname(__

[symfony-users] Re: sfAlternativeSchemaPlugin broken on Windows?

2008-04-03 Thread Ian P. Christian
Lee Bolding wrote: > I'm guessing that it's something to do with hardcoded /'s in paths or maybe 2 /'s in a row - took me ages to figure that out when deploying onto a windows machine once actaully, maybe a co-worker figured it out... either way, annoying :) define(SOMETHING, dirname(__

[symfony-users] Re: Custom Escaping Method

2008-04-03 Thread Ian P. Christian
Alex wrote: > Hello, > > I would like to use my own class for escaping output. > > escaping_method: ESC_ENTITIES # Function or helper used for > escaping. Accepted values: ESC_RAW, ESC_ENTITIES, ESC_JS, > ESC_JS_NO_ENTITIES. Unforunatly, you can't - atleast not in sf1.0 (I've not checked sf

[symfony-users] Re: accessing template output from within an action

2008-04-02 Thread Ian P. Christian
Richtermeister wrote: > Hi Ian, > > thanks for the prompt response.. > > I don't insist on my approach, I just don't know any better :) > I haven't come accross XSLT templates, but now I'm intrigued.. where > can I find more about that? > Well, to generate XML, you should never use echo/print e

[symfony-users] Re: accessing template output from within an action

2008-04-02 Thread Ian P. Christian
Richtermeister wrote: > Hi all, > > I'm trying to tie a shipping live-lookup API into my application via > XML, and I was wondering how I'd best go about generating that XML to > be sent out via curl.. > You should be using XSLT templates, with XML data, NOT sfView for generating XML. But,

[symfony-users] Re: a mixing for all get*

2008-04-02 Thread Ian P. Christian
hutchic wrote: > If I had access to aspect programming I'd be in the zone > unfortunately. > > Wondering off topic a tiny bit. Have you used/seen http://phpaspect.org/ ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[symfony-users] Re: Fwd: login & logout tutorial

2008-04-02 Thread Ian P. Christian
mohammad nikna wrote: > hi > i need tutorial about login and logout Please see the manual (security section), and the askeet turtorial. Also, have a look at sfGuard plugin. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

[symfony-users] Re: How stable are the javascript/ajax functions

2008-04-01 Thread Ian P. Christian
Tom Haskins-Vaughan wrote: > Hi, > > I've just been reading chapter 11 of The Book ("Ajax Integration") and > I have to say I am pretty excited. I don't relish the thought of > tweaking endlessly with Javascript to get basic functionality working > across browsers. > I don't use them. Person

[symfony-users] Re: Problem when building model

2008-04-01 Thread Ian P. Christian
Yohan 'rouKs' G. wrote: > I have the following problem when I make a symfony propel-build- > model : > > Fatal error: Declaration of UnixFileSystem::getBooleanAttributes() > must be compatible with that of FileSystem::getBooleanAttributes() in / > usr > /share/php/symfony11/1.1/lib/plugins/sfPrope

[symfony-users] Re: partial cache

2008-04-01 Thread Ian P. Christian
kusum wrote: > i enabled partial caching cache.yml file .how i can check that is > working properly > Personally, I edit settings.yml to enabled caching in dev, and then you get pretty boxes around cached areas. --~--~-~--~~~---~--~~ You received this messag

[symfony-users] Re: Symfony 1.1 and sfMail

2008-04-01 Thread Ian P. Christian
[EMAIL PROTECTED] wrote: > How I can use send mail functionality like sfMail in the symfony 1.1? > I know if set compat_10: on in the settings I can use sfMail, but as > far as I know this setting uses for compatible old versions symfony > with symfony 1.1, am I right? I developing new project on

[symfony-users] Re: Retain internal value after forward()

2008-04-01 Thread Ian P. Christian
Kasper G wrote: > On 31 Mar., 22:09, "Mohammad Ali Safari"<[EMAIL PROTECTED]> > wrote: > >> You probably want to use flash >> instead:http://www.symfony-project.org/book/1_0/06-Inside-the-Controller-Laye... >> >> > > Using flash is essentially storing the value in the session with the >

[symfony-users] Re: Getting querystring keys....

2008-04-01 Thread Ian P. Christian
James wrote: > I am trying to figure out if there's a way to get a list of query > string keys but looking through the docs I am at a loss. > > you can get all request params by doing... $this->getRequest()->getParameterHolder()->getAll(); - or somethign very similar to that - check API docs

[symfony-users] Re: doselectRS questions

2008-03-30 Thread Ian P. Christian
Charley Tiggs wrote: > Ian, > > If you're not using propel and you're not using Doctrine... What are you > using, if I may ask? Internally developed solution - we intend to release it when we have enough time :) --~--~-~--~~~---~--~~ You received this message

[symfony-users] Re: doselectRS questions

2008-03-28 Thread Ian P. Christian
[EMAIL PROTECTED] wrote: > The second method returns an object, and I need the array. I don't use propel anymore, but just some advice... Try to remove as many lines as possible from your problem before reporting it - there's a lot of stuff going on in your pastes, and I wonder if 90% of it c

[symfony-users] Re: session collisions

2008-03-28 Thread Ian P. Christian
hutchic wrote: > We've recently moved to a multi-webhost multi-database setup. > > However now the session table keeps having collisions > You need to use transactions and read a little about concurrency issues I think :) the default database session backend doesn't do locking, and you're

[symfony-users] Re: persistent:true (DB connection pooling)

2008-03-28 Thread Ian P. Christian
Fabian Lange wrote: > Hi Sumedh, > unfortunately PHP is not there yet with regards things like resource > pooling. Its PHP what limits it more than the capabilities of mysql. > Yes it can improve performance for you to use persistent connections, but > the mechanism isn't that sophisticated as in

[symfony-users] Re: sfGuard forgotten password functionality

2008-03-26 Thread Ian P. Christian
This might be useful: http://pookey.co.uk/blog/archives/40-Stateless-password-reset-system.html --~--~-~--~~~---~--~~ 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: Doctrine Admin Generator

2008-03-24 Thread Ian P. Christian
Usman wrote: > Hi all > i am using symfony 1.1 (beta)with Doctrine as ORM but for admin > generator its not working . "doctrinie-init-admin" command throws an > error > Fatal error: Call to a member function mirror() on a non-object in C: > \wamp\www\yigg\plugins\sfDoctrinePlugin\lib\task > \sfDoc

[symfony-users] Re: Symfony CMSes

2008-03-24 Thread Ian P. Christian
cleve wrote: > Thanks Ian, > > That's really useful. > > Any luck with sfDynamicCMS plugin? I see sylvio has released a new > version this morning. I'll be giving Sylvio SSH access on Tuesday to get it working - that one does look rather interesting :) There's also http://www6.pookey.co.uk/f

[symfony-users] Re: functional testing in sf1.1

2008-03-10 Thread Ian P. Christian
Ian P. Christian wrote: > Hi all, > > How do you people go about functional testing on your forms in sf1.1, > when by default forms result a CSRF token? > > I imagine there's an easy way that I'm currently oblivious to :) > > Thanks, > For the output be

[symfony-users] functional testing in sf1.1

2008-03-10 Thread Ian P. Christian
Hi all, How do you people go about functional testing on your forms in sf1.1, when by default forms result a CSRF token? I imagine there's an easy way that I'm currently oblivious to :) Thanks, -- Ian P. Christian ~ http://po

[symfony-users] Re: "Smart" Routing Rules?

2008-03-07 Thread Ian P. Christian
In sf1.1 , you cuold listen to an event (forget whihc one, look at the wiki) to inject your own routing rules during application config you could add a route for each module there, there really ideal though, but it would work. -- Ian

[symfony-users] Re: Shouldn't this group be moderated? To avoid porn?

2008-03-07 Thread Ian P. Christian
will take the required steps. The list gets a spam here or there, it's not a huge problem though, at the moment it's pretty easy to just delete them ;) -- Ian P. Christian ~ http://pookey.co.uk --~--~-~--~~~---~--~~ You received this message because yo

[symfony-users] Re: Symfony 1.1 - Conditional validator

2008-03-05 Thread Ian P. Christian
Joao wrote: > Hello, > > This seams to be a recurring need, validate a field only if another > field has some value. > Does symfony 1.1 has any validator that allows to do this ? > This is someting you'd ned to do with a postValidator, as they are provided with the full array of fields... I don

[symfony-users] Re: sfUser in Model

2008-03-05 Thread Ian P. Christian
will help de-couple your model from the framework itself. Also, it means that this code it reusable for any other objects that implement the IMyUser interface, you could make your User model implement it for example... -- Ian P. Christian ~ http://poo

[symfony-users] Re: Putting forms in session

2008-03-04 Thread Ian P. Christian
validate, therefore improving livliness, and reducing server load. -- Ian P. Christian ~ http://pookey.co.uk --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group

[symfony-users] Re: Session performance

2008-03-03 Thread Ian P. Christian
Nicolas Perriault wrote: > Yes, I guess, but shit happens ^_^ > If ever you do test - left us know :D -- Ian P. Christian ~ http://pookey.co.uk --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "sy

[symfony-users] Re: Session performance

2008-03-03 Thread Ian P. Christian
Nicolas Perriault wrote: > On Mon, Mar 3, 2008 at 11:56 AM, Ian P. Christian <[EMAIL PROTECTED]> wrote: > >> there's overhead in connecting to a memcache server > > Interesting. Do you have any pointer on this ? I thought memcache was > the fastest solution

[symfony-users] Re: Putting forms in session

2008-03-03 Thread Ian P. Christian
Sumedh wrote: > And BTW, I wanted to thank Lee and Christian... :) Or Lee and Ian perhaps? ;) -- Ian P. Christian ~ http://pookey.co.uk --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users&qu

[symfony-users] Re: Putting forms in session

2008-03-03 Thread Ian P. Christian
re quite different beasts. I think the concept of storing forms in a session is foreign to symfony devs, and as I've never worked with JSP - I'm not sure why you want to do it. Can you expand on this? -- Ian P. Christian ~ http://pookey.co.uk --~--~-~--~~~-

[symfony-users] Re: E-commerce frameworks

2008-03-03 Thread Ian P. Christian
floating about regarding getting Zen Cart to integrate with symfony - but I know nothing about that really :) Dunno if that helps... -- Ian P. Christian ~ http://pookey.co.uk --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goog

[symfony-users] Re: Session performance

2008-03-03 Thread Ian P. Christian
plication is already connected to a database, and not a memcache server, perhaps just using the database is better. So, short answer, I don't know - but there's food for thought at least :) -- Ian P. Christian ~ http://pookey.co.uk --~--~-~--~~~---~--

[symfony-users] Re: Session performance

2008-03-03 Thread Ian P. Christian
at over cookies (as doing that requires data to be sent forwards and backwards). -- Ian P. Christian ~ http://pookey.co.uk --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post t

[symfony-users] Re: use_helper('Javascript') display no javascript, anybody knows why ?

2008-03-02 Thread Ian P. Christian
Marcelo wrote: > So, it is not normal ? > When use a helper the javascript MUST appear ? This is a bit of a guess, because yu're a bit vague But maybe you're using javascript_tag, but not 'echo javascrit_tag(...)'; --~--~-~--~~~---~--~~ You received this mes

[symfony-users] Re: form validation <--> model validation

2008-03-02 Thread Ian P. Christian
Thomas Rabaix wrote: > The original propel project handle validation at the Model level. This > feature has not been kept on symfony, don't know why ... Firstly, please don't cross post! :) Secondly, whilst I don't know why it was not done this way - but validating things in the model doesn't a

[symfony-users] Re: Credentials for fields and validation

2008-03-02 Thread Ian P. Christian
Haris Zukanovic' wrote: > I think that action is never reached when there are validation errors. > There may be other places where to insert such a hack :) handleError function. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goog

[symfony-users] Re: sfRegexValidator help

2008-03-02 Thread Ian P. Christian
munim wrote: > Hi > I am using the sfRegexValidator for form validation. The problem is, I > don't know the perl syntax for regular expressions. You'll need to anchor your regex for it to be useful in form validation usually. I advise the O'reilly book on regexs if you need more knowledge on th

[symfony-users] Re: i18n.yml: What are [T] and [/T] for?

2008-03-02 Thread Ian P. Christian
Takaaki Kato wrote: > Hi, > > I don't have the slightest idea how to use these. Any suggestion would > be appreciated. You don't 'use' them they are there so you can see untranslated strings. --~--~-~--~~~---~--~~ You received this message because you are

  1   2   3   >