[symfony-users] Re: Exporting using sfPhpExcel displays in browser rather than to file

2009-05-10 Thread Fabrice B
Ok here is my code, if that can help you (dirty version, i merged everything together): set_time_limit(1800); $this->setLayout(false); $response = $this->getResponse(); $response->clearHttpHeaders(); // version 2007 $response->setHttpHeader('Content-Type', 'application/ vn

[symfony-users] Re: Set credentials in apps/config/security.yml

2009-05-10 Thread H. Tuttle
As far as I know, security can only be set up on a per-module basis using the module level config/security.yml file. BenjaM1 wrote: > Hy, > > I'm trying to secure each modules of my application and I'm wondering > if I can do that in the apps/my_app/config/security.yml like this : > > modul_name:

[symfony-users] Re: some errors

2009-05-10 Thread wik
Hello, the main issue, so far, is problem to write into cache directory, i.e. /var/www/comp461/sf_sandbox/cache Make sure webserver can write into. ;) Do same for the *log* folder, i.e. /var/www/comp461/sf_sandbox/log Thanks. p.s. it's described here http://www.symfony-project.org/book/1_2/0

[symfony-users] Set credentials in apps/config/security.yml

2009-05-10 Thread BenjaM1
Hy, I'm trying to secure each modules of my application and I'm wondering if I can do that in the apps/my_app/config/security.yml like this : modul_name: security: credentials: [create_user, edit_user, delete_user] but it doesn't work. I know that if I write all: credentials: [create

[symfony-users] Re: Cache Engine and Profile Pages

2009-05-10 Thread Sid Ferreira
Cool this ones... Basically when user update the profile, update his profile page, else, let it die cached On Sun, May 10, 2009 at 15:34, David Ashwood wrote: > There’s a method on sfViewCacheManager::remove($URI) for removing an > entry but it depends where you are and what you’re trying to rem

[symfony-users] Re: Cache Engine and Profile Pages

2009-05-10 Thread David Ashwood
There’s a method on sfViewCacheManager::remove($URI) for removing an entry but it depends where you are and what you’re trying to remove. I would assume that removing the entry would force the view to be rendered and then recached on completion. At least with the debug panel you get caching

[symfony-users] Re: Cache Engine and Profile Pages

2009-05-10 Thread Sid Ferreira
nice, now all I have to do is find a way to force the 'reset' of it... On Sun, May 10, 2009 at 14:27, David Ashwood wrote: > > Wotcha Sid, > > If you include the userID in the route/URL for the profile then it'll have > it's own cache element. > There's some detail here > (http://www.symfony-proj

[symfony-users] Re: Cache Engine and Profile Pages

2009-05-10 Thread David Ashwood
Wotcha Sid, If you include the userID in the route/URL for the profile then it'll have it's own cache element. There's some detail here (http://www.symfony-project.org/book/1_2/12-Caching) -Original Message- From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] O

[symfony-users] Cache Engine and Profile Pages

2009-05-10 Thread Sid Ferreira
Hi, please, Im wandering about the Cache engine about caching profile pages, wich each user has its own, does cache handle that properly? Or if I cache it the cache will make the _same_ page to anyone? Also, how to force the refresh of the cache of a page programatically? --~--~-~--~~-

[symfony-users] Re: preExecute() can't have any argument ?

2009-05-10 Thread Sid Bachtiar
You're welcome :) On Mon, May 11, 2009 at 1:12 AM, dziobacz wrote: > > heheheh - it works !! - You helped me so many times - thx again ;] > > On 10 Maj, 15:02, Sid Bachtiar wrote: >> Try: >> >> public function preExecute() >> { >>   $request = $this->getRequest(); >> >>   // ... use $request he

[symfony-users] Re: preExecute() can't have any argument ?

