cakephp tag

92 questions


1 answers
513 views
0
PHP ssh2_scp_send fails to send files as intended

$remote_path is recognized as a filename, not a directory name.If you know how to send files to the specified directory, please contact us.(Example) Files such as \home\user\test.csv are created.   te...

1 years ago

1 answers
414 views
0
PHP ssh2_scp_send fails to send files as intended

$remote_path is recognized as a filename, not a directory name.If you know how to send files to the specified directory, please contact us.(Example) Files such as \home\user\test.csv are created.   te...

1 years ago

1 answers
459 views
0
How to Add a Column Name in a Case Statement for SQL in CakePHP

kbn, name is the column name, but I want the |name part to be recognized as a string and recognized as a column name in the table. How should I describe it?SQL Statementselect case when kbn = '1' the...

1 years ago

1 answers
275 views
0
What does 'assoc' mean for fetchAll() in SQL?

When running SQL statements directly, the Cookbook says:What does this 'assoc' mean?$sql='select * from Users';$results=$connection->execute($sql)->fetchAll('assoc');

1 years ago

1 answers
414 views
0
Is it possible to use a combination of Apache 2.4.51 and PHP 5.4 or less?

Apache 2.2.17+PHP 5.2.1+CakePHP 1.1.14, created DB-related webs a long time ago.Due to a vulnerability in Apache, we would like to upgrade to Apache 2.4.51.I've seen how Apache 2.4.51 works with PHP 5...

1 years ago

1 answers
309 views
0
Learn how to write SQL directly

Hello.When running SQL statements directly, the Cookbook says:What does this 'assoc' mean?$sql='select * from Users';$results=$connection->execute($sql)->fetchAll('assoc');

1 years ago

1 answers
81 views
0
CakePHP Cannot Start with 500 Error

I'm having trouble starting CakePHP.The error log contains the following:[22-Oct-2019 07:39:11 Asia/Tokyo] PHP Fatal error: Uncaught Error: Class'Cake\Http\Server'not found in/Applications/MAMP/htdocs...

1 years ago

2 answers
98 views
0
I want to create a CSV with UTF-8, but ANSI outputs it.

I would like to create a CSV with the character code UTF-8 in PHP 5.4 (Cakephp2 environment), but when I look at the character code I printed in Notepad, it looks like ANSI.How can I fix it?Thank you ...

1 years ago

1 answers
103 views
0
Error: Fatal Error (1): Class 'AppShell' not found in when testing the cake2.x shell with PHPUnit

I created the shell program app/Console/Command/TestShell.php in cakephp2.x.The shell itself works, but when I launch the PHPUnit test code from my browser, it turns white and error.log shows the foll...

1 years ago

1 answers
116 views
0
CakePHP Fixure Does Not Generate Tables

UnitTest with CakePHPv2.5.5.configurationdatabases.phppublic$xxxx=array( // ...);public$test_xxxx=array( 'datasource' = > 'Database/MysqlExportDb', 'persistent' = > false, 'host' = > 'localho...

1 years ago
- 1 - »

© 2024 OneMinuteCode. All rights reserved.