示例#1
0
    protected function startup()
    {
        parent::startup();
        $this->orderRoute = $this->createRoute($this->getReflection()->getNamespaceName() . '\\CartEntity');
        $this->feedRoute = $this->createRoute($this->getReflection()->getNamespaceName() . '\\FeedEntity');
        $this->template = '
Products
--------

{foreach $products as $id=>$orders}
{foreach $orders as $orderId=>$item}
{$item[\'productEntity\']->name} - {$item[\'productEntity\']->category} - {$item[\'sum\']} - {$item[\'typeEntity\']->name}
{/foreach}
{/foreach}
';
        $this->mailform = new MailformEntity();
    }
示例#2
0
 protected function startup()
 {
     parent::startup();
     $this->getConditions();
 }