2009-05-10 Thread dziobacz
heheheh - it works !! - You helped me so many times - thx again ;] On 10 Maj, 15:02, Sid Bachtiar wrote: > Try: > > public function preExecute() > { >   $request = $this->getRequest(); > >   // ... use $request here > > } > > But I have error because preExecute can't have any argument - strange

[symfony-users] Re: preExecute() can't have any argument ?

2009-05-10 Thread Sid Bachtiar
Try: public function preExecute() { $request = $this->getRequest(); // ... use $request here } > But I have error because preExecute can't have any argument - strange > constructor. Any idea ? :) It is not a constructor! It is just a function that Symfony calls before the actual action fun

[symfony-users] Re: Symfony with comet

2009-05-10 Thread Tom Boutell
This could be a bit of a dog with PHP. PHP is designed (and I use that word loosely (: ) to work reasonably efficiently in response to a single web server request and then fall over. PHP can't clean up circular references, so long-running processes tend to soak up more and more memory over time if

[symfony-users] preExecute() can't have any argument ?

2009-05-10 Thread dziobacz
I have in each function one of my module: $this->forward404If(!$request->hasParameter('id')); $a = (int)$request->getParameter('id'); $number = Doctrine_Query::create() ->select('username') ->from('sfGuardUser') ->where('id = ?', $a) ->andWhere('is_super_a

[symfony-users] Re: Zend Search scalability

2009-05-10 Thread David Ashwood
Take a look here for optimising the index that may help: http://framework.zend.com/manual/en/zend.search.lucene.best-practice.html#ze nd.search.lucene.best-practice.indexing-performance I started using Zend Lucene but switched over to using the Doctrine Behaviour that scales better in the test's

[symfony-users] Re: Using SWFUpload to upload muiltple files to symfony 1.2

2009-05-10 Thread David Ashwood
The security issue is mitigated somewhat if you use CRSF in conjunction with what you described and it'll help prevent replay attacks. Just add the crsf field to the post params. -Original Message- From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] On Behalf Of

[symfony-users] Zend Search scalability

2009-05-10 Thread Thibault Jouannic
Hello sf users, I've got a performance problem with zend search. I followed the jobeet tutorial to integrate it, and at the beginning, eveything worked like a charm. Today, I've got 6 documents in db (doesn't seems huge to me), and only a few fields are indexed (title, tags). Now, if a do a

[symfony-users] Re: Using SWFUpload to upload muiltple files to symfony 1.2

2009-05-10 Thread Dincho Todorov
Hi, you should change the session constructor to take sessions ID that you pass from the script you should extend the class that you want to use for session storage in this example it's sfPDOSessionStorage: class myPDOSessionStorage extends sfPDOSessionStorage { public function initialize($opt

[symfony-users] Re: Propel:insert-sql for sqlite fails with "[wrapped: could not find driver]" error.

2009-05-10 Thread David Ashwood
Wow - one of the most comprehensive set of steps I've seen for a while! Regarding your problem - try using this syntax in databases.yml for the dsn: sqlite:///c:/full/windows/path/to/file.db -Original Message- From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com]

[symfony-users] Re: no meta tags - something is wrong with view.yml ?

2009-05-10 Thread dziobacz
WOW - it works - thx You very much :) On 10 Maj, 10:56, Sid Bachtiar wrote: > Try: > > > > > > > > > > On Sun, May 10, 2009 at 8:54 PM, dziobacz wrote: > > > Code: > > > >   > > > And in browser: > > > >   > > > > > > > On 10 Maj, 10:04, Sid Bachtiar wrote: > >> Could you post the co

[symfony-users] Re: autoload PHPExcel

2009-05-10 Thread DEEPAK BHATIA
Hi, I used the following http://www.symfony-project.org/plugins/sfPhpExcelPlugin Does you mean the same or is it some other PHP Library. Regards Deepak Bhatia On 5/10/09, Richtermeister wrote: > > > Hey Tomasz, > > the problem is not that symfony doesn't find the files.. The problem > is th

[symfony-users] Re: no meta tags - something is wrong with view.yml ?

2009-05-10 Thread Sid Bachtiar
Try: On Sun, May 10, 2009 at 8:54 PM, dziobacz wrote: > > Code: > >   > > And in browser: > >   > > > > > On 10 Maj, 10:04, Sid Bachtiar wrote: >> Could you post the code in your layout (e.g.: layout.php) between >> and please. >> >> Also it is possible that the metas are overriden

[symfony-users] Re: no meta tags - something is wrong with view.yml ?

2009-05-10 Thread dziobacz
Code: And in browser: On 10 Maj, 10:04, Sid Bachtiar wrote: > Could you post the code in your layout (e.g.: layout.php) between > and please. > > Also it is possible that the metas are overriden in your module's > config, e.g.: "yourproject/apps/yourapp/modules/yourmod/config/view.

[symfony-users] Re: no meta tags - something is wrong with view.yml ?

2009-05-10 Thread Sid Bachtiar
Could you post the code in your layout (e.g.: layout.php) between and please. Also it is possible that the metas are overriden in your module's config, e.g.: "yourproject/apps/yourapp/modules/yourmod/config/view.yml" On Sun, May 10, 2009 at 7:59 PM, dziobacz wrote: > > After changed layout on

[symfony-users] Re: no meta tags - something is wrong with view.yml ?

2009-05-10 Thread dziobacz
After changed layout on this from symfony tutorial 'meta' also aren't adding. On 10 Maj, 09:55, dziobacz wrote: > Did you symfony cc? > Yes, I did. > > Did you change layout.php? > Yes, I have other layout than in tutorial - my own layout. > > Where did you put that view.yml? > In \sf_sandbox\a

[symfony-users] Re: no meta tags - something is wrong with view.yml ?

2009-05-10 Thread dziobacz
Did you symfony cc? Yes, I did. Did you change layout.php? Yes, I have other layout than in tutorial - my own layout. Where did you put that view.yml? In \sf_sandbox\apps\frontend\config\view.yml - this is strange because javascript and css was added to layout from this file. On 10 Maj, 09:22,

[symfony-users] Re: no meta tags - something is wrong with view.yml ?

2009-05-10 Thread Sid Bachtiar
Did you symfony cc? Did you change layout.php? Where did you put that view.yml? On Sun, May 10, 2009 at 6:59 PM, dziobacz wrote: > > I don't have meta tags :( > > I have in view.yml: > > default: >  http_metas: >    content-type: text/html > >  metas: >    title:        symfony project >    de

[symfony-users] no meta tags - something is wrong with view.yml ?

2009-05-10 Thread dziobacz
I don't have meta tags :( I have in view.yml: default: http_metas: content-type: text/html metas: title:symfony project description: symfony project keywords: symfony, project language: en robots: index, follow stylesheets:[main.css]