[symfony-users] Re: Symfony on shared host

2009-01-06 Thread Yevgeniy A. Viktorov
The questions you asking going out of subject("Development on shared host" would fit much better) and you probably might be interested to look for some deployment approaches. Anyway there is nothing stop you from development on shared hosting without shell, take a look into sources of: http://ww

[symfony-users] Re: Login redirection trick?

2009-01-06 Thread Lee Bolding
On 6 Jan 2009, at 20:59, Sid Bachtiar wrote: > Hmm, it is only a login form. Symfony actually has good built in > security functionalities even without sfGuardPlugin. Well, its got SOME security functionality. I wouldn't call it "good". sfGuard appears to be the accepted standard with Symfony,

[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 pl

[symfony-users] Re: Login redirection trick?

2009-01-06 Thread Sid Bachtiar
Hmm, it is only a login form. Symfony actually has good built in security functionalities even without sfGuardPlugin. 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 have implemented the auto redirection

[symfony-users] Re: Login redirection trick?

2009-01-06 Thread Sid Bachtiar
This is what I've implemented at the moment in Symfony. I was just wondering if Symfony has a built in trick to do this since this is very common. On Wed, Jan 7, 2009 at 2:54 AM, Steve Browett wrote: > The way I usually handle this sort of thing (outside of symfony) is to store > the $_SERVER['R

[symfony-users] Re: Validating rich text?

2009-01-06 Thread Brian Racer
I don't know of any validator included with symfony that does that, but it wouldn't be hard to create your own in conjunction with the HTML Purifier . *Brian Racer * Lead Developer JetPack Web Development, LLC (715) 834-3349 office br...@jetpackweb.com

[symfony-users] Re: Setting the label for fields inside a i18n embedded form

2009-01-06 Thread fredlab
If you are using 1.2 you need to use the setlabel option. It seems it is the best way. --~--~-~--~~~---~--~~ 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@googlegr

[symfony-users] Re: new-to-me oop concepts in symfony

2009-01-06 Thread Fabian Lange
Hello, getParameterHolder() returns an object (an instance of sfParameterHolder) Of course you can call methods on the object returned. Here get() or set(). This pattern is called method chaining, and for some people it is good style, for others its bad style. I think it is fine for many short case

[symfony-users] new-to-me oop concepts in symfony

2009-01-06 Thread blue92877
I'm relatively new to PHP and newer still to OOP concepts. I'm coming across semantics such as this: $request->getParameterHolder()->set('foo', 'bar'); echo $request->getParameterHolder()->get('foo'); I'm familiar with $this->var or $this-> function but what does the above mean? A method set()

[symfony-users] Symfony CLI out of memory error??

2009-01-06 Thread cnlklin...@gmail.com
Greetings everyone, I am trying to deploy my Symfony project to a shared host and I'm getting the following error when I try to do a "symfony propel-build- all" from the command line: PHP Fatal error: Out of memory (allocated 3407872) (tried to allocate 7680 bytes) in /home/obol/ocmp-build/lib/

[symfony-users] Setting the label for fields inside a i18n embedded form

2009-01-06 Thread jukea
Hi, Is there a way to modify the labels of a i18n embedded form (Ideally, by using directly the generator.yml file)? ex : DB: my_fieldname1 : VARCHAR my_fieldname2 : VARCHAR FORM : English: my_customized_fieldname1 [ ] my_customized_fieldname2 [ ] French:

[symfony-users] Re: Using Doctrine in a task

2009-01-06 Thread Jonathan Wage
The generated task uses a connection name of propel. You will need to modify it to be the name of your connection. - Jon On Tue, Jan 6, 2009 at 12:51 PM, Jeremy Benoist wrote: > > Hi Tom, > > When I create a task, I always add thoses lines at the beginning of > execute function to get the doctri

[symfony-users] Re: Using Doctrine in a task

2009-01-06 Thread Jeremy Benoist
Hi Tom, When I create a task, I always add thoses lines at the beginning of execute function to get the doctrine connection : // initialize the database connection ($application, $env and $debug come from $options) $configuration = ProjectConfiguration::getApplicationConfiguration ($application,

[symfony-users] Using Doctrine in a task

2009-01-06 Thread Tom Boutell
I'm writing Symfony 1.2 tasks that use Doctrine. Doctrine is the only database present in the project, but the default database is still somehow Propel, resulting in a "Database 'propel' does not exist" error. I opened a case on it, check it for details before nitpicking my configuration (: http:

[symfony-users] Re: symfony sandbox 1.2 without PDO support

2009-01-06 Thread Pablo Godel
Change hosting provider!!! Not offering PDO support with PHP is very lame. Pablo On Wed, Dec 24, 2008 at 10:01 AM, Ant Cunningham wrote: > > Use the 1.2 branch of sfpropelPlugin > http://svn.symfony-project.com/plugins/sfPropelPlugin/branches/1.2 > > Install that in the plugins dir of your pro

[symfony-users] Re: Is possible to work with alphanumeric primary key with admin generator?

2009-01-06 Thread halfer
If you are cross-posting, please include the link to your other post (s), so people can check for duplication of effort before replying: http://www.symfony-project.org/forum/index.php/t/18025/ --~--~-~--~~~---~--~~ You received this message because you are subscrib

[symfony-users] Re: Symfony on shared host

2009-01-06 Thread Pablo Godel
Creating the model on a production server is not a good idea, does not matter if it is shared, vps, dedicated. You should do all of these tasks on a development server where you can test everything and if you break something, you can fix it without taking down the site. Once you have everything wo

[symfony-users] Re: jobeet tutorial in pdf

2009-01-06 Thread halfer
Could anyone wanting to participate in this idea post a message on the forum, to avoid duplication of effort. An English PDF has already been created for Jobeet, but as per my comments there, some improvements could be made: http://www.symfony-project.org/forum/index.php/m/69139/ --~--~-~

[symfony-users] Re: a question about smarty plugin

2009-01-06 Thread Pavel
initialize sf_smarty_helpers with something On Jan 5, 9:46 am, Asif wrote: >  i have installed the symfony version 1.2.1 on my server and also > Smarty Plugin --release=0.2.3 for symfony but it is not working... i m > facing some errors like "it is not able to load helper.php " from > almost 10

[symfony-users] Re: Login redirection trick?

2009-01-06 Thread Steve Browett
The way I usually handle this sort of thing (outside of symfony) is to store the $_SERVER['REQUEST_URI'] in the user session somewhere, so when they log in you can automatically redirect them there. Do this as soon as you decide the user needs to log in and delete it when they have logged in. I hav

[symfony-users] Is possible to work with alphanumeric primary key with admin generator?

2009-01-06 Thread Daniele
Hello everyone. Can you use as the primary key of a class/table a field of type varchar, with symfony? I can we imagine yes, but how to set generator.yml and/or routing.yml to support primary key that are alphanumeric characters? Example: # config/schema.yml connection: propel classes: Person

[symfony-users] Re: Synfony with smarty

2009-01-06 Thread Pavel
Guys, This is problem is due to a bug when no smarty helpers are loaded. The workaround is to load some helpers even if you do not need to, add the following line to settings.yml: smarty_helpers: [AppUrl, Helper] Pavel On Jan 5, 6:42 pm, Jesse wrote: > Hi Saad, > > Im the current l

[symfony-users] Re: Admin generator filters in sf 1.2

2009-01-06 Thread Crafty_Shadow
This is what I managed to come up with, any comments and suggestions are welcomed. It allows you to search multiple fields with the 'search'=>array('first_name','last_name',), at the end, where the names of the fields are easily defined. Keep in mind that I am relatively new to the sfForm

[symfony-users] Re: jobeet tutorial in pdf

2009-01-06 Thread Fabien Marchewka
Thank you a lot. On 6 jan, 02:46, Adrian Gould wrote: > Fabien > > I'm thinking of creating a full PDF for the Jobeet in English - have   > to work out how to do a few things like automate the index etc. using   > Acrobat Pro. > > Will keep everyone informed. > > Ady > > On 02/01/2009, at 07:35

[symfony-users] Re: Symfony on shared host

2009-01-06 Thread Eno
On Tue, 6 Jan 2009, Ward Loockx wrote: > - What is the project freeze ? Why can't you just upload the env to ftp > ? what does the freeze exactly do? The freeze command copies the symfony library and related stuff into your project. So you can upload it to a host that doesn't have symfony ins

[symfony-users] Re: Admin generator and ordered list

2009-01-06 Thread Crafty_Shadow
It should be possible to create custom actions for moving up/down (and even batch move up/down ?) similar to the Classic method described in the tutorial, while forcing the list to be sorted by the rank field. Unfortunately I cannot point you to a specific tutorial for this, but figuring it out wi

[symfony-users] Re: Login redirection trick?

2009-01-06 Thread Lee Bolding
Ah In that case... Use the sfGuardPlugin, it has this behavior already ;) On 6 Jan 2009, at 10:49, Sid Bachtiar wrote: > > I'm not using sfGuardPlugin :) I'm asking about this trick with > Symfony in general. > > On Tue, Jan 6, 2009 at 10:42 PM, Lee Bolding wrote: >> >> Check the sfGuardP

