Re: [symfony-users] Re: how to set up and configure memcache?

2010-02-10 Thread Gareth McCumskey
Overcomplicated? The blog post I linked to shows to use $cache = new
sfMemcacheCache(); along with how to use after that too.
Perhaps try reading the posts we give aimed at helping you instead of
just dismissing it as irrelevant because it seems too long...

On Tue, Feb 9, 2010 at 10:49 PM, Joshua  wrote:
> Thank you Norbert.
>
> 1) install memcache
> 2) $cache = new sfMemcacheCache();
>
> Apparently that is all I needed. Not sure why or how everyone is
> writing their own 3 page blog posts about doing that. Way to over
> complicate things.
>
>
> On Feb 8, 3:17 pm, Norbert  wrote:
>> just rtfm ;-)
>>
>> http://www.doctrine-project.org/documentation/manual/1_2/en/caching
>> &http://www.symfony-project.org/book/1_2/18-Performance
>>
>> Am 08.02.10 17:29, schrieb Joshua:
>>
>> > Blogs blogs blogs. How am I supposed to know where to find these
>> > things short of a google search?
>>
>> > On Feb 8, 1:52 am, Frank Stelzer  wrote:
>>
>> >> Hi,
>> >> Here is explained, how you could configure memcache for  the view
>> >> cache or how you can handle memcache using within a singleton using it
>> >> for 
>> >> everything:http://dev.esl.eu/blog/2009/06/05/memcached-as-singleton-in-symfony/
>>
>> >> Frank
>>
>> >> Am 08.02.2010 um 05:05 schrieb Joshua:
>>
>> >>> My end goal here is to have propel queries be memcached so common
>> >>> queries do not need to be constantly run.
>>
>> >>> On Feb 7, 11:04 pm, Joshua  wrote:
>>
>>  I have searched and read and searched but I can't find any clear
>>  documentation to set this up for symfony 1.2+. Apparently there are
>>  configurations that need to be added to yml files and other things.
>>  Where can I go to read about how to do this?
>>
>> >>> --
>> >>> You received this message because you are subscribed to the Google
>> >>> Groups "symfony users" group.
>> >>> To post to this group, send email to symfony-us...@googlegroups.com.
>> >>> To unsubscribe from this group, send email to 
>> >>> symfony-users+unsubscr...@googlegroups.com
>> >>> .
>> >>> For more options, visit this group 
>> >>> athttp://groups.google.com/group/symfony-users?hl=en
>> >>> .
>
> --
> You received this message because you are subscribed to the Google Groups 
> "symfony users" group.
> To post to this group, send email to symfony-us...@googlegroups.com.
> To unsubscribe from this group, send email to 
> symfony-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/symfony-users?hl=en.
>
>



-- 
Gareth McCumskey
http://garethmccumskey.blogspot.com
twitter: @garethmcc

-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



Re: [symfony-users] Re: sfShop demo?

2010-02-10 Thread Andreas Nyholm

apm wrote:
I am interested in sfShop, because have similar task. And i ready to 
share some code for open-source.
But problem is , i am beginner in symfony, not sure that i am will be 
useful.


You can start out by testing and finding bugs. Then you will learn how 
it works.


/Andreas


--
You received this message because you are subscribed to the Google Groups "symfony 
users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



Re: [symfony-users] Doctrine - how to detect if behavior exists

2010-02-10 Thread Daniel Lohse
Yes, that's possible.

Inside the model class, do:

$this->getTable()->hasTemplate('Timestampable')

You can also do getTemplates() which returns all attached templates (= 
behaviors).

Cheers, Daniel

On 10.02.2010, at 08:51, Daniel Kucharski wrote:

> Hi,
>  
> Is it possible to detect if for a given model class a specific behavior 
> exists?  (eg. Does the Timestampable behavior exists for model class User)
>  
> Kind regards,
>  
> Daniel
>  
>  
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "symfony users" group.
> To post to this group, send email to symfony-us...@googlegroups.com.
> To unsubscribe from this group, send email to 
> symfony-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/symfony-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] How may I add HTML code to a generated form field ?

2010-02-10 Thread NOOVEO - Christophe Brun
I'm still working on a backend form of my app. The form has several
input fields, one of them allows the user to type an identifier pointing
to an object stored on an external database. Let's call this field
ExternalId (string 25). 
Now, I have to add a button after the input field to allow the user to
click it and to check whether the identifier is valid or not (plus some
other stuff...). 

I checked the _form_field.php partial for this Form but I don't see how
I can customize my field. I also checked the sfWidget but I still don't
ctach the point. If somebody could point me to the right direction, I
may save a lot of time. 

NB : the form I'm customizing is also used as embedded form. The button
shall be added on both flavours of the form. 


-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



Re: [symfony-users] How may I add HTML code to a generated form field ?

2010-02-10 Thread Andrei Dziahel
Hi.

You have to write your own form widget (let's call them
sfWidgetFormInputButtonized) and then in yourForm::configure() call
$this->widgetSchema['external_id'] = new sfWidgetFormInputButtonized();

I'd also recommend to inherit your widget from sfWidgetFormInput. It will
save a bit of your time.

2010/2/10 NOOVEO - Christophe Brun 

