You should realy not use myUser to deal with no user related data, it's
wrong :)
I don't know your need, but I suggest you to use a component.
Just read the doc, it's simple as a include_partial, except that your
variables come from an action in a components.class.php :-)
My 2cts
On Sat, Mar 20,
You re welcome,
i m just not really active in the mailing list, i prefer using the
real forum ~
On Mar 19, 9:13 pm, alexmm wrote:
> Oh thx so:
> class myUser extends sfBasicSecurityUser
> {
>
> public function Test()
> {
> return Doctrine::getTable('Texts')->getRandomText();
>
Oh thx so:
class myUser extends sfBasicSecurityUser
{
public function Test()
{
return Doctrine::getTable('Texts')->getRandomText();
}
}
And in template:
echo $sf_user->Test()->getTresc();
Thx You :) I don't know You - You are new user this forum ? :)
On 19 Mar, 19:07, xplo w
You can acces to the request object in the object and set and
attribute with your random value.
It should work but i have no idea if it s considered good practice to
create a filter for that ^^;
You could also create a method in myUser class and call it with
$sf_user in the layout/template
On Mar