Hi!
I need to access the action instance to use sfAction::getPartial in
the executeXX function of sfComponent. Does anybody see a way how to
do this? I tried to find a way, but didn't find one.
regards,
michael
--
If you want to report a vulnerability issue on symfony, please send it to
secur
to say this: use the API documentation to find out what
> you want to do and how to get there. :)
>
> Cheers, Daniel
>
> Sent from my iPad
>
> On Jun 10, 2010, at 8:18 AM, "mlu...@gmail.com" wrote:
>
> > Hi!
>
> > I need to access the action inst
> component method to make it display that partial?
>
> On Thursday 10 June 2010 08:18:33 mlu...@gmail.com wrote:
>
> > Hi!
>
> > I need to access the action instance to use sfAction::getPartial in
> > the executeXX function of sfComponent. Does anybody see a way how
p.s.:
@McCumskey:
There is no renderPartial in sfComponent.
I forgot:
The documentation would be much faster to navigate if class names in
function signatures would be linked to the class decumentation.
regards,
michael
On 10 Jun., 19:07, "mlu...@gmail.com" wrote:
> Hi!
p.s.:
@McCumskey:
There is no renderPartial in sfComponent.
I forgot:
The documentation would be much faster to navigate is class names in
function signature would be linked to the class' documentaion.
regards,
michael
On 10 Jun., 19:07, "mlu...@gmail.com" wrote:
> Hi!
>
Hi!
I am working on a portal where users have a public profile. For this I
would like to extend the sfGuardUserPeer class with a
retrieveByUserName function.
Can I do this in the in: plugins/sfGuardPlugin/lib/model/
sfGuardUserPeer.php or will these files be overwritten when I update
the plugin o
The class already has got this function. I just didn't saw it because
sfGuardPeer extends PluginsfGuardUserPeer instead of
BasesfGuardUserPeer.
Thx anyway.
PluginsfGuardUserPeer
On 18 Jul., 13:29, "mlu...@gmail.com" wrote:
> Hi!
>
> I am working on a portal where use
Hi!
In my registration form I want to make a blacklist for user names. For
this i made a table containing entryies that are not allowed for user
names. My idea was to work with "like" which allows entries like "%bad
%" in the blacklist.
The SQL would look like this:
SELECT *
FROM userblacklist u
e:
> $criteria->setIgnoreCase(true); //add this If you want a column to be
> treated in case-sensitive fashion
> $criteria->add(UserblackListPeer::ENTRY, '%'.$values["username"].'%',
> Criteria::LIKE);
>
> On Jul 19, 4:03 am, "mlu...@gmail.com&
I know what "%" is. It's a copy$paste failure. The second onw should
look like this:
SELECT *
FROM userblacklist u
where "badNew" like entry;
On 18 Jul., 23:24, Gábor Fási wrote:
> % is the wildcard similar to * in a like query
>
> On Sun, Jul 18, 2010
cklist.ENTRY
:-)
On 18 Jul., 23:53, nibsirahsieu wrote:
> may be you can use zend lucene or solr
>
> On Jul 19, 4:26 am, "mlu...@gmail.com" wrote:
>
> > I know what "%" is. It's a copy$paste failure. The second onw should
> > look like this:
>
Hi!
In my app i am using sfGuardPlugin. I have extended the class
sfGuardUserForm to build my own registration form class. In the
overridden configure method I have code below to define the rules for
the username:
$this->setValidator('username',
new sfValidatorAnd(
array(
new sfValida
Thx!
On 26 Jul., 15:50, Gábor Fási wrote:
> It works, your expression is wrong. Try '/^[a-zA-Z]{1,}[a-zA-Z0-9]$/'.
>
> On Mon, Jul 26, 2010 at 15:34, mlu...@gmail.com wrote:
> > Hi!
>
> > In my app i am using sfGuardPlugin. I have extended the class
&
Hi!
I chave got a problem with credentials. In my action I add a
credential "beadmin"
...
$this->getUser()->setAuthenticated(true);
$this->getUser()->addCredential("beadmin");
...
If I open the session file with a textedit I see the credential stored
in the session.
But My user doesn't have it.
solved, my fault. thx
On 28 Jul., 14:24, "mlu...@gmail.com" wrote:
> Hi!
>
> I chave got a problem with credentials. In my action I add a
> credential "beadmin"
>
> ...
> $this->getUser()->setAuthenticated(true);
> $this->getUser()->addCre
In my app i am using sfGuardPlugin. In the frontend it's not possible
the change the user name of an existing user, that's OK of course.
But today I am working on the backend and I have seen there it's
possible to change the user name.
My first thought was to define the username as disabled in the
username:
attributes:
readonly: readonly
...
regards,
Michael
On 29 Jul., 16:01, "mlu...@gmail.com" wrote:
> In my app i am using sfGuardPlugin. In the frontend it's not possible
> the change the user name of an existing user, that's OK
Hi!
I am writting tests for all my forms. Yesterday in the evening
everything went fine and today it doesn't.
This is the start of my test file:
...
get('/gamelists/index')->
with('request')->begin()->
isParameter('module', 'lists')->
/
solved
On 3 Aug., 09:19, "mlu...@gmail.com" wrote:
> Hi!
>
> I am writting tests for all my forms. Yesterday in the evening
> everything went fine and today it doesn't.
>
> This is the start of my test file:
> ...
> include(dirname(__FILE__).'/../../
Hi!
I want to show you my attempt of a security/form strategy and want to
know what you are thinking about it.
*The problem:*
If I read the source correct the CSRF_token is made of the session id
and the class name of the form.
When you load a form and submit it after a certain time you get a cs
Don't you really have an opinion about this?
I'm sure you have ;-)
On 4 Aug., 16:44, "mlu...@gmail.com" wrote:
> Hi!
>
> I want to show you my attempt of a security/form strategy and want to
> know what you are thinking about it.
>
> *The problem:*
> If
t?
On 6 Aug., 10:30, Florian wrote:
> Use something else than the session_id to generate the CSRF token
> maybe ?
> Or increase the session timeout ;)
>
> what about functional tests with captcha ?
>
> On Aug 6, 7:57 am, "mlu...@gmail.com" wrote:
>
> > Do
t; return md5($this->csrfSecret.session_id().get_class($this)); // or
> whatever else you
>
> want
> }
>
> The BaseForm class is in the "user land", it has been created to
> customize all your application forms without having to modify core
> classes.
&g
I have the same problem. The reason is getError doesn't return an
array. It's a string. But I don't know what happens if there are more
than one error on one field.
michael
On 20 Mai, 10:48, ctrlming wrote:
> Oh my god~..
> I got another question .
> inhttp://www.symfony-project.org/forms/1_2/e
It's the same to me.
The returned value isn't an array. You can display the error message
with __toString().
But what happens if there are more than one error to the field.
Michael
On 20 Mai, 10:48, ctrlming wrote:
> Oh my god~..
> I got another question .
> inhttp://www.symfony-project.org/fo
I have now created two errors at one field with max_length=9,
min_length=11 and posting 10 characters.
It seems there always just returned one error.
My work around looks like this:
hasError()): ?>
getError();
Hi!
In my project the escaping doesn't work.
These are my settings:
all:
.settings:
...
# Output escaping settings
escaping_strategy: on
escaping_method:ESC_ENTITIES
In the database I added html code to a field.
This is the source code of the delivered html page
No tabs and just frontend.
On 16 Jul., 16:36, Eno wrote:
> On Thu, 16 Jul 2009, mlu...@gmail.com wrote:
> > I added this line in an action
> > ...
> > var_dump( sfConfig::get('sf_escaping_strategy') );
> > ...
>
> > The result is
>
> >
And now I have to rework all my templates :-(
thanky you,
Michael
On 16 Jul., 17:06, "mlu...@gmail.com" wrote:
> No tabs and just frontend.
>
> On 16 Jul., 16:36, Eno wrote:
>
> > On Thu, 16 Jul 2009, mlu...@gmail.com wrote:
> > > I added this line in an
Hi!
I am developing a web site with a search function.
For the search function I generated a module and an action.
in the routing.yml I made a rule for this action.
I have two parameters: q for query and p for page
...
search:
url: /search
param: { module: search, action:result }
...
The
Thank you for the feedback.
Now it's working, but the url looks like this:
/search/q/funny/page/2
Can I change this?
Michael
On 20 Jul., 18:14, Eno wrote:
> On Mon, 20 Jul 2009, mlu...@gmail.com wrote:
> > I think I have to define something in the routing.yml, but I have no
Hi!
has anybody an idea about this? it's really urgent. thank you.
michael
On 20 Jul., 19:09, "mlu...@gmail.com" wrote:
> Thank you for the feedback.
>
> Now it's working, but the url looks like this:
>
> /search/q/funny/page/2
>
> Can I change thi
>
> too quick: options: { extra_parameters_as_query_string: true }
>
> On Jul 21, 11:24 am, Tonio wrote:
>
> > Hello,
>
> > Try
> > options: { generate_shortest_url: false }
>
> > from:http://www.symfony-project.org/tutorial/1_2/whats-new#chapter_3fb3b0c..
Hi!
I have again a routing problem(It seems the routing system doesn't
like me very much :-))
On my site I have a category list, which shoes entries by category.
The routing is defined as:
...
showcategory:
url: /category/:slug/:page
param: { module: gamelists, action: category, slug: acti
Hi!
I was now looking for a solution for two days. And it's hard to find a
working one. Finally I found it and to make it easier for next one
looking for a solution, I will post it here:
RewriteRule ^(.+)/$ http://%{HTTP_HOST}/$1 [R=301,L]
This line added into the .htaccess removes the traili
Hi!
Problem is solved.
I have nested partial calls and I forgot to use $sf_data->getRaw() in
the parameter array for the nested call.
regards,
Michael
http://www.kineticarm.com
http://www.dikeytus.com
http://www.lueftenegger.at
On 23 Jul., 20:08, Eno wrote:
> On Thu, 23 Jul 200
36 matches
Mail list logo