> I'm still working on a backend form of my app. The form has several input
> fields, one of them allows the user to type an identifier pointing
> to an object stored on an external database. Let's call this field
> ExternalId (string 25). Now, I have to add a button after the input field to
> allow the user to
> click it and to check whether the identifier is valid or not (plus some
> other stuff...).
>
> I checked the _form_field.php partial for this Form but I don't see how I
> can customize my field. I also checked the sfWidget but I still don't ctach
> the point. If somebody could point me to the right direction, I may save a
> lot of time.
>
> NB : the form I'm customizing is also used as embedded form. The button
> shall be added on both flavours of the form.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "symfony users" group.
> To post to this group, send email to symfony-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en.
>
>


-- 
With the best regards, Andrei.

-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] placeholder in setDefaultMessage

2010-02-10 Thread Thibault Jouannic
Hi sf list,

I'm trying to use the new sfValidatorBase::setDefaultMessage to define
a message for the 'Required' error in my forms.

However, I cannot figure out how to use placeholders in those
messages. I'd like to write something like this :

sfValidatorBase::setDefaultMessage('required', 'The %fieldname% is
required.');

No matter which value I try, the placeholder is not replaced with the
real field name.

So does anybody have an idea ?

Thanks
Regards,
Thibault J.

-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] How to set custom error message for sfValidatorPropelUnique?

2010-02-10 Thread Hong Kil Dong
How to set custom error message for sfValidatorPropelUnique?

I have tried:

new sfValidatorPropelUnique(
array('model' => 'User', 'column' => array('email')),
array('invalid' => 'My custom error message')
)

but I still get 'An object with the same "email" already exist.' error
message...

-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



Re: [symfony-users] Re: changing symfony project structure

2010-02-10 Thread Gareth McCumskey
The problem with that arrangement is that in order to make it work
/www needs to be accessible by apache, and he subfolders, and
therefore that means that /www/application is also accessible by
apache and so creates a security risk for the application.

The reason why symfony is structured like /application/web is that
only the web directory needs to be open to apache and the rest of the
application is securely stored above it where apache cannot access
files.

Hope that helps a bit

On Wed, Feb 10, 2010 at 9:34 AM, Tom Ptacnik  wrote:
> Shorter question :-)
>
> Did someone tryied to change project structure to:
>
> /www    (web folder - index.php, .htaccess, css, js)
> /www/application    (rest of the application - apps,cache,config,)
>
> and had some problems with that?
>
> Thank you for your responses.
>
>
> On 9 ún, 07:59, Tom Ptacnik  wrote:
>> Hello,
>>
>> I want to know what do you think about my new Somfony project
>> structures which I've created.
>>
>> I needed to change it, because of my clients hosting. He host on the
>> server, where he can't change anything in apache configuration.
>> He has configured hosting that way, that every folder in his webfolder
>> is a subdomain
>> /www iswww.domain.com, /new is new.domain.com etc. So every subfolder
>> is "like a" virtual.
>>
>> The problem is, that I can't deploy the application into the parent
>> folder and thus use classic symfony structure and use /www for a
>> classic symfony webfolder.
>>
>> I've created two functional project structures, which works on his
>> host and I want to know your judgement :)
>>
>> In both ways I have web folder directly in the /www folder
>> In both ways I can't create the /sf alias - so I simply copied the /sf
>> folder to the /www folder
>>
>> 1)
>> /www (web folder - index.php, .htaccess, css, js)
>> /application (rest of the application - apps,cache,config, data,)
>>
>> In this solution I've created .htacces with "deny from all" and
>> inserted it to the /application folder - for denying the access to the
>> application subdomain which is automaticly created by the settings of
>> the webserver.
>>
>> 2)
>> /www    (web folder - index.php, .htaccess, css, js)
>> /www/application    (rest of the application - apps,cache,config,
>> data,)
>>
>> In this solution I've inserted the application directory into the www
>> folder. Created the .htaccess with "deny from all" in it too - deny
>> the access to thewww.domain.com/application
>>
>> I like this second solution because I have whole application in one
>> directory. It look pretty compact to me.
>>
>> For both possibilities need only to change 3 things
>> - the web folder path in the /config/ProjectConfiguration.class.php:
>> $this->setWebDir($this->getRootDir().'/../');
>> - the include of the ProjectConfiguration.class.php in all indexes
>> (index.php, frontend_dev.php)
>> - uncomment the  RewriteBase / in the standard symfony .htaccess file
>>
>> The image is maybe more explainable  :http://tinyurl.com/yzf3na3
>> (on the picture the application folder of the 1) solution is named
>> "app" )
>>
>> I haven't created whole functional application, I've only generated a
>> frontend application and managed to show the  "Congratulations! You
>> have successfully created your symfony project." page.
>> So I think, it will work..
>>
>> Before I will start to develope the application I want to know your
>> opinion.
>>
>> Please tell me what do you think about this solutions and if you know
>> some disadvantages / advantages of some of them...
>
> --
> You received this message because you are subscribed to the Google Groups 
> "symfony users" group.
> To post to this group, send email to symfony-us...@googlegroups.com.
> To unsubscribe from this group, send email to 
> symfony-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/symfony-users?hl=en.
>
>



-- 
Gareth McCumskey
http://garethmccumskey.blogspot.com
twitter: @garethmcc

-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] How to specify connection port in databases.yml using Doctrine