[symfony-users] Re: Login redirection trick?

2009-01-06 Thread Sid Bachtiar
I'm not using sfGuardPlugin :) I'm asking about this trick with Symfony in general. On Tue, Jan 6, 2009 at 10:42 PM, Lee Bolding wrote: > > Check the sfGuardPlugin docs, there is a config setting for this, but > I thought that redirection to referer was the default behavior? > > > On 5 Jan 2009,

[symfony-users] Custom rendering of radio and check boxes. How to do it?

2009-01-06 Thread Android geek
I dont like the default HTML generated for radio buttons and check boxes. I want custom rendering for these widgets. How can I do it? Any hint, or link to existing resouces are appreciated. thanks SN --~--~-~--~~~---~--~~ You received this message because you are

[symfony-users] Re: Symfony on shared host

2009-01-06 Thread Lee Bolding
On 6 Jan 2009, at 09:28, Thomas Dedericks wrote: > I just don't understand how one could work with symfony without shell. > Deploying your project on a host without shell is ok, but building > it ? > I'm afraid you're doing something wrong there. That is, ofcourse, ignoring the fact that it's

[symfony-users] Re: Login redirection trick?

2009-01-06 Thread Lee Bolding
Check the sfGuardPlugin docs, there is a config setting for this, but I thought that redirection to referer was the default behavior? On 5 Jan 2009, at 22:21, Sid Bachtiar wrote: > > Hi, > > Is there any setting in Symfony to redirect user after login to where > they were going? > > For examp

[symfony-users] Admin generator and ordered list

2009-01-06 Thread Olivier Revollat
Hello !I have a module build with the admin generator. Is their any way to implement ordered list in admin generator ? I mean to order item with something like "rank" field i the DB with up/down arrows and/or ajax drag/drop ... I seen this : http://www.symfony-project.org/cookbook/1_2/en/sortable b

[symfony-users] Re: Symfony on shared host

2009-01-06 Thread Thomas Dedericks
Hi Ward, > - What is the project freeze ? Why can't you just upload the env to > ftp ? what does the freeze exactly do? When you create a new project, symfony's files aren't copied in your /lib directory. The freeze task copies symfony's files into your project directory. It allows the project t

[symfony-users] Re: Symfony on shared host

2009-01-06 Thread Ward Loockx
Allright I have a few question about symfony on shared hosting (have been following this topic and came up with a bit of questions) - What is the project freeze ? Why can't you just upload the env to ftp ? what does the freeze exactly do? - I have setup dev/prod env. on shared hosting without sh