[symfony-users] Using JQuery UI (or any other) tab component in a propel generated form

2009-04-27 Thread Ido

Hi,
1. I'm rather new to symfony forms.
2. I have a very large propel entity, which I want to display for
editing using tabs.
3. I would love opinions / pointers. I know this is a bit long...

I thought of implementing it in the form class as something like:

$ws1 = new sfWidgetFormSchema(array(... fields in first group...));
$wd1 = new sfWidgetFormSchemaDecorator($ws1, '%content%');

$ws2 = new sfWidgetFormSchema(array(... fields in second group...));
$wd2 = new sfWidgetFormSchemaDecorator($ws2, '%content%');

$ws_tabs = new sfWidgetFormSchema(array('tab1' => $wd1, 'tab1' =>
$wd2));
$wd_tabs = new sfWidgetFormSchemaDecorator($ws_tabs,
'%content%');

$this->widgetSchema['tabs'] = $wd_tabs;

Does this look like a reasonable design ?
Is there an existing widget for that ?

Problems I can think of:
1. Field names - I will get obj[tabs][tab1][fieldname], where all I
want is obj[fieldname] (server side shouldnt care for my tabs upon
submission). I assume this is solvable using nameFormat, although I
still havent figured it out

2. JQuery UI Tabs require this HTML:


Nunc tincidunt
Proin dolor
Aenean lacinia

 bla bla 
 bla bla 
 bla bla 


which means my topmost decorator ($wd_tabs) will have to be smart
enough to access each of the tabs ($wd1, $wd2), to get their names, so
it would be able to print the ul / li structure for JQuery. I assume
this will be done by extending sfWidgetFormSchemaDecorator

Any thoughts ?
10x


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



[symfony-users] Create Constructor method in action.class.php

2009-04-27 Thread sherwin corpuz
when i trying to create an *public function __construc()* in a
action.class.php it cause of error

PHP Fatal error:  Call to a member function notify() on a non-object in
/cache/frontend/prod/config/config_core_compile.yml.php on
line 460.

We can be Create a constructor method in action.class.php.??


thanks in Advance, in your responce..

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



[symfony-users] Re: Updating the session in a cached action

2009-04-27 Thread Richtermeister

Hey Thomas,

just curious, I have not come across that plugin of yours and I was
wondering what it does and where I can find documentation about it,
since I can't seem to locate it in the symfony plugins section (other
than on trac).

Thanks,
Daniel


On Apr 24, 9:50 am, Thomas Rabaix  wrote:
> just use 
> swUserContextCacheFilter.class.phpclass
> as your cache filter ;)
>
> If your main action is name 'view', just create a executeView_UserContext
> action. This method will be always called. So you can perform user specific
> code in that action.
>
> http://trac.symfony-project.org/browser/plugins/swToolboxPlugin/sf1.2...
>
>
>
> On Fri, Apr 24, 2009 at 6:18 PM, HiDDeN  wrote:
>
> > Yes, I know that. I did read the book. But that action makes heavy
> > queries to the database, so, if I just cache the listing of the data
> > I'm getting, I will be executing always those heavy queries... that is
> > the reason I was caching the action.
>
> > On Apr 24, 5:13 pm, Eno  wrote:
> > > On Fri, 24 Apr 2009, HiDDeN wrote:
> > > > Eno, what you are recommending is to cache parts of the template. I
> > > > need to cache the action as well.
>
> > > But you need the action to run as well. You can't have it both ways -
> > > either you run the action or you dont. The only way you can get the
> > action
> > > to run every time is to NOT cache it; intead you cache partials and
> > > fragments of the template.
>
> > > Seehttp://
> >www.symfony-project.org/book/1_2/12-Caching#chapter_12_sub_cac...
> > > where it says:
>
> > > "Action caching applies to only a subset of actions. For the other
> > > actions--those that update data or display session-dependent information
> > > in the template--there is still room for cache improvement but in a
> > > different way. Symfony provides a third cache type, which is dedicated to
> > > template fragments and enabled directly inside the template. In this
> > mode,
> > > the action is always executed, and the template is split into executed
> > > fragments and fragments in the cache, ..."
>
> > > --
>
> --
> Thomas Rabaixhttp://rabaix.net
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Removing records from database