2010-02-10 Thread Pau Peris
Hi, i'm using Doctrine as default ORM and i'm trying to specify the
connection port as i have 2 mysql running instances.
The configuration i use to connect is:

  dsn: 'mysql:host=localhost;dbname=xXxxXx'
  username: xXXx
  password: XXx
  port: 3307

I also tried:
 mysql://u...@tcp(localhost:3307)/db_name

with no luck. Could someone tell me how should i do it? Thanks in advanced :)


PD: Here " 
http://www.doctrine-project.org/documentation/manual/1_0/hu/introduction-to-connections:dsn,-the-data-source-name
"i've read that using 127.0.0.1 as host port parameter is ignored. I
hope there's a way to override it.

-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] Re: How to set custom error message for sfValidatorPropelUnique?

2010-02-10 Thread Hong Kil Dong
Sorry, it's my mistake (

-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



Re: [symfony-users] How to specify connection port in databases.yml using Doctrine

2010-02-10 Thread apm

May be?
   dsn: 'mysql:host=localhost;dbname=xXxxXx;port='
   username: xXXx
   password: XXx


--
You received this message because you are subscribed to the Google Groups "symfony 
users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] Re: Model with no DB requirements.

2010-02-10 Thread Massimiliano Arione
Just define your object as a class in lib/model.

On 9 Feb, 01:35, "Pat Fong"  wrote:
> Occasionally I come accross an object that I need in my application
> which doesnt require being saved to the DB.
>
> I usually define this object through the schema as I would any other
> object and that works fine. I guess the problem I have is that it
> creates unessecary tables in the DB, not a big deal but not as clean as
> I would like.
>
> Is there any way to avoid this or a better approach that someone could
> suggest ?
>
> Cheers,
> Pat

-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



RE: [symfony-users] Doctrine - how to detect if behavior exists

2010-02-10 Thread Daniel Kucharski
Thanks Daniel, that'll do.

 

From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com]
On Behalf Of Daniel Lohse
Sent: woensdag 10 februari 2010 11:10
To: symfony-users@googlegroups.com
Subject: Re: [symfony-users] Doctrine - how to detect if behavior exists

 

Yes, that's possible.

 

Inside the model class, do:

 

$this->getTable()->hasTemplate('Timestampable')

 

You can also do getTemplates() which returns all attached templates (=
behaviors).

 

Cheers, Daniel

 

On 10.02.2010, at 08:51, Daniel Kucharski wrote:





Hi,

 

Is it possible to detect if for a given model class a specific behavior
exists?  (eg. Does the Timestampable behavior exists for model class User)

 

Kind regards,

 

Daniel

 

 

 

-- 
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en.

 

-- 
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] frameset not working in Symfony PHP template

2010-02-10 Thread DEEPAK BHATIA
Hi,

I have specified the src files for frame in /qp/web/htm directory where qp
is my project.

Thanks in advance

Regards

Deepak Bhatia
=






-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] Re: symfony project:deploy dry-run no output

2010-02-10 Thread ev...@freshheads.com
Hmm ok seems like a pretty strange thing.

When copying the rsync commando which "./symfony project:deploy
production" outputs and you add the option "-v" before lets say the "-
e" option. The list which is gonna be rsynced is displayed. However
when adding the option "-v" to the rsync command in your
"properties.ini" it's still without output of the task...

Any suggestions...

On 6 feb, 15:01, "ev...@freshheads.com"  wrote:
> Hi Augusto, ok indeed. Will take a look at that one too, thanks for
> pointing that out!
>
> Gr!
>
> On 5 feb, 05:32, Augusto Flavio  wrote:
>
>
>
> > Hi Evert.
>
> > there is no relation with error_reporting with the deploy using the
> > argument --dry-run. The problem that is see is in the class that
> > execute the rsync command. For one time i thought it's the outbuffer
> > in the class that do the deployment: sfProjectDeployTask.class.php.
> > However i see that this problem is located in the class that execute
> > the command rsync.
>
> > The method responsable about it is the execute from the class
> > sfFileSystem:http://trac.symfony-project.org/browser/branches/1.3/lib/task/sfFiles
> > I not found the problem yet. Try to execute the --dry-run manually and
> > after execute the deployment without the --go argument. Sametime it
> > works sametime not.
>
> > I will investigate in deep this problem and i hope found it.
>
> > Bye
>
> > Augusto Morais

-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] Fastest cache method...

2010-02-10 Thread Jonathan Franks
This is not strictly a symfony question, but arose from looking at the symfony 
code

I need to cache an array. Currently, I simply serialise the array and write it 
to a file.

However, I've noticed that after symfony parses a yaml file its caches the 
result as a php file. Some of symfony's cache files need to be treated this way 
as they are more complicated than a simple array. But some are not.

This made me wonder, is it faster to read a php file that defines an array, 
than to unserialise a text file to an array?

However, config_autoload.yml.php also defines an array. But it appears that 
this file is then cached again as project_autoload.cache, which is a serialised 
array.

So, does anybody know which is the best way to store the cached array for the 
best possible read performance?

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



Re: [symfony-users] frameset not working in Symfony PHP template

2010-02-10 Thread Eno
On Wed, 10 Feb 2010, DEEPAK BHATIA wrote:

> I have specified the src files for frame in /qp/web/htm directory where qp
> is my project.

Maybe you should define what 'frameset not working' actually means?



-- 


