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
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:
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
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
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
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
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
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
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?
--~--~-~--~~-
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
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
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
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
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
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
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
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
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
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]
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
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
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
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.
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
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
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,
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
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]
28 matches
Mail list logo