2009-04-27 Thread Eno

On Mon, 27 Apr 2009, HAUSa wrote:

> Is there also a plugin that creates new records on an update?
>
> So, when I edit (update) a record, the original record gets a
> deleted_at value and a copy of that record (with ofcourse the new
> values processed) is created with a created_at record set to now and
> the deleted_at record being null.

Maybe a versioning behavior is what you need. Im sure there's a plugin for 
that and Google is your friend.



-- 



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



[symfony-users] plugin popularity

2009-04-27 Thread Gandalf

Hello!

I made this post in the blog, but since Im late, I dediced to post it here:

http://www.symfony-project.org/blog/2009/04/07/tell-us-the-plugins-you-use

Basically apt (we will probably use a task, invoked manually please,
not automatic) submits a list of the packages (plugins) used in a
system (project), their versions and the symfony version as well.

Of course we will need a webservice somewhere to receive the data...

Thanks!

Pablo

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



[symfony-users] Re: Removing records from database

2009-04-27 Thread HAUSa

Is there also a plugin that creates new records on an update?

So, when I edit (update) a record, the original record gets a
deleted_at value and a copy of that record (with ofcourse the new
values processed) is created with a created_at record set to now and
the deleted_at record being null.


On 27 apr, 22:54, HAUSa 
wrote:
> Well that's very useful!! Thx :)
>
> Now, with this plugin you have to put sfPropelBehavior::add('Article',
> array('paranoid')); in every class. Is there perhaps a option for the
> propel:build-all command to make Symfony generate that itself in each
> Base class?
>
> On 27 apr, 21:53, Eno  wrote:
>
> > On Mon, 27 Apr 2009, HAUSa wrote:
> > > I see that Propel uses the first option: complete removal of data from
> > > the database. My question is: is there also built-in support for
> > > option two?
>
> >http://www.symfony-project.org/plugins/sfPropelParanoidBehaviorPlugin
>
> > --
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: edit data of localized schema in backend

2009-04-27 Thread lowshoe

no one who can help?

lowshoe

> i experimented a bit in the meantime and found out that the problem
> here is my "index:unique" inside the keywords_i18n-schema. if i remove
> the unique index from the schema declaration, i can edit existing
> keyword entries in the backend without the mentioned validation error.
> this is a workaround at the moment but no real solution, especially
> because i have seen already schema declarations, for example the
> jobeet one, where unique indexes and the backend interface work
> together without problems. although i already examined the jobeet code
> and compared it with my one, i couldn't really find the part of code
> that makes the difference.
> so, could someone point me to the right direction?
>
> thanks, lowhsoe
>

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



[symfony-users] Re: Removing records from database

2009-04-27 Thread HAUSa

Well that's very useful!! Thx :)

Now, with this plugin you have to put sfPropelBehavior::add('Article',
array('paranoid')); in every class. Is there perhaps a option for the
propel:build-all command to make Symfony generate that itself in each
Base class?


On 27 apr, 21:53, Eno  wrote:
> On Mon, 27 Apr 2009, HAUSa wrote:
> > I see that Propel uses the first option: complete removal of data from
> > the database. My question is: is there also built-in support for
> > option two?
>
> http://www.symfony-project.org/plugins/sfPropelParanoidBehaviorPlugin
>
> --
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: How to know if memcache is caching

2009-04-27 Thread meppum

don't forget to also clear your eAccelerator cache (if you use it).

On Apr 27, 4:31 pm, Jacob Coby  wrote:
> A couple more options:
>
> Start memcached in debug mode and watch the output as keys are set and  
> retrieved.
>
> Connect to memcached using telnet (telnet localhost 11211) and type  
> 'stats' to get some stats about the # of keys, memory used, etc.  Do  
> that a couple of times and see if the numbers change.
>
> Also, did you clear your config cache when you enabled memcache on  
> production?
>
> On Apr 27, 2009, at 4:20 PM, meppum wrote:
>
>
>
>
>
> > a few things to check:
>
> > settings.yml - make sure cache: on is set under the .prod
> > factories.yml - make sure view_cache is uncommented and set correctly
> > (class: sfMemcacheCache, etc)
> > cache.yml - make sure the cache.yml file exists for the module you are
> > trying to cache.
>
> > On Apr 27, 12:35 pm, HiDDeN  wrote:
> >> How would I know if memcache is caching?
>
> >> I have configured mycachethrough memcache (using the sfMemcacheCache
> >> class in factories.yml), and in my development server it's noticeable
> >> that it's caching (because it's fast), but in my production server is
> >> not as fast, it seems to be processing the action each time it's
> >> called.
>
> >> So... how could I know it? I know the getExtendedStats gives this
> >> information, but as Symfony doescachetransparently from the user, I
> >> don't know how can I get the memcache identifier that Symfony is
> >> using...
>
> >> Anyone knows?
>
> --
> Jacob Coby
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: How to know if memcache is caching