-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] Re: Fastest cache method...

2010-02-10 Thread roman.borsc...@googlemail.com
Hi,

caching in files is probably one of the slowest things you can do. In
the case of php files it might be better with an opcode cache.

If you really want fast caching with the best possible read
performance, store your array in shared memory (RAM) via APC or
XCache. Alternatively, but a bit slower since network overhead is
involved, is Memcached which has the advantage that the cache can be
shared by many PHP machines, whereas each PHP machine has its own
local APC/XCache shared-memory cache.

-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



Re: [symfony-users] Bad saving on PropelChoice

2010-02-10 Thread Germana Oliveira
Dah!!!

Thanks!!  ---> i was guessing something like that :/


2010/2/10 Stefan Paschke 

> Hi Germana
>
> both your keys ('true', 'false') are strings. My guess is that your field
> type is boolean, so any string will test true. In order to get boolean
> values, you'd need to write true and false, without quotes.
>
>$this->widgetSchema['status'] = new sfWidgetFormChoice(array(
>'choices' => array(
>'' => '-Seleccione-',
> true=> 'Resuelto',
> false   => 'No Resuelto'
>  )
>));
>
> regards
>
> Stefan
>
> --
> You received this message because you are subscribed to the Google Groups
> "symfony users" group.
> To post to this group, send email to symfony-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en.
>
>


-- 
Germana Oliveira

germanaoliveirab arroba gmail punto com
http://626f67.wordpress.com
http://slcarabobo.wordpress.com

-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] redeclare class sfDoctrineBaseTask

2010-02-10 Thread scippio
I donwloaded my old project from web and when I run symphony I give
error:

Fatal error: Cannot redeclare class sfDoctrineBaseTask in /home/
scippio/webs/project/symfony/plugins/sfDoctrinePlugin/lib/task/
sfDoctrineBaseTask.class.php on line 99

:(

-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



Re: [symfony-users] Re: changing symfony project structure

2010-02-10 Thread Gunther Konig
On Wed, Feb 10, 2010 at 1:41 PM, Gareth McCumskey wrote:

> The problem with that arrangement is that in order to make it work
> /www needs to be accessible by apache, and he subfolders, and
> therefore that means that /www/application is also accessible by
> apache and so creates a security risk for the application.
>
> The reason why symfony is structured like /application/web is that
> only the web directory needs to be open to apache and the rest of the
> application is securely stored above it where apache cannot access
> files.
>
> Hope that helps a bit
>
> On Wed, Feb 10, 2010 at 9:34 AM, Tom Ptacnik  wrote:
> > Shorter question :-)
> >
> > Did someone tryied to change project structure to:
> >
> > /www(web folder - index.php, .htaccess, css, js)
> > /www/application(rest of the application - apps,cache,config,)
> >
> > and had some problems with that?
>
 Yes, you can do it, just change the path to ProjectConfiguration.class.php
in your controller (index.php), that should be it. *BUT*, as Gareth
mentioned, making your dirs accessible by Apache creates some security
issues. For example, after you do that visit
yourdomain/application/config/databases.yml - assuming you have a database,
you'll see the password there as clear text. You can (read: you *must*, if
you do this) setup apache to deny access to that entire directory
(/www/application).

-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] Error Updating Form

2010-02-10 Thread bobotheevildevilclown
My site is using Symfony 1.4.1 with Propel and a database running on
Microsoft SQL 2008.

I'm using a form class defined  in /lib/form to allow users to view
and edit rows in a table.  I've added a use_fields() line to it to
limit what shows up and changed one of the fields to use a checkbox
widget.

In my routing.yaml I have the following lines:

client:
  class:   sfPropelRouteCollection
  options: { model: Client, column: ID }


Calling /frontend_dev.php/modulename/25/edit.html correctly loads the
form with data form record with ID #25.  When I hit submit however I
get this error:

[wrapped: SQLSTATE[22018]: Invalid character value for cast
specification: 206 [Microsoft][ODBC SQL Server Driver][SQL
Server]Operand type clash: text is incompatible with bigint
(SQLExecute[206] at ext\pdo_odbc\odbc_stmt.c:133)]

I dug into the problem a bit, and it appears that some queries are
being issued that look like this [] WHERE ID = '25'.  ID is a
bigint field (and is defined as such in schema.yml:

 ID: { phpName: Id, type: BIGINT, size: '8', scale: '0', primaryKey:
true, required: true }

The superficial cause of the problem appears to be that the propel
Criteria class binds the incoming ID parameter to the query as a
string.  I notice this is the default type when using
PDOStatement::bindParam() (not sure if that's relevant.  I'm not sure
why this is happening though.

I'm going to continue to dig, but wanted to find out if this was a
known problem, or if there are configuration settings I should be
looking at.

Additional note:

One thing I've  noticed is changes caused by the capitalization of the
column: field.  If I change it to column: Id to match the
capitalization of the phpname I get no errors, but everything always
defaults to loading record #1.  (/frontend_dev.php/modulename/25/
edit.hml loads record 1 not 25).

-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] Trying to add Whatever:hover (csshover3.htc)

2010-02-10 Thread Javier Garcia

Hi,

i have this problem:

http://forum.symfony-project.org/index.php/m/26709/

Any idea?

Javi

--
You received this message because you are subscribed to the Google Groups "symfony 
users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] Re: Anyone used symfony with Flash Builder 4 Data Service?

