Month: October 2017
-
Post Views: 13 1. Edit \app\config\core.php, configure::write(debug, 2), as shown in Figure 1 2. Edit \App\View\Layouts\Base.ctp, <?php echo $this->element(sql_dump); ?>, as shown in Figure 2 3. After the GET request, print out the SQL statement that has been executed in the view, as shown in Figure 3 4. If it is a POST request, after the final execution is successful,…
-
Post Views: 15 1. Under PHP 7.0.22 and CakePHP 2.10.3, error: the datasource configuration tmp was not found in database.php., as shown in Figure 1 2. Print $this->UsedbConfig, its value is TMP, as shown in Figure 2 3. Make sure that $tmp does not exist in database.php, as shown in Figure 3 4. However, it was normal to confirm in…
-
Post Views: 12 1. Under CakePHP 2.6.4, the error is reported: Error: Cannot usestringAs class name as it is reserved, as shown in Figure 1 2. String is the reserved name in PHP 7.x, so the String class in the Cake cannot be used on PHP 7.x, upgrade to the latest 2.x, and use CakeText instead, as shown in Figure…
-
Post Views: 14 1. Windows version, it is Windows 10 home Chinese version, does not support Hyper-V, as shown in Figure 1 2. Open the URL:https://docs.docker.com/docker-for-windows/install/#what-to-know-before-you-install, if your system doesn’t meet the requirements to run Docker for Windows, you can install Docker Toolbox, Dockbox Toolbox uses Oracle Virtual Box instead of Hyper-V, as shown in Figure 2 3. Click the…