2009-04-27 Thread Jacob Coby

A couple more options:

Start memcached in debug mode and watch the output as keys are set and  
retrieved.

Connect to memcached using telnet (telnet localhost 11211) and type  
'stats' to get some stats about the # of keys, memory used, etc.  Do  
that a couple of times and see if the numbers change.

Also, did you clear your config cache when you enabled memcache on  
production?

On Apr 27, 2009, at 4:20 PM, meppum wrote:

>
> a few things to check:
>
> settings.yml - make sure cache: on is set under the .prod
> factories.yml - make sure view_cache is uncommented and set correctly
> (class: sfMemcacheCache, etc)
> cache.yml - make sure the cache.yml file exists for the module you are
> trying to cache.
>
> On Apr 27, 12:35 pm, HiDDeN  wrote:
>> How would I know if memcache is caching?
>>
>> I have configured mycachethrough memcache (using the sfMemcacheCache
>> class in factories.yml), and in my development server it's noticeable
>> that it's caching (because it's fast), but in my production server is
>> not as fast, it seems to be processing the action each time it's
>> called.
>>
>> So... how could I know it? I know the getExtendedStats gives this
>> information, but as Symfony doescachetransparently from the user, I
>> don't know how can I get the memcache identifier that Symfony is
>> using...
>>
>> Anyone knows?
>
> >

--
Jacob Coby







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



[symfony-users] Re: Removing records from database

2009-04-27 Thread Eno

On Mon, 27 Apr 2009, HAUSa wrote:

> I see that Propel uses the first option: complete removal of data from
> the database. My question is: is there also built-in support for
> option two?

http://www.symfony-project.org/plugins/sfPropelParanoidBehaviorPlugin



-- 



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



[symfony-users] Removing records from database

2009-04-27 Thread HAUSa

There is an always ongoing discussion under web developer: if some
information is being deleted from your database, should it be
completely removed or just been hidden from the front-end?

Arguments for the first option: it is clean and you can make full use
of database options (such as ON DELETE).
Arguments for the second option: no data will ever be gone lost, you
can always recover data and there will never be fully broken relation
keys.

I see that Propel uses the first option: complete removal of data from
the database. My question is: is there also built-in support for
option two?

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



[symfony-users] sfJobQueuePlugin

2009-04-27 Thread kevinkevin

trying to work with sfJobQueuePlugin with 1.1

cannot use standard install command, so downlaoded and uptar'd package
in plugins.

ran propel-build-all , database built fine.

but running  ./symfony sfqueue-start-queuemanager frontend

returns
  Task "sfqueue-start-queuemanager" is not defined.

Pretty common error for tasks, but not sure if I need to rewrite the
task file, rename it, or what exactly.

can anyone shed any light to get this moving?

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



[symfony-users] How to know if memcache is caching

2009-04-27 Thread HiDDeN

How would I know if memcache is caching?

I have configured my cache through memcache (using the sfMemcacheCache
class in factories.yml), and in my development server it's noticeable
that it's caching (because it's fast), but in my production server is
not as fast, it seems to be processing the action each time it's
called.

So... how could I know it? I know the getExtendedStats gives this
information, but as Symfony does cache transparently from the user, I
don't know how can I get the memcache identifier that Symfony is
using...

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



[symfony-users] symfony 1.2.6 released : Security fix

2009-04-27 Thread Fabien Potencier

In accordance with our security policy we are releasing today symfony 
1.2.6 to fix a security issue that has been spotted by the symfony core 
team.

You can find all the details on the symfony project blog:

http://www.symfony-project.org/blog/2009/04/27/symfony-1-2-6-security-fix