2010-02-10 Thread Danny L
It's easy no need of any plugin installed , just follow the tutorial
on the adobe site and in the php file  , create first php file
somewhere in your root dir , (name cannot contain _ or . ) an then put
this in it


addDirectory( dirname(__FILE__).'path to lib dir dir/
lib');
$autoload->register();
sfContext::switchTo("frontend");

$this->user = sfContext::getInstance()->getUser();

}

public function getAllItems() {
$this->user->setAttribute("asd","asd");
  //echo $this->user->getAttribute("asd");


  $c = new Criteria();
  $users = UsersPeer::doSelect($c);

  $ret = array();

  foreach ($users as $key => $user) {
$row->id = $user->getId();
$row->name = $user->getName();
$ret[] = $row;
  }

  return $ret;
}



}


?>


That's it , absolutely easy , and nothing to worry about. The
combination between these two ones is absolutely amazing.

It'll be very cool to make little plugin that generates from model
service with ready to use methods.

On Jan 11, 5:07 pm, Frank He  wrote:
> This plugin looks great for using Flex with symfony and I wanted to give a
> try, but when I  tried to install flex plugin,
> 1. Its dependency is afmPlugin, which can only be used in symfony 1.2, so
> your flex plugin can only be used in 1.2, I think
> 2. after installing flex plugin, much fatal error happened, please see
> attached image.
> I used both --install_deps as well as manually install afmphp and then flex
> plugin, the error is always there.
>
> Any idea on how to install this flex plugin?
>
> Thanks
>
> On Sun, Jan 10, 2010 at 11:15 PM, Vapirov  wrote:
> > Hey, maybe that plugin can help you.
> >http://www.symfony-project.org/plugins/sfFlexymfonyPlugin
>
> > On 8 янв, 17:22, xhe  wrote:
> > > Flash Builder 4 has a very exciting feature, data service, which can
> > > connect to backend PHP class directly and call the method, render the
> > > data consequently.
>
> > > Now the problem comes to me, Symfony is hiding all the class at
> > > backend etc. So can anyone if you ever used data service in Flash
> > > Builder 4 can give me some opinion on how to use symfony with Flash
> > > builder 4 Dataservice?
>
> > > This is a video from Adobe.
>
> > >http://labs.adobe.com/technologies/flashbuilder4/tutorials/
> > > Select Part 1. the php code->
> >http://labs.adobe.com/technologies/flashbuilder4/tutorials/php1/
>
> > > Thanks.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "symfony users" group.
> > To post to this group, send email to symfony-us...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > symfony-users+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/symfony-users?hl=en.
>
>
>
>  error.jpg
> 70KViewDownload

-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] Re: frameset not working in Symfony PHP template

2010-02-10 Thread Henrik Bjornskov
what about stop using frames ? whats the need?

On Feb 10, 2:30 pm, DEEPAK BHATIA  wrote:
> Hi,
>
> I have specified the src files for frame in /qp/web/htm directory where qp
> is my project.
>
> Thanks in advance
>
> Regards
>
> Deepak Bhatia
> =
>
> 
>          id="frmToolbar" title="This frame contains tools for manipulating your
> drawing." frameborder="6" bordercolor="#99" scrolling="no"
> marginheight="0" marginwidth="0" >
>          marginwidth="10" onload="if (parent.isUpLevel) FramePageLoaded()" >

-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] How to change time till the user is logged out (if there is no activity in the session) ?

2010-02-10 Thread Javier Garcia

Hi,

just that. Using sfDoctrineGuardPlugin

Javi

--
You received this message because you are subscribed to the Google Groups "symfony 
users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] sfDoctrineGuardExtraPlugin & Symfony 1.4.2

2010-02-10 Thread Don_Busi
Hi everybody,

I'm trying to create a new application with Symfony 1.4.2, Doctrine
and sfGuard.

Somehow I cannot properly install the sfDoctrineGuardExtraPlugin. I
checked out the latest version from the 1.3 branch (as there is no 1.4
branch) into my "plugins" folder.

For some reason, the plugin and it's modules is not accessible in the
application.

What am I doing wrong? Is it because my symfony-core is 1.4.2 and the
plugin is only for 1.3?

Any help is appreciated.

Thanx in advance,
Don

-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



Re: [symfony-users] sfDoctrineGuardExtraPlugin & Symfony 1.4.2

2010-02-10 Thread Gábor Fási
Did you enable the plugin?

On Wed, Feb 10, 2010 at 19:18, Don_Busi  wrote:
> Hi everybody,
>
> I'm trying to create a new application with Symfony 1.4.2, Doctrine
> and sfGuard.
>
> Somehow I cannot properly install the sfDoctrineGuardExtraPlugin. I
> checked out the latest version from the 1.3 branch (as there is no 1.4
> branch) into my "plugins" folder.
>
> For some reason, the plugin and it's modules is not accessible in the
> application.
>
> What am I doing wrong? Is it because my symfony-core is 1.4.2 and the
> plugin is only for 1.3?
>
> Any help is appreciated.
>
> Thanx in advance,
> Don
>
> --
> You received this message because you are subscribed to the Google Groups 
> "symfony users" group.
> To post to this group, send email to symfony-us...@googlegroups.com.
> To unsubscribe from this group, send email to 
> symfony-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/symfony-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] Homepage routing not working properly.

