*/ /** * stAttributeTemplateFrontend actions. * * @author Marcin Butlak * * @package stAttributeTemplatePlugin * @subpackage actions */ class stAttributeTemplateFrontendActions extends sfActions { /** * Pokazuje liste atrybutów z wybranego szablonu */ public function executeAttributeList() { $this->setLayout(false); $product_id = $this->getRequestParameter('product_id'); $c = new Criteria(); $c->addAscendingOrderByColumn(AttributeFieldPeer::RANK); $c->add(ProductHasAttributeFieldPeer::PRODUCT_ID, $product_id); $this->attributes = ProductHasAttributeFieldPeer::doSelectJoinAttributeField($c); } }