Fabien

-- 
Fabien Potencier
Sensio CEO - symfony lead developer
sensiolabs.com | symfony-project.org | fabien.potencier.org
Tél: +33 1 40 99 80 80


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



[symfony-users] Symfony Cookie Issues

2009-04-27 Thread bpfar...@gmail.com

I built an application for schools using symfony and moodle.  A big
problem we're encountering is that when a user logs in, and then logs
out, and another user logs in, they're getting the first user's login
information.

Here's some background:

Moodle is an LMS, and we handle authentication by first authenticating
in moodle and then redirecting to a symfony login action and passing
two parameters that map to a row in a database table that contains a
user's id.  From here we just set a symfony attribute with the user's
ID.  We're using symfony as a layer on top of moodle so that we can
quickly iterate and add new features.

So again, the problem is that a user will log in, is able to see his
information, and then if he logs out, and another user logs in, she is
correctly authenticated with moodle but the session attribute that's
stored in symfony is the wrong ID.  Now, if we clear cookies, any user
can log in correctly.

Does anyone know if anything like this has happened before with
symfony?  Could it be the way that the school's network is set up?
Right now we're pretty clueless and frustrated, so if anyone has any
ideas, I'd love to hear them.

The URL for the site is www.globalclassroom.us, if anyone wants to
check it out firsthand.

Thanks,

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



[symfony-users] Re: we are going to convert a site from Propel to Doctrine. What are the pain points?

2009-04-27 Thread Crowley

Try the sfDbFinder plugin. It has adatpter both for propel and
doctrine. And the syntax is similar to Doctrine.

On Apr 27, 11:00 am, HiDDeN  wrote:
> Why are you changing to Doctrine? It is a bit tricky when doing some
> things. For example, if you want to write a custom SQL, or if you want
> to write a Full-Text search, or just work with the backend (because
> the Doctrine pager is slow...)
>
> On Apr 25, 9:16 pm, Alexandru-Emil Lupu  wrote:
>
> > I never used Doctrine...but i think the pain will be the Criteria (s)
> > changes. If you have "Criterias" outside the model (i mean in action...)
> > then it will be a pain in the a**
> > alecs
>
> > On Sat, Apr 25, 2009 at 9:44 PM, Lawrence Krubner 
> > wrote:
>
> > > We are going to convert a site from using Propel to using Doctrine.
> > > Have others done this? Can you suggest what the pain points are?
>
> > > I haven't looked, but I assume the Doctrine interface is different and
> > > therefore we need to crawl through our code changing a lot of method
> > > calls.
>
> > --
> > I am on twitter:http://twitter.com/alecslupu
> > I am on linkedIn:http://www.linkedin.com/in/alecslupu
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: hiding a field in admin generator by a credential?

2009-04-27 Thread Alexandru-Emil Lupu
hi!
i think that have to provide a valid "credential" name.
Also ... make sure that the user that you are using to test out does not
have the credential.
alecs

On Mon, Apr 27, 2009 at 2:12 PM, Matthias N. <
matthias.nothh...@googlemail.com> wrote:

>
> Hi,
>
> is it possible in the admin generator (sf 1.2 / Doctrine) to hide
> fields depending on credentials?
>
> I tried
>
> fields:
>  myfield: { credentials: editMyField }
>
> But it doesn't work. Is it supported at all?
>
> regards,
> Matthias
> >
>


-- 
I am on twitter: http://twitter.com/alecslupu
I am on linkedIn: http://www.linkedin.com/in/alecslupu

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



[symfony-users] Re: i18n in yml files

2009-04-27 Thread Alexandru-Emil Lupu
hi!
check your cache folder coresponding to that app/env/module/ and you will
see that "action.class.php" handles the strings that you have in the yml
file.
all what you have to do, is to i18n:extract the texts.
I am not really sure that the extractor parses out the "action" dir as well.

Alecs

On Mon, Apr 27, 2009 at 3:44 PM, Alexander Deruwe  wrote:

>
> Hello,
>
> Been struggling with figuring out how to get literal strings from yml
> files into xliff files.  The admin generator's generator.yml comes to
> mind:
>
>   edit:
> title:  Edit Operator '%%name%%'
>   new:
> title:  New Operator
>
> How would those two strings be translated?
>
>
> Alexander
>
> >
>


