This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected function _findAllWithFolders($state, $query, $results = array()) { | |
if ($state == 'before') { | |
return $query; | |
} | |
$results = array_merge( | |
$this->AssetFolder->find('all'), | |
$results | |
); | |
return $results; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'ColorWheel' => array( | |
'ColorWheel' => array( | |
(int) 0 => '1', | |
(int) 1 => '34' | |
) | |
), | |
'ColorWheelRange' => array( | |
'ColorWheelRange' => array( | |
(int) 0 => '1', | |
(int) 1 => '2' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public $hasAndBelongsToMany = array( | |
'ColorWheel' => array( | |
'className' => 'Color' | |
), | |
'ColorWheelRange' => array( | |
'className' => 'Color' | |
) | |
); | |
colors_wheels, colors_wheel_ranges |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'titleTranslation' => array( | |
(int) 0 => array( | |
'id' => '1', | |
'locale' => 'eng', | |
'model' => 'Category', | |
'foreign_key' => '2', | |
'field' => 'title', | |
'content' => 'English text' | |
), | |
(int) 1 => array( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (!include(CORE_PATH . 'cake' . DS . 'bootstrap.php')) { | |
trigger_error("CakePHP core could not be found. Check the value of CAKE_CORE_INCLUDE_PATH in APP/webroot/index.php. It should point to the directory containing your " . DS . "cake core directory and your " . DS . "vendors root directory.", E_USER_ERROR); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
It is not about sitemap.xml and it is not about PHP, using curl to show you there is something wrong with server (some firewall, security issue). | |
I am sshed into 159.253.214.100 server and doing | |
curl -v metaldeseda.com connection refused | |
curl -v vmrates.co.uk connection refused | |
curl -v google.com works fine!!! | |
I am sshed to local server (or oi-dev). | |
curl -v metaldeseda.com works fine!! | |
curl -v vmrates.co.uk works fine!! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-bash-4.1$ curl -v localhost | |
* getaddrinfo(3) failed for localhost:80 | |
* Couldn't resolve host 'localhost' | |
* Closing connection #0 | |
curl: (6) Couldn't resolve host 'localhost' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-bash-4.1$ curl -v http://preview.metaldeseda.com/sitemap.xml | |
* About to connect() to preview.metaldeseda.com port 80 (#0) | |
* Trying 159.253.214.100... Connection refused | |
* couldn't connect to host | |
* Closing connection #0 | |
curl: (7) couldn't connect to host |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Warning Error: file_get_contents(http://example.com/sitemap.xml): failed to open stream: Connection refused in [.../cake/lib/Cake/Utility/Xml.php, line 101] | |
2012-07-24 07:59:42 Warning: file_get_contents(http://example.com/sitemap.xml): failed to open stream: Connection refused in [.../cake/lib/Cake/Utility/Xml.php, line 101] | |
Error: String could not be parsed as XML |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 $timeout = 5000; | |
33 $this->Js->get('#nav-hero input'); | |
34 $this->Js->event( | |
35 'change', | |
36 $this->Js->request( | |
37 array('action' => 'contentItem'), | |
38 array( | |
39 'update' => '#main .hero', | |
40 'dataExpression' => 'javascript', | |
41 'data' => '$(this).val()', |