Am 19.01.2010 14:40, schrieb diogobaeder:
Hi, guys,
I've posted this one:
http://groups.google.com/group/symfony-users/browse_thread/thread/5432958e71a54747/76035d6987e00ad8?lnk=gstq=diogobaeder#76035d6987e00ad8
But I haven't found a solution, yet. The problem is, I have to deliver
the
Le 18 janv. 2010 à 15:35, Eno a écrit :
On Mon, 18 Jan 2010, Nicolas CHARLOT wrote:
I need to store 2 versions of a same action depending on user status
(authenticated and member or not).
The solution I founded was to write my own viewCacheManager:
It works but all actions are cached
Le 17 janv. 2010 à 22:45, Ali a écrit :
I think it's better to override generateCacheKey function in
ViewCacheManager.
To do this you need to declare 'sf_cache_namespace_callable' config
value and set it to your function name, which will alter the key
depending on the user session
Hi,
If also open the same with php extension, it appears alright.
But if I open as an module/action link, some junk characters appear.
Regards
Deepak Bhatia
On Wed, Jan 20, 2010 at 3:05 PM, DEEPAK BHATIA toreachdee...@gmail.com wrote:
Hi,
If I open this file as html, this appears fine. But
Hi,
I have converted a Microsoft Word Document into the html page.
http://localhost/test.htm
http://localhost/test.php
But when I open this using module/action in the symfony, some junk
characters come in place of bullets.
Please help in this regard.
Regards
Deepak Bhatia
On Wed, Jan 20,
Sorry, When I open this as
http://localhost/test.htm
http://localhost/test.php
The htm/php file appears correctly. But when invoked as module/action,
some junk characters come.
Regards
Deepak
On Wed, Jan 20, 2010 at 4:10 PM, DEEPAK BHATIA toreachdee...@gmail.com wrote:
Hi,
I have converted
It's perfectly normal. These 2 field added by actAsTimestampable
Behavior are not to be editable by users.
You should remove them in your form class configure() method :
unset($this['created_at']);
unset($this['updated_at']);
Hope this helps
Regards,
Benoit
Le 20 janv. 2010 à 06:09,
Calling $form-setDefaults(null) resets all values in the form, that
should work in principle (didn't try out yet). It's a sort of full
reset, and the fields should get the defaults as
If you desire the tainted values (the ones the user entered before
validating them, you could use something like
Any ideas on this?
2010/1/15 Bruno Reis bruno.p.r...@gmail.com
Hi,
I have a referer url and I want to identify what is the module from that
url. So I will need to parse this url the same way symfony does it on it´s
routing or front controller. How can I parse a string containing a URL to
sfRouting::parse()
http://www.symfony-project.org/api/1_4/sfRouting
Before Printing, Think about Your Environmental Responsibility!
Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!
On Wed, Jan 20, 2010 at 12:49 PM, Bruno Reis bruno.p.r...@gmail.com wrote:
Any ideas on this?
Thanks, but how can I use it to know the module?
This is an abstract method and the docs says it *Parses a URL to find a
matching route and sets internal state.
I don´t need to set internal state, I need to know what is the module. Can
you post some code that shows how can I find the module name
When the referrer clicks theurl it will link to your symfony
application right? In that case you can use a post filter checking the
request object to see what the module is that was called.
http://www.symfony-project.org/book/1_2/06-Inside-the-Controller-Layer#chapter_06_filters
On Wed, Jan 20,
Ok, but how do I know what the referer module is?
I need to know what is the module in a url that I get from the
request-getReferer() method.
2010/1/20 Gareth McCumskey gmccums...@gmail.com
When the referrer clicks theurl it will link to your symfony
application right? In that case you can use
Hi, Benoit,
I'll try your tip, but it's strange because it started to happen just
these days, and I've been developing the website for about a month
now... and the website at a test environment works correctly, even
with actAsTimestampable.
At this test environment, the updated query built, seen
On Tue, 19 Jan 2010, a...@speedypin.com wrote:
I want to use a database managed session system as opposed to
filesystem based.
My question is :
What would symfony expect for the table structure of sessions table to
be, both columns and data types?
As usual, this is documented:
Hi,
I have a simple query
Convert a msword document to html.
Display the html file from http://localhost/test.html = The contents are OK
Display file as module/action/template = The contents are not OK
Why does msword converted file is not coming correctly in Symfony ?
Regards
Deepak Bhatia
I'm guessing you have an encoding problem, but without any info,
that's the best I can do.
On Wed, Jan 20, 2010 at 15:06, DEEPAK BHATIA toreachdee...@gmail.com wrote:
Hi,
I have a simple query
Convert a msword document to html.
Display the html file from http://localhost/test.html = The
I'm trying to build a forum, and made a schema.yml with relations in
it, to link a post to a user in sfGuardUser. When I execute the
command symfony doctrine:insert-sql, i get the following error:
SQLSTATE[HY000]: General error: 1005 Can't create table
'tvr.#sql-15f8_92' (er
rno: 150). Failing
Hi there!
I'm using symfony 1.2 with doctrine.
I'm having trouble trying to customize a filter done by the admin-
gen.
I added a sfWidgetFormDoctrineChoice, this works greats. Keys and
values are ok.
Then I added to my form filter class a getFields method, and a
addCodeColumnQuery method.
My
Bonjour,
Je cherche un moyen de fermer un site pendant une mise en prod.
Est-ce possible en ajoutant directement une commande dans setting.yml
ou routing.yml de rediriger vers une page fixe ?
Merci d'avance,
Eric.
--
You received this message because you are subscribed to the Google Groups
Hello everybody,
I would like to ask my customer validator when the default one returns
true (so no call if default one returns false)
For example:
//The default validator:
$this-validatorSchema['link'] = new sfValidatorUrl();
//I added customer validator:
I had had older version of Symfony (1.0), there wasn't any problems
with images and CSSes, until I have installed newest version
(sandbox). There was only text Symfony Project Created' and no images
and CSSes included. So I started googling and I found some methods how
to do it but I haven't found
When I make my actions I use camel case:
WholesalePrice
however it won't show up as wholesale_price. What do I do to get to
view it? It simply wont show at all.
Thanks,
Darren
--
You received this message because you are subscribed to the Google Groups
symfony users group.
To post to this
Will it be possible to open the test.htm as an symfony template ?
On Wed, Jan 20, 2010 at 8:19 PM, Gábor Fási maerl...@gmail.com wrote:
I'm guessing you have an encoding problem, but without any info,
that's the best I can do.
On Wed, Jan 20, 2010 at 15:06, DEEPAK BHATIA
Le 20 janv. 2010 à 12:06, AlexT a écrit :
Sure it will cycle, you must prevent that changing settings temporary.
Kind of:
$oldcallable = sfConfig::get('sf_cache_namespace_callable');
sfConfig::set('sf_cache_namespace_callable', null); //disable cycling
call
Very interesting problem. Sounds like you might need to use a debugger
or a lot of 'die(got here at.__LINE__);' statements in the symfony
libraray if his tip doesn't work.
On Jan 20, 4:44 am, diogobaeder diogobae...@gmail.com wrote:
Hi, Benoit,
I'll try your tip, but it's strange because it
Has anyone set up a .htaccess file to look for any static content
matching the request ending in .html | .json | .xml combined before
redirecting to the Symfony engine? I'm thinking it would be a whole
lot faster.
Doesn't the stock .htaccess file from symfony already do that
for .html files?
--
Hi,
In my test system, I have several databases which are allocated for use
based on the ip address of the originating browser's request. That is, I
allocate dbA to be used by 10.0.0.10, and dbB to be used by 10.0.0.11,
etc.. This is done is to allow parallel tests where each test modifies the
Thank you guy, it works as it had to worked.
--
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
Hello,
I've wondered if it is uncommon to protect normal links against
attackers. I have found a feature request for this issue but no
response since one year.
http://trac.symfony-project.org/ticket/5742
Maybe i misunderstood the concept of csrf in this case. Could somebody
give me
Maybe you can use the sfValidatorAnd?
http://www.symfony-project.org/forms/1_4/en/B-Validators#chapter_b_sub_sfvalidatorand
On Wed, Jan 20, 2010 at 10:39 AM, jojo jojoyangd...@gmail.com wrote:
Hello everybody,
I would like to ask my customer validator when the default one returns
true (so
CSRF is about protecting forms of spamming, adding a field
generated at runtime that identifies the form as unique.
if the form is used otherwise than through the application, the field
for csrf will not be valid, and therefore it will be identified as
an attack.
see it on wikipedia
Hi absalito,
I'm already familiar with the topic in general, but thanks for mention
wikipedia because of: The attacker must determine the right values
for all the form's or URL's inputs. This means for my understanding
URLs are a valid possibility to request actions that change data,
therefore
You should init your module with {propel,doctrine}:generate-admin
On Wed, Jan 20, 2010 at 22:39, absalito absal...@gmail.com wrote:
hi guys,
i'm trying to use generator.yml config file in frontend modules, but
config has not effects in application, even after clear cache.i wonder
if this
I'm trying to create a filter that, if in the production environment,
prepend http://my.cdn.net to all JavaScripts and StyleSheets and add
mtime to the file.
Therefore: /css/main.css would become http://my.cdn.net/css/main.1234567.css
It seems no matter where in the filter chain I add my filter
My mistake. The sql query actually works. There is no 'AS' explicitly
written, it's the first time I see a query working like this. But it
does, I just didn't copy it correctly. The problem was something else
and it's resolved.
Thx
On Jan 20, 4:10 pm, godbout guillaume.lecler...@gmail.com wrote:
Hi everybody,
using [B]symfony 1.2.11[/B] I'm experiencing an error just like the
one described in [url=http://trac.symfony-project.org/ticket/5140]
ticket 5140[/url]. When I change my generator.yml file to something
like theme: myTheme I get the following error:
Fatal error: Class
I have the same issue. I don't think an underscorized route is
automatically camelized to match an action. So what I do is create an
entry in routing.yml to match the underscorized route.
On Jan 21, 1:14 am, Darren884 darren...@gmail.com wrote:
When I make my actions I use camel case:
Look at using the sfInflector class built into symfony. I know there
is a function to camelize an underscored string as well as humanize an
underscored string (i.e. convert this_is_a_string into This is a
string), but I can't remember off hand what the function is to convert
camelcased names into
Don't Know if it is best practice, but I did it like this:
store the actual Module in the Users Attributes. If the current module
differs from the strored module, than you know the referring module and
can store the new module.
Regards,
Christopher.
Bruno Reis schrieb:
Hi,
I have a
Any suggestions/guesses...:-)
On Wed, Jan 20, 2010 at 4:10 PM, DEEPAK BHATIA toreachdee...@gmail.com wrote:
Hi,
I have converted a Microsoft Word Document into the html page.
http://localhost/test.htm
http://localhost/test.php
But when I open this using module/action in the symfony, some
41 matches
Mail list logo