-- 
I am on twitter: http://twitter.com/alecslupu
I am on linkedIn: http://www.linkedin.com/in/alecslupu

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



[symfony-users] Re: Propel Problem.....plz help

2009-04-27 Thread Frank He
I sugest you first use $c->toString() to print out the query and see where
is the error.

On Mon, Apr 27, 2009 at 8:11 AM, Pooja  wrote:

>
> Hi All i have tired to convert below Sql query in symfonyIt is
> reporting Error
> Sql Query is..
> select d.dest_name,e.emp_name,c.date from destination_table d,
> emp_table e, cab_req_table c where e.emp_id=c.emp_id AND
> c.dest_id=d.id;
>
> In SYmfony:
> $c=new criteria();
> $c->addJoin(CabReqTablePeer::DEST_ID,DestinationTablePeer::ID);
> $c->addJoin(CabReqTablePeer::EMP_ID,EmpTablePeer::EMP_ID);
> $c->addSelectColumn(EmpTablePeer::EMP_NAME);
> $c->addSelectColumn(DestinationTablePeer::DEST_NAME);
> $c->addSelectColumn(CabReqTablePeer::DATE);
> $rs=CabReqTablePeer::doSelect($c);
>
> >
>

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



[symfony-users] i18n in yml files

2009-04-27 Thread Alexander Deruwe

Hello,

Been struggling with figuring out how to get literal strings from yml  
files into xliff files.  The admin generator's generator.yml comes to  
mind:

   edit:
 title:  Edit Operator '%%name%%'
   new:
 title:  New Operator

How would those two strings be translated?


Alexander

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



[symfony-users] Propel Problem.....plz help

2009-04-27 Thread Pooja

Hi All i have tired to convert below Sql query in symfonyIt is
reporting Error
Sql Query is..
select d.dest_name,e.emp_name,c.date from destination_table d,
emp_table e, cab_req_table c where e.emp_id=c.emp_id AND
c.dest_id=d.id;

In SYmfony:
$c=new criteria();
$c->addJoin(CabReqTablePeer::DEST_ID,DestinationTablePeer::ID);
$c->addJoin(CabReqTablePeer::EMP_ID,EmpTablePeer::EMP_ID);
$c->addSelectColumn(EmpTablePeer::EMP_NAME);
$c->addSelectColumn(DestinationTablePeer::DEST_NAME);
$c->addSelectColumn(CabReqTablePeer::DATE);
$rs=CabReqTablePeer::doSelect($c);

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



[symfony-users] is it possible to change suffix js.php to .js with use_dynamic_javascript ?

2009-04-27 Thread net2000...@gmail.com

is it possible to change suffix for symfony template files js.php to .js 
when we using use_dynamic_javascript ?
for example from:

indexSuccess.js.php

to:

indexSuccess.js

I am using symfony 1.1

Eclipse does not handle too good two part suffix files


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



[symfony-users] hiding a field in admin generator by a credential?

2009-04-27 Thread Matthias N.

Hi,

is it possible in the admin generator (sf 1.2 / Doctrine) to hide
fields depending on credentials?

I tried

fields:
  myfield: { credentials: editMyField }

But it doesn't work. Is it supported at all?

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



[symfony-users] Re: Updating the session in a cached action

2009-04-27 Thread HiDDeN

I have found something in the book that is the key I'm searching for:

You need to add your filter to the filter chain, and for that, you
must declare the filter class in the filters.yml, located in the
application OR IN THE MODULE config/ directory, as shown in Listing
6-32.

Notice the "in the module". So, I can create my own filter just for
that module. That is what I was searching for.


Thanks anyway :)