2010-02-10 Thread Darren884
I have set my routing in my routing.yml file to:

homepage:
  url:   /
  param: { module: employee, action: login }

But it still shows:

Symfony Project Created
Congratulations! You have successfully created your symfony project.


I have cleared the cache as well numerous times through the command
line.

What am I doing wrong?

Thanks,
Darren

-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



Re: [symfony-users] Homepage routing not working properly.

2010-02-10 Thread Eno
On Wed, 10 Feb 2010, Darren884 wrote:

> I have set my routing in my routing.yml file to:
> 
> homepage:
>   url:   /
>   param: { module: employee, action: login }
> 
> But it still shows:
> 
> Symfony Project Created
> Congratulations! You have successfully created your symfony project.
> 
> I have cleared the cache as well numerous times through the command
> line.
> 
> What am I doing wrong?

Are there other routing rules in place? Is your homepage route at the top, 
bottom or middle of the list (routing rules are evaluated from top to 
bottom).



-- 


-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] Re: How to change time till the user is logged out (if there is no activity in the session) ?

2010-02-10 Thread wissl
http://www.symfony-project.org/book/1_2/06-Inside-the-Controller-Layer#chapter_06_sub_session_management


On 10 Feb., 19:04, Javier Garcia  wrote:
> Hi,
>
> just that. Using sfDoctrineGuardPlugin
>
> Javi

-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] sfValidatorErrorSchema error'ing (without errors?)!

2010-02-10 Thread Cainã
HI ppl.

I'm trying to create a new form, which inherit from sfForm. In that form, i
embed some other forms, and on save(), i save them too.
But, i'm getting a blank error from sfValidatorErrorSchema, pointing to the
"$this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);"
from the BaseFactPersonForm. I already tried to change all validators to
sfValidatorPass, and deleting the aforemented line, but none of them worked
(although the latter one did changed the line the error points to).

Anyone knows which could be the problem?
Those are the files i think are related:
actions.class.php 
FactPersonForm.class.php 
PapersForm.class.php 
(i didn't put the BaseFactPersonForm.class.php because it's the one
generated by doctrine)

-- 
Cainã Costa
http://www.grupoagencia.com.br

-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] Re: Error Updating Form

2010-02-10 Thread bobotheevildevilclown
Issue now happens on edit as well as update.  I found some more out
about this,.

BasePeer::doSelect() calls
BasePeer::populateStmtValues()  calls
$stmt->bindValue(':p'.$i++, (int)$value, $pdoType); on roughly line
594 of my BasePeer.php

pdo type has been set by a call to PropelColumnTypes::getPdoType()
(ultimately).

Interestingly, in PropelColumnTypes.php:
$propelToPdoMap = array(
[.. snip .. ]
self::TINYINT   => PDO::PARAM_INT,
self::SMALLINT  => PDO::PARAM_INT,
self::INTEGER   => PDO::PARAM_INT,
self::BIGINT=> PDO::PARAM_STR,

Regardless of whether I leave as is or adjust to PARAM_INT, query
still ends up like WHERE ID = '25' as if value is a VARCHAR.

-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] Plugin wide layout

2010-02-10 Thread Avi Block
Is there a good way to make sure every module in a plugin has the same
layout (one that is stored in the plugin, not in your app)

-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] Re: Plugin wide layout

2010-02-10 Thread Richtermeister
Hey there,

look at the sfBlogPlugin, although it's a little outdated, it uses the
trick you're looking for, which can be turned on / off via a config
parameter (use bundled layout I believe).

Daniel


On Feb 10, 11:23 am, Avi Block  wrote:
> Is there a good way to make sure every module in a plugin has the same
> layout (one that is stored in the plugin, not in your app)

-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] Re: Error Updating Form

2010-02-10 Thread bobotheevildevilclown
This appears to come back to a known bug:

http://bugs.php.net/bug.php?id=44643
https://connect.microsoft.com/SQLServer/feedback/details/521409/odbc-client-mssql-does-not-work-with-bound-parameters-in-subquery

It sounds like it may be a MS SQL Server bug, not a PHP/PDO/symfony
bug.  I'm continuing to dig, but I'd really appreciate if anyone out
there knows a workaround.

Generic statement of the problem appears to be: MSSQL ODBC driver
ignores specified types of parameters in subqueries.

This is an issue because propel generates queries with subqueries in
them...

-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



Re: [symfony-users] Re: symfony project:deploy dry-run no output

2010-02-10 Thread Augusto Flavio
Do you use the -e option for what?


I think that the problem is in the class that execute the rsync
process. sfFileSystem method execute().

I will work inside this problem. The next week i think i have a answer.


bye.



Augusto Morais

-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



Re: [symfony-users] changing symfony project structure

2010-02-10 Thread Eno
On Mon, 8 Feb 2010, Tom Ptacnik wrote:

> I needed to change it, because of my clients hosting. He host on the
> server, where he can't change anything in apache configuration.
> He has configured hosting that way, that every folder in his webfolder
> is a subdomain

These two statements appear to contradict each other. He can't change 
anything but he configured the hosting?

Really its a horrible setup.



-- 


-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



Re: [symfony-users] Re: changing symfony project structure

2010-02-10 Thread Eno
On Tue, 9 Feb 2010, Tom Ptacnik wrote:

