if (!is_array($cache) || ($newCache["updated"] > $cache["updated"])) {
$cacheMgr->set($cacheId, $newCache);
file_put_contents($dst, $newCache['compiled']);
}
} else {
$less = new \lessc();
$less->compileFile($src, $dst);
}
} catch (Exception $e) {
throw new Exception(__CLASS__ . ': Failed to compile less file : ' . $e->getMessage() . '.');
}
}
}
}
$this->checkDestinationDir($to);
$parser = new $parserConfig['class']($parserConfig['options']);
$parserOptions = isset($parserConfig['options']) ? $parserConfig['options'] : array();
$parser->parse($from, $to, $parserOptions);
if (YII_DEBUG)
{
Yii::info("Converted $asset into $resultFile ", __CLASS__);
}
if (Url::isRelative($js)) {
$this->js[$i] = $converter->convert($js, $this->basePath);
}
}
foreach ($this->css as $i => $css) {
if (Url::isRelative($css)) {
$this->css[$i] = $converter->convert($css, $this->basePath);
}
}
}
}
}
if (!isset($config['class'])) {
$config['class'] = $name;
}
/* @var $bundle AssetBundle */
$bundle = Yii::createObject($config);
if ($publish) {
$bundle->publish($this);
}
return $bundle;
}
/**
* Loads dummy bundle by name
*/
public function getBundle($name, $publish = true)
{
if ($this->bundles === false) {
return $this->loadDummyBundle($name);
} elseif (!isset($this->bundles[$name])) {
return $this->bundles[$name] = $this->loadBundle($name, [], $publish);
} elseif ($this->bundles[$name] instanceof AssetBundle) {
return $this->bundles[$name];
} elseif (is_array($this->bundles[$name])) {
return $this->bundles[$name] = $this->loadBundle($name, $this->bundles[$name], $publish);
} elseif ($this->bundles[$name] === false) {
return $this->loadDummyBundle($name);
* @throws InvalidConfigException if the asset bundle does not exist or a circular dependency is detected
*/
public function registerAssetBundle($name, $position = null)
{
if (!isset($this->assetBundles[$name])) {
$am = $this->getAssetManager();
$bundle = $am->getBundle($name);
$this->assetBundles[$name] = false;
// register dependencies
$pos = isset($bundle->jsOptions['position']) ? $bundle->jsOptions['position'] : null;
foreach ($bundle->depends as $dep) {
$this->registerAssetBundle($dep, $pos);
}
* Registers this asset bundle with a view.
* @param View $view the view to be registered with
* @return static the registered asset bundle instance
*/
public static function register($view)
{
return $view->registerAssetBundle(get_called_class());
}
/**
* Initializes the bundle.
* If you override this method, make sure you call the parent implementation in the last.
*/
{
//this param is need add to config file source
$sourceAsset = Yii::$app->params['sourceAsset'];
if (isset($sourceAsset)) {
$bundle = Yii::createObject(['class' => $sourceAsset]);
$bundle::register($this->view);
}
}
public function registerModuleAsset()
{
$module = $this->module;
Yii::$app->params['SubHeaderContent'] = $this->subHeaderContent;
Yii::$app->params['PageCaption'] = $pageCaption;
Yii::$app->params['PageCaptionDisplay'] = empty($pageCaptionText) ? false : true;
Yii::$app->params['PageCaptionRight'] = $this->captionRight;
Yii::$app->params['HideSubMenu'] = $this->page->HideSubMenu;
$this->registerSourceAsset();
Yii::$app->params['footerSubWrap'] = $this->footerSubWrap;
// echo "<pre>";
// print_r($view);
// die();
return parent::render($view, $params);
'measurementPopup' => $priceFormWidgetData["measurementPopup"],
'pAddon' => $pAddon,
'descriptionTabList' => $descriptionTabList,
'keepShoppingUrl' => $this->keepShoppingUrl,
'showAffirm' => $showAffirm,
'additionalMainBlock' => $additionalMainBlock
]);
}
public function addToCart($ePriceForm, $canvasData)
{
if ($ePriceForm !== null) {
$canvas = $canvasData['canvas'];
if ($eProduct == null) {
$this->throw404Error();
}
$this->prepareContentReplaceData($styleType->StyleTypeName, $eProduct->Sizes[0]->Name, $eProduct->Sizes[0]->Length, '', '', '');
return $this->renderPage($brand, $styleType, $eProduct);
}
public function actionMMY($brandName, $manufacturer, $model, $year, $size, $inboard = '')
{
//prepare params
$manufacturer = Link::decodeParam($manufacturer);
$args = $this->controller->bindActionParams($this, $params);
Yii::trace('Running action: ' . get_class($this->controller) . '::' . $this->actionMethod . '()', __METHOD__);
if (Yii::$app->requestedParams === null) {
Yii::$app->requestedParams = $args;
}
return call_user_func_array([$this->controller, $this->actionMethod], $args);
}
}
}
$result = null;
if ($runAction && $this->beforeAction($action)) {
// run the action
$result = $action->runWithParams($params);
$result = $this->afterAction($action, $result);
// call afterAction on modules
foreach ($modules as $module) {
/* @var $module Module */
$parts = $this->createController($route);
if (is_array($parts)) {
/* @var $controller Controller */
list($controller, $actionID) = $parts;
$oldController = Yii::$app->controller;
Yii::$app->controller = $controller;
$result = $controller->runAction($actionID, $params);
Yii::$app->controller = $oldController;
return $result;
} else {
$id = $this->getUniqueId();
throw new InvalidRouteException('Unable to resolve the request "' . ($id === '' ? $route : $id . '/' . $route) . '".');
$params = $this->catchAll;
unset($params[0]);
}
try {
Yii::trace("Route requested: '$route'", __METHOD__);
$this->requestedRoute = $route;
$result = $this->runAction($route, $params);
if ($result instanceof Response) {
return $result;
} else {
$response = $this->getResponse();
if ($result !== null) {
$response->data = $result;
try {
$this->state = self::STATE_BEFORE_REQUEST;
$this->trigger(self::EVENT_BEFORE_REQUEST);
$this->state = self::STATE_HANDLING_REQUEST;
$response = $this->handleRequest($this->getRequest());
$this->state = self::STATE_AFTER_REQUEST;
$this->trigger(self::EVENT_AFTER_REQUEST);
$this->state = self::STATE_SENDING_RESPONSE;
$response->send();
require(__DIR__ . '/../vendorpast/vendorpast.php'); require(__DIR__ . '/../vendor/autoload.php'); require(__DIR__ . '/../vendor/yiisoft/yii2/Yii.php'); $confManager = new engine\components\config\ConfigManager(); (new yii\web\Application($confManager->getSettings()))->run();
$_GET = [
'brandName' => 'silvercloud-boat-covers',
'styleName' => 'bay-boat-rounded-bow-center-console-high-bow-rails-(up-to-24")',
'size' => '17\'6"--LENGTH--90"--WIDTH',
];
$_SERVER = [
'USER' => 'www-data',
'HOME' => '/var/www',
'FCGI_ROLE' => 'RESPONDER',
'REDIRECT_REDIRECT_REDIRECT_HTTPS' => 'on',
'REDIRECT_REDIRECT_REDIRECT_SSL_TLS_SNI' => 'www.dev.nationalboatcovers.com',
'REDIRECT_REDIRECT_REDIRECT_STATUS' => '200',
'REDIRECT_REDIRECT_HTTPS' => 'on',
'REDIRECT_REDIRECT_SSL_TLS_SNI' => 'www.dev.nationalboatcovers.com',
'REDIRECT_REDIRECT_STATUS' => '200',
'REDIRECT_HTTPS' => 'on',
'REDIRECT_SSL_TLS_SNI' => 'www.dev.nationalboatcovers.com',
'REDIRECT_STATUS' => '200',
'HTTPS' => 'on',
'SSL_TLS_SNI' => 'www.dev.nationalboatcovers.com',
'proxy-nokeepalive' => '1',
'HTTP_ACCEPT' => '*/*',
'HTTP_USER_AGENT' => 'Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)',
'HTTP_ACCEPT_ENCODING' => 'gzip, br, zstd, deflate',
'HTTP_HOST' => 'www.dev.nationalboatcovers.com',
'PATH' => '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin',
'SERVER_SIGNATURE' => 'Apache/2.4.52 (Ubuntu) Server at www.dev.nationalboatcovers.com Port 443
',
'SERVER_SOFTWARE' => 'Apache/2.4.52 (Ubuntu)',
'SERVER_NAME' => 'www.dev.nationalboatcovers.com',
'SERVER_ADDR' => '10.128.0.2',
'SERVER_PORT' => '443',
'REMOTE_ADDR' => '216.73.216.183',
'DOCUMENT_ROOT' => '/var/www/html/dev',
'REQUEST_SCHEME' => 'https',
'CONTEXT_PREFIX' => '',
'CONTEXT_DOCUMENT_ROOT' => '/var/www/html/dev',
'SERVER_ADMIN' => '[no address given]',
'SCRIPT_FILENAME' => '//var/www/html/dev/web/index.php',
'REMOTE_PORT' => '24430',
'REDIRECT_URL' => '/index.php',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'SERVER_PROTOCOL' => 'HTTP/1.1',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'REQUEST_URI' => '/silvercloud-boat-covers/bay-boat-rounded-bow-center-console-high-bow-rails-(up-to-24%22)/17\'6%22--LENGTH--90%22--WIDTH.html',
'SCRIPT_NAME' => '/web/index.php',
'PHP_SELF' => '/web/index.php',
'REQUEST_TIME_FLOAT' => 1792228314.2139421,
'REQUEST_TIME' => 1792228314,
];
$_SESSION = [
'__flash' => [],
'ProductID' => 99260,
'ProductName' => 'BAY BOAT - Rounded Bow, Center Console, High Bow Rails (up to 24")',
'ProductCategory' => 'Product',
'ProductPrice' => 609.99000000000001,
'ProductQuantity' => 1,
'ProductBrand' => 'SilverCloud',
'ProductLocation' => 'nbc',
'backlink_b1aa97d87eefba62d330b1391ed0298a' => null,
];