On Apr 27, 11:51 am, HiDDeN  wrote:
> Ok. But there is another problem: I use memcache as my cache. Will
> this be a problem?
>
> On Apr 27, 11:40 am, Thomas Rabaix  wrote:
>
> > It should be compatible; there is no much changes in filter/cache between
> > 1.1 and 1.2.
>
> > On Mon, Apr 27, 2009 at 11:32 AM, HiDDeN  wrote:
>
> > > Thomas, I use Symfony 1.1, and I see that your cache filter is
> > > compatible only for 1.2 version
>
> > > Is there some other solution, please?
>
> > > On Apr 24, 6:50 pm, Thomas Rabaix  wrote:
> > > > just use swUserContextCacheFilter.class.php<
> > >http://trac.symfony-project.org/browser/plugins/swToolboxPlugin/sf1.2..
> > > .>class
> > > > as your cache filter ;)
>
> > > > If your main action is name 'view', just create a 
> > > > executeView_UserContext
> > > > action. This method will be always called. So you can perform user
> > > specific
> > > > code in that action.
>
> > > >http://trac.symfony-project.org/browser/plugins/swToolboxPlugin/sf1.2...
>
> > > > On Fri, Apr 24, 2009 at 6:18 PM, HiDDeN 
> > > wrote:
>
> > > > > Yes, I know that. I did read the book. But that action makes heavy
> > > > > queries to the database, so, if I just cache the listing of the data
> > > > > I'm getting, I will be executing always those heavy queries... that is
> > > > > the reason I was caching the action.
>
> > > > > On Apr 24, 5:13 pm, Eno  wrote:
> > > > > > On Fri, 24 Apr 2009, HiDDeN wrote:
> > > > > > > Eno, what you are recommending is to cache parts of the template. 
> > > > > > > I
> > > > > > > need to cache the action as well.
>
> > > > > > But you need the action to run as well. You can't have it both ways 
> > > > > > -
> > > > > > either you run the action or you dont. The only way you can get the
> > > > > action
> > > > > > to run every time is to NOT cache it; intead you cache partials and
> > > > > > fragments of the template.
>
> > > > > > Seehttp://
> > > > >www.symfony-project.org/book/1_2/12-Caching#chapter_12_sub_cac...
> > > > > > where it says:
>
> > > > > > "Action caching applies to only a subset of actions. For the other
> > > > > > actions--those that update data or display session-dependent
> > > information
> > > > > > in the template--there is still room for cache improvement but in a
> > > > > > different way. Symfony provides a third cache type, which is
> > > dedicated to
> > > > > > template fragments and enabled directly inside the template. In this
> > > > > mode,
> > > > > > the action is always executed, and the template is split into
> > > executed
> > > > > > fragments and fragments in the cache, ..."
>
> > > > > > --
>
> > > > --
> > > > Thomas Rabaixhttp://rabaix.net
>
> > --
> > Thomas Rabaixhttp://rabaix.net
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Updating the session in a cached action

2009-04-27 Thread HiDDeN

Ok. But there is another problem: I use memcache as my cache. Will
this be a problem?


On Apr 27, 11:40 am, Thomas Rabaix  wrote:
> It should be compatible; there is no much changes in filter/cache between
> 1.1 and 1.2.
>
>
>
> On Mon, Apr 27, 2009 at 11:32 AM, HiDDeN  wrote:
>
> > Thomas, I use Symfony 1.1, and I see that your cache filter is
> > compatible only for 1.2 version
>
> > Is there some other solution, please?
>
> > On Apr 24, 6:50 pm, Thomas Rabaix  wrote:
> > > just use swUserContextCacheFilter.class.php<
> >http://trac.symfony-project.org/browser/plugins/swToolboxPlugin/sf1.2..
> > .>class
> > > as your cache filter ;)
>
> > > If your main action is name 'view', just create a executeView_UserContext
> > > action. This method will be always called. So you can perform user
> > specific
> > > code in that action.
>
> > >http://trac.symfony-project.org/browser/plugins/swToolboxPlugin/sf1.2...
>
> > > On Fri, Apr 24, 2009 at 6:18 PM, HiDDeN 
> > wrote:
>
> > > > Yes, I know that. I did read the book. But that action makes heavy
> > > > queries to the database, so, if I just cache the listing of the data
> > > > I'm getting, I will be executing always those heavy queries... that is
> > > > the reason I was caching the action.
>
> > > > On Apr 24, 5:13 pm, Eno  wrote:
> > > > > On Fri, 24 Apr 2009, HiDDeN wrote:
> > > > > > Eno, what you are recommending is to cache parts of the template. I
> > > > > > need to cache the action as well.
>
> > > > > But you need the action to run as well. You can't have it both ways -
> > > > > either you run the action or you dont. The only way you can get the
> > > > action
> > > > > to run every time is to NOT cache it; intead you cache partials and
> > > > > fragments of the template.
>
> > > > > Seehttp://
> > > >www.symfony-project.org/book/1_2/12-Caching#chapter_12_sub_cac...
> > > > > where it says:
>
> > > > > "Action caching applies to only a subset of actions. For the other
> > > > > actions--those that update data or display session-dependent
> > information
> > > > > in the template--there is still room for cache improvement but in a
> > > > > different way. Symfony provides a third cache type, which is
> > dedicated to
> > > > > template fragments and enabled directly inside the template. In this
> > > > mode,
> > > > > the action is always executed, and the template is split into
> > executed
> > > > > fragments and fragments in the cache, ..."
>
> > > > > --
>
> > > --
> > > Thomas Rabaixhttp://rabaix.net
>
> --
> Thomas Rabaixhttp://rabaix.net
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Chargement de l'extension oci8