> Shorter question :-)
> 
> Did someone tryied to change project structure to:
> 
> /www(web folder - index.php, .htaccess, css, js)
> /www/application(rest of the application - apps,cache,config,)
> 
> and had some problems with that?

I guess noone answered your earlier post because it was such a long 
detailed post. The main point though is that you can structure a symfony 
application anyway you want and some of us have done so for certain 
situations.

In your specific case it looks like you are putting the symfony tree in a 
subfolder below your publicly accessible web folder. The problem is that 
you will have to somehow secure that tree so that noone can just type say 
/application/config/databases.yml and look at your database config. Say 
you did somehow secure that, I personally still think is a Bad Idea to 
have any application code under a web-accessible folder - any 
misconfiguration of your server could disclose information about your app.


-- 
A


-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] Re: sfDoctrineGuardExtraPlugin & Symfony 1.4.2

2010-02-10 Thread Don_Busi
Hi,

I added the following to the settings.yml of my Application.

--
all:
  .settings:
enabled_modules:[default, sfGuardAuth,
sfGuardForgotPassword, sfGuardRegister]
--

Other than that I didn't enable anything. The two modules
(sfGuardForgotPassword & sfGuardRegister) are not available in the
apps at runtime.

Do I need to do anything else to enable the plugin?

Cheers,
Don


On Feb 10, 7:25 pm, Gábor Fási  wrote:
> Did you enable the plugin?
>
> On Wed, Feb 10, 2010 at 19:18, Don_Busi  wrote:
> > Hi everybody,
>
> > I'm trying to create a new application with Symfony 1.4.2, Doctrine
> > and sfGuard.
>
> > Somehow I cannot properly install the sfDoctrineGuardExtraPlugin. I
> > checked out the latest version from the 1.3 branch (as there is no 1.4
> > branch) into my "plugins" folder.
>
> > For some reason, the plugin and it's modules is not accessible in the
> > application.
>
> > What am I doing wrong? Is it because my symfony-core is 1.4.2 and the
> > plugin is only for 1.3?
>
> > Any help is appreciated.
>
> > Thanx in advance,
> > Don
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "symfony users" group.
> > To post to this group, send email to symfony-us...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > symfony-users+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/symfony-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



Re: [symfony-users] Re: sfDoctrineGuardExtraPlugin & Symfony 1.4.2

2010-02-10 Thread Gábor Fási
You need to enable the plugin in your ProjectConfiguration.
http://www.symfony-project.org/tutorial/1_2/en/whats-new#chapter_3fb3b0c857177a2b6740a5dcbc0fb8c7_configuration

On Wed, Feb 10, 2010 at 22:14, Don_Busi  wrote:
> Hi,
>
> I added the following to the settings.yml of my Application.
>
> --
> all:
>  .settings:
>    enabled_modules:        [default, sfGuardAuth,
> sfGuardForgotPassword, sfGuardRegister]
> --
>
> Other than that I didn't enable anything. The two modules
> (sfGuardForgotPassword & sfGuardRegister) are not available in the
> apps at runtime.
>
> Do I need to do anything else to enable the plugin?
>
> Cheers,
> Don
>
>
> On Feb 10, 7:25 pm, Gábor Fási  wrote:
>> Did you enable the plugin?
>>
>> On Wed, Feb 10, 2010 at 19:18, Don_Busi  wrote:
>> > Hi everybody,
>>
>> > I'm trying to create a new application with Symfony 1.4.2, Doctrine
>> > and sfGuard.
>>
>> > Somehow I cannot properly install the sfDoctrineGuardExtraPlugin. I
>> > checked out the latest version from the 1.3 branch (as there is no 1.4
>> > branch) into my "plugins" folder.
>>
>> > For some reason, the plugin and it's modules is not accessible in the
>> > application.
>>
>> > What am I doing wrong? Is it because my symfony-core is 1.4.2 and the
>> > plugin is only for 1.3?
>>
>> > Any help is appreciated.
>>
>> > Thanx in advance,
>> > Don
>>
>> > --
>> > You received this message because you are subscribed to the Google Groups 
>> > "symfony users" group.
>> > To post to this group, send email to symfony-us...@googlegroups.com.
>> > To unsubscribe from this group, send email to 
>> > symfony-users+unsubscr...@googlegroups.com.
>> > For more options, visit this group 
>> > athttp://groups.google.com/group/symfony-users?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "symfony users" group.
> To post to this group, send email to symfony-us...@googlegroups.com.
> To unsubscribe from this group, send email to 
> symfony-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/symfony-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] Re: How to change the route created by the admin generator

2010-02-10 Thread Fabrizio
I found another discussion on the exact same problem

http://groups.google.com/group/symfony-users/browse_thread/thread/61ae0d3e9a06224c/f46622302f3744c1?show_docid=f46622302f3744c1

I already tried this solution (in my case, add a method getTypeId
() ), but does not work, this method is not called and the error
message is always the same.

Any suggestions or working example?

-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] Re: sfDoctrineGuardExtraPlugin & Symfony 1.4.2

2010-02-10 Thread Don_Busi
Thanx a lot. I forgot about that. It works fine now.

Cheers,
Don

