I did not solve this issue either, the workaround I used was to have
those parameters in the URL something like:
/search?id=10 = /search/id/10
or
/search?category=2keyword=232 = /search/category/2/keyword/232
and eliminate the query string from the URL.
gabriel
On Nov 23, 1:22 am, Ken
And what's the problem ? You did tell us the expected result but not the
current result. It will be hard to guess what's wrong ^^
If the problem is the .html missing at the end, you have to look for a
parameter generate_shortest_url in the factories.yml and set it to false.
2010/11/24
I am sorry. I forgot to write what i got.
yes. unfortunatly i got :
www.mydomain.com/aboutus
i expect
www.mydomain.com/aboutus.html
I have changed that setting but still the same result :(
Of course i have cleared cache.
--- 25/11/10 Per tarihinde Pierre-Yves LEBECQ py.leb...@gmail.com
Oppss..
I have changed on backend factories.yml :)
It worked! Thanks Pierre!!
Result :
I have changed
generate_shortest_url: true
to
generate_shortest_url: false
in factories.yml
and worked fine.
Thank you!
--- 25/11/10 Per tarihinde Guychmyrat
The situation: When I choose an check box I unset 2 fields, but if the
form has required fields not filled it stops in 'create' action so you
can fill the remaining required fields. The problem is that If I
wanted to choose another check box I won't have the unset fields
anymore.
I unset the
Im using firefox, just with pt language
my settings.yml is like this:
all:
.settings:
# Form security secret (CSRF protection)
csrf_secret:UniqueSecret
i18n: on
default_culture: pt
culture: pt
# Output escaping settings
escaping_strategy: true
Have you tried to destroy your session and clear cache in project ?
You should apply both to consider a test correct.
2010/11/25 Veríssimo jveriss...@gmail.com
Im using firefox, just with pt language
my settings.yml is like this:
all:
.settings:
# Form security secret (CSRF protection)
I have clear symfony cache, restart httpd service(to destroy session),
and open a new firefox window:
Now i get this in the debug toolbar:
User Toggle details
options:
auto_shutdown: false
culture: null
default_culture: pt
use_flash: true
logging: '1'
timeout: 1800
attributeHolder:
2010/11/24 Gustavo Adrian comfortablynum...@gmail.com:
Hi everyone,
I've recently created a custom validator to validate IP. I have four fields
that need a mandatory IP, and one field in that the IP is optional.
I'm not sure I understand the example. Can you put @NotBlank
constraints on all
From annotations works fine, but how I would have to call it from
validation.yml?
You currently have to provide the full namespace there.
#Application/MyBundle/Resources/config/validation.yml
Application\MyBundle\Entity\Anything:
getters:
address:
- NotBlank: ~
-
Hi Bernhard:
I'm not sure I understand the example. Can you put @NotBlank
constraints on all fields, and additionally @IpAddress constraints on
the first three?
No, the problem is that, if the user fills the fourth field, I need it to be
a valid IP, so I need the same IpAddress Validator on
Hi,
as you know you can edit the credentials of an action or a module
going to file view.yml of the module and editing them.
Our boss doesn't want to go to the files to edit the credentials in
each view.yml file, but wants to have a form where he can select the
modules and the actions of the
2010/11/25 Gustavo Adrian comfortablynum...@gmail.com:
The problem is if I just use @IpAddress on that field and I don't enter a
value, it will complain because is not a valid IP either.
All validators except NotNull and NotBlank should treat NULL values
(or empty values, in your case) as
All validators except NotNull and NotBlank should treat NULL values
(or empty values, in your case) as valid. Sorry, this is not
documented yet.
Thanks for clarify this point. But then there's a problem with this too. I
saw that validators check for null values like:
if ( $value === null )
{
14 matches
Mail list logo