2009-04-27 Thread Ghizlane Zinbi
Hi Alex,

I replaced

all:
  propel:
class:  sfPropelDatabase
param:
   phptype: oracle
   host:   172.20.110.67
   database: SESAME_REMOTE
   username: system
   password: sesame

with:

all:
  propel:
class:  sfPropelDatabase
param:
   dsn: oracle:// system:ses...@172.20.110.67:1521/SESAME.BD

knowning that my tnsnames is :

*SESAME_REMOTE =*

*  (DESCRIPTION =*

*(ADDRESS = (PROTOCOL = TCP)(HOST = 172.20.110.67)(PORT = 1521))*

*(CONNECT_DATA =*

*  (SERVER = DEDICATED)*

*  (SERVICE_NAME = SESAME.BD)*

* *

***)*

*  )*
But still dosent work, any idea?

Thanks for help


Ghizlane,


2009/4/25 Alexandru-Emil Lupu 

> hi!
> try to replace this
> all:
>   propel:
> class:  sfPropelDatabase
> param:
>phptype: oracle
>host:   172.20.110.67
>database: SESAME_REMOTE
>username: system
>password: sesame
> with a DSN
> Alecs
>
> On Fri, Apr 24, 2009 at 6:54 PM, Eno  wrote:
>
>>
>> On Fri, 24 Apr 2009, Ghizlane Zinbi wrote:
>>
>> > I try it, i have the following response
>> >
>> > Connected to:
>> > Oracle9i Release 9.2.0.1.0 - Production
>> > JServer Release 9.2.0.1.0 - Production
>> >
>> > Seems it s connect
>>
>> But can you do anything? Run queries? Look at table structures?
>>
>>
>>
>> --
>>
>>
>>
>>
>>
>
>
> --
> I am on twitter: http://twitter.com/alecslupu
> I am on linkedIn: http://www.linkedin.com/in/alecslupu
>
>
> >
>

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



[symfony-users] Re: Updating the session in a cached action

2009-04-27 Thread Thomas Rabaix
It should be compatible; there is no much changes in filter/cache between
1.1 and 1.2.

On Mon, Apr 27, 2009 at 11:32 AM, HiDDeN  wrote:

>
> Thomas, I use Symfony 1.1, and I see that your cache filter is
> compatible only for 1.2 version
>
> Is there some other solution, please?
>
>
> On Apr 24, 6:50 pm, Thomas Rabaix  wrote:
> > just use swUserContextCacheFilter.class.php<
> http://trac.symfony-project.org/browser/plugins/swToolboxPlugin/sf1.2..
> .>class
> > as your cache filter ;)
> >
> > If your main action is name 'view', just create a executeView_UserContext
> > action. This method will be always called. So you can perform user
> specific
> > code in that action.
> >
> > http://trac.symfony-project.org/browser/plugins/swToolboxPlugin/sf1.2...
> >
> >
> >
> > On Fri, Apr 24, 2009 at 6:18 PM, HiDDeN 
> wrote:
> >
> > > Yes, I know that. I did read the book. But that action makes heavy
> > > queries to the database, so, if I just cache the listing of the data
> > > I'm getting, I will be executing always those heavy queries... that is
> > > the reason I was caching the action.
> >
> > > On Apr 24, 5:13 pm, Eno  wrote:
> > > > On Fri, 24 Apr 2009, HiDDeN wrote:
> > > > > Eno, what you are recommending is to cache parts of the template. I
> > > > > need to cache the action as well.
> >
> > > > But you need the action to run as well. You can't have it both ways -
> > > > either you run the action or you dont. The only way you can get the
> > > action
> > > > to run every time is to NOT cache it; intead you cache partials and
> > > > fragments of the template.
> >
> > > > Seehttp://
> > >www.symfony-project.org/book/1_2/12-Caching#chapter_12_sub_cac...
> > > > where it says:
> >
> > > > "Action caching applies to only a subset of actions. For the other
> > > > actions--those that update data or display session-dependent
> information
> > > > in the template--there is still room for cache improvement but in a
> > > > different way. Symfony provides a third cache type, which is
> dedicated to
> > > > template fragments and enabled directly inside the template. In this
> > > mode,
> > > > the action is always executed, and the template is split into
> executed
> > > > fragments and fragments in the cache, ..."
> >
> > > > --
> >
> > --
> > Thomas Rabaixhttp://rabaix.net
> >
>