On Feb 10, 10:26 pm, Gábor Fási  wrote:
> You need to enable the plugin in your 
> ProjectConfiguration.http://www.symfony-project.org/tutorial/1_2/en/whats-new#chapter_3fb3...
>
> On Wed, Feb 10, 2010 at 22:14, Don_Busi  wrote:
> > Hi,
>
> > I added the following to the settings.yml of my Application.
>
> > --
> > all:
> >  .settings:
> >    enabled_modules:        [default, sfGuardAuth,
> > sfGuardForgotPassword, sfGuardRegister]
> > --
>
> > Other than that I didn't enable anything. The two modules
> > (sfGuardForgotPassword & sfGuardRegister) are not available in the
> > apps at runtime.
>
> > Do I need to do anything else to enable the plugin?
>
> > Cheers,
> > Don
>
> > On Feb 10, 7:25 pm, Gábor Fási  wrote:
> >> Did you enable the plugin?
>
> >> On Wed, Feb 10, 2010 at 19:18, Don_Busi  wrote:
> >> > Hi everybody,
>
> >> > I'm trying to create a new application with Symfony 1.4.2, Doctrine
> >> > and sfGuard.
>
> >> > Somehow I cannot properly install the sfDoctrineGuardExtraPlugin. I
> >> > checked out the latest version from the 1.3 branch (as there is no 1.4
> >> > branch) into my "plugins" folder.
>
> >> > For some reason, the plugin and it's modules is not accessible in the
> >> > application.
>
> >> > What am I doing wrong? Is it because my symfony-core is 1.4.2 and the
> >> > plugin is only for 1.3?
>
> >> > Any help is appreciated.
>
> >> > Thanx in advance,
> >> > Don
>
> >> > --
> >> > You received this message because you are subscribed to the Google 
> >> > Groups "symfony users" group.
> >> > To post to this group, send email to symfony-us...@googlegroups.com.
> >> > To unsubscribe from this group, send email to 
> >> > symfony-users+unsubscr...@googlegroups.com.
> >> > For more options, visit this group 
> >> > athttp://groups.google.com/group/symfony-users?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "symfony users" group.
> > To post to this group, send email to symfony-us...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > symfony-users+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/symfony-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



[symfony-users] Re: How to change the route created by the admin generator

2010-02-10 Thread ken
As for me, I ended up overriding sfDoctrineRoute and
sfDoctrineRouteCollection

On Feb 11, 5:51 am, Fabrizio  wrote:
> I found another discussion on the exact same problem
>
> http://groups.google.com/group/symfony-users/browse_thread/thread/61a...
>
> I already tried this solution (in my case, add a method getTypeId
> () ), but does not work, this method is not called and the error
> message is always the same.
>
> Any suggestions or working example?

-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



RE: [symfony-users] Re: Model with no DB requirements.

2010-02-10 Thread Pat Fong
Thanks Massimiliank,

I did consider doing this but in that in that case I need to write the
whole class from scratch so no getters and setters etc which I was
hoping to avoid.

-Original Message-
From: symfony-users@googlegroups.com
[mailto:symfony-us...@googlegroups.com] On Behalf Of Massimiliano Arione
Sent: Thursday, 11 February 2010 12:02 AM
To: symfony users
Subject: [symfony-users] Re: Model with no DB requirements.

Just define your object as a class in lib/model.

On 9 Feb, 01:35, "Pat Fong"  wrote:
> Occasionally I come accross an object that I need in my application 
> which doesnt require being saved to the DB.
>
> I usually define this object through the schema as I would any other 
> object and that works fine. I guess the problem I have is that it 
> creates unessecary tables in the DB, not a big deal but not as clean 
> as I would like.
>
> Is there any way to avoid this or a better approach that someone could

> suggest ?
>
> Cheers,
> Pat

--
You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.



Re: [symfony-users] Re: Model with no DB requirements.

2010-02-10 Thread Gareth McCumskey
So define the object in your schema, run the symfony
propel:build-model (or Doctrine equivalent) and then remove it from
the schema. symfony does not delete previously created model classes
:)

On Thu, Feb 11, 2010 at 6:58 AM, Pat Fong  wrote:
> Thanks Massimiliank,
>
> I did consider doing this but in that in that case I need to write the
> whole class from scratch so no getters and setters etc which I was
> hoping to avoid.
>
> -Original Message-
> From: symfony-users@googlegroups.com
> [mailto:symfony-us...@googlegroups.com] On Behalf Of Massimiliano Arione
> Sent: Thursday, 11 February 2010 12:02 AM
> To: symfony users
> Subject: [symfony-users] Re: Model with no DB requirements.
>
> Just define your object as a class in lib/model.
>
> On 9 Feb, 01:35, "Pat Fong"  wrote:
>> Occasionally I come accross an object that I need in my application
>> which doesnt require being saved to the DB.
>>
>> I usually define this object through the schema as I would any other
>> object and that works fine. I guess the problem I have is that it
>> creates unessecary tables in the DB, not a big deal but not as clean
>> as I would like.
>>
>> Is there any way to avoid this or a better approach that someone could
>
>> suggest ?
>>
>> Cheers,
>> Pat
>
> --
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "symfony users" group.
> To post to this group, send email to symfony-us...@googlegroups.com.
> To unsubscribe from this group, send email to 
> symfony-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/symfony-users?hl=en.
>
>



-- 
Gareth McCumskey
http://garethmccumskey.blogspot.com
twitter: @garethmcc

-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.