Thank you.
I found that just earlier in the Jobeet tutorial but wasn't aware of the
table_count_method.
If other people need it; I also wrote the following:
To make sure the edit and delete actions were also secure I used the
following in actions.class.php
protected function confirmPage()
{
$page = $this->getRoute()->getObject();
if ($page->getDomainId() != $this->domain_id) {
$this->forward404();
}
}
with the following methods
public function executeEdit(sfWebRequest $request)
{
$this->confirmPage();
parent::executeEdit($request);
}
public function executeDelete(sfWebRequest $request)
{
$this->confirmPage();
parent::executeDelete($request);
}
I just need to refactor it to use the user instance.
On Mon, 20 Apr 2009 08:40:35 -0500, Jonathan Wage
wrote:
> In generator.yml, under list specify table_method and
> table_count_method(optional). These are the methods used on the
> Doctrine_Table instance for your model to power the list.
>
> - Jon
>
> On Mon, Apr 20, 2009 at 7:33 AM, Don Pinkster wrote:
>
>>
>> Hello,
>>
>> I want to use the same symfony application for multiple domains. The
>> layout is all the same and all website have the same elements.
>> On the frontend I use the $request->getHost() to filter my queries for
>> the
>> specific domain.
>>
>> Now the interesting part, I want the same thing for the admin generator.
>> Only the records the user of that domain may edit should appear in the
>> list.
>> I browsed the source code of the generated actions and noticed I could
>> use
>> the pageGeneratorConfiguration to customize the getFilterDefaults.
>>
>> Is there a more elegant way to accomplish this?
>>
>> Thanks in advance!
>>
>> >
>>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---