-- 
Thomas Rabaix
http://rabaix.net

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



[symfony-users] Re: Updating the session in a cached action

2009-04-27 Thread HiDDeN

Thomas, I use Symfony 1.1, and I see that your cache filter is
compatible only for 1.2 version

Is there some other solution, please?


On Apr 24, 6:50 pm, Thomas Rabaix  wrote:
> just use 
> swUserContextCacheFilter.class.phpclass
> as your cache filter ;)
>
> If your main action is name 'view', just create a executeView_UserContext
> action. This method will be always called. So you can perform user specific
> code in that action.
>
> http://trac.symfony-project.org/browser/plugins/swToolboxPlugin/sf1.2...
>
>
>
> On Fri, Apr 24, 2009 at 6:18 PM, HiDDeN  wrote:
>
> > Yes, I know that. I did read the book. But that action makes heavy
> > queries to the database, so, if I just cache the listing of the data
> > I'm getting, I will be executing always those heavy queries... that is
> > the reason I was caching the action.
>
> > On Apr 24, 5:13 pm, Eno  wrote:
> > > On Fri, 24 Apr 2009, HiDDeN wrote:
> > > > Eno, what you are recommending is to cache parts of the template. I
> > > > need to cache the action as well.
>
> > > But you need the action to run as well. You can't have it both ways -
> > > either you run the action or you dont. The only way you can get the
> > action
> > > to run every time is to NOT cache it; intead you cache partials and
> > > fragments of the template.
>
> > > Seehttp://
> >www.symfony-project.org/book/1_2/12-Caching#chapter_12_sub_cac...
> > > where it says:
>
> > > "Action caching applies to only a subset of actions. For the other
> > > actions--those that update data or display session-dependent information
> > > in the template--there is still room for cache improvement but in a
> > > different way. Symfony provides a third cache type, which is dedicated to
> > > template fragments and enabled directly inside the template. In this
> > mode,
> > > the action is always executed, and the template is split into executed
> > > fragments and fragments in the cache, ..."
>
> > > --
>
> --
> Thomas Rabaixhttp://rabaix.net
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: we are going to convert a site from Propel to Doctrine. What are the pain points?

2009-04-27 Thread HiDDeN

Why are you changing to Doctrine? It is a bit tricky when doing some
things. For example, if you want to write a custom SQL, or if you want
to write a Full-Text search, or just work with the backend (because
the Doctrine pager is slow...)

On Apr 25, 9:16 pm, Alexandru-Emil Lupu  wrote:
> I never used Doctrine...but i think the pain will be the Criteria (s)
> changes. If you have "Criterias" outside the model (i mean in action...)
> then it will be a pain in the a**
> alecs
>
> On Sat, Apr 25, 2009 at 9:44 PM, Lawrence Krubner 
> wrote:
>
>
>
> > We are going to convert a site from using Propel to using Doctrine.
> > Have others done this? Can you suggest what the pain points are?
>
> > I haven't looked, but I assume the Doctrine interface is different and
> > therefore we need to crawl through our code changing a lot of method
> > calls.
>
> --
> I am on twitter:http://twitter.com/alecslupu
> I am on linkedIn:http://www.linkedin.com/in/alecslupu
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---