/** * Attempts to load a view and pre-load view data. * * @throws Kohana_Exception if the requested view cannot be found * @param string view name * @param array pre-load data * @param string type of file: html, css, js, etc. * @return void */ public function __construct($name = NULL, $data = NULL, $type = NULL) { $prefix = My_Template_Controller::getViewPrefix() . '/'; if (FALSE === strpos($name, $prefix)) { $name = $prefix . $name; } if (is_string($name) and $name !== '') { // Set the filename $this->set_filename($name, $type); } if (is_array($data) and !empty($data)) { // Preload data using array_merge, to allow user extensions $this->kohana_local_data = array_merge($this->kohana_local_data, $data); } }
?> </h3> <p><?php echo $products->short_description; ?> </p> <span class="price">Starting at <?php echo money_format('%.2n', ORM::factory('product', $products->id)->getPriceStartingAt()) . ' per ' . inflector::singular($products->unit); ?> </span> </div><!-- product-deatils --> <a href="/products/show/<?php echo $products->title_url; ?> " class="link-btn"><img src="/env/images/<?php echo My_Template_Controller::getViewPrefix(); ?> /get_started_button.png" alt="Get Started" /></a> </div><!-- box --> <?php } ?> <div class="box grey-border left grey-corner product-box-standard"> <img src="/env/images/mcc/gng_homepage.png" width="100" alt="Grab and Go Products"/> <div class="product-details"> <h3 class="curly">Grab and Go Products</h3> <p> Need it faster? Our Grab n Go chocolate coins are in stock can ship within 2 days. They are a faster and more affordable option with the same quality of all our products. Our Chocolate Coins are the best you have ever tried. Forget about those waxy & gritty chocolates that you are used to. </p> <span class="price">Starting at $ 0.14 per coin</span> </div><!-- product-deatils -->