# |
Apr 24th 2017, 18:34 |
half2me |
When I use `$table->link($myEntity, $otherEntities);` Counter-cache is not update :S |
# |
Apr 24th 2017, 15:36 |
pedroseco |
On Cake\Network\Http\Client is there any method I could use to get a filename from a remote request? |
# |
Apr 24th 2017, 15:32 |
danielfpedro |
I think you use a rawQuery |
# |
Apr 24th 2017, 15:31 |
spylinux |
anyone can help me? In book.cake i can't find this...just specify table with letters name, i can't find nothind to find in table with numbers in name, like name_87654 |
# |
Apr 24th 2017, 15:20 |
bravo-kernel |
yeah, I probably misread your intro, apologies |
# |
Apr 24th 2017, 15:19 |
danielfpedro |
@bravo-kernel I know whats happening but I dont know houw to solve lol... `$routes->resources('Visitas');` map the routes and method so they think "hmm 'wherever/test.json' with OPTIONS method, nothing to do here" and return 404... so I think is not even reaching the CORS allowing part... got it? |
# |
Apr 24th 2017, 15:16 |
bravo-kernel |
ok |
# |
Apr 24th 2017, 15:16 |
danielfpedro |
@bravo-kernel I dont think it is because cors is already enabled... Since I dont use `$routes->resources('Visitas');` its all ok including the pre flight request so I think is more a route thing |
# |
Apr 24th 2017, 15:15 |
bravo-kernel |
that links directly to the instruction |
# |
Apr 24th 2017, 15:15 |
bravo-kernel |
@danielfpedro http://www.bravo-kernel.com/2017/03/how-to-make-your-cakephp-3-api-produce-jsonapi/#5-Enabling-CORS-middleware |
# |
Apr 24th 2017, 15:15 |
spylinux |
I cant specify the name table |
# |
Apr 24th 2017, 15:15 |
spylinux |
I just need to perform a simple Select in a table with nema in this format: table_227364, how can i do a simple find() in this table? |
# |
Apr 24th 2017, 15:14 |
bravo-kernel |
otherwise you need to configure CORS on the Apache level |
# |
Apr 24th 2017, 15:14 |
bravo-kernel |
if it's cake the easy way out is using https://github.com/ozee31/cakephp-cors, this opens all CORS headers |
# |
Apr 24th 2017, 15:14 |
danielfpedro |
xampp |
# |
Apr 24th 2017, 15:14 |
danielfpedro |
locahost apache |
# |
Apr 24th 2017, 15:13 |
bravo-kernel |
@danielfpedro seems like CORS headers are not configured (correctly). What sort of webserver does your API run on? |
# |
Apr 24th 2017, 15:08 |
danielfpedro |
anyone? |
# |
Apr 24th 2017, 15:06 |
slackebot1 |
[/var/www/checkimage/vendor/cakephp/cakephp/src/Database/Driver/PDODriverTrait.php, line 47] |
# |
Apr 24th 2017, 15:06 |
digitalfotografen |
I am installing a cake app on my clients Red Hat server. We are using PHP 7.0.7 and MySQL 5.7 . I don't have sudo permissions. I get this error regarding database connection (both when using CLI and WWW connection) . Please give me som clues on how to solve this. I suspect it is a PHP/Mysql configuration problem Exception: SQLSTATE[HY000] [2002] No such file or directory in |
# |
Apr 24th 2017, 15:06 |
danielfpedro |
I'm making a REST API and using ::resources to map the routes... I'm getting a 404 error on OPTIONS pre flight wich is obvious but I dont know how to get rid of this... I already tryed some solution that I research but nothing worked |
# |
Apr 24th 2017, 15:04 |
spylinux |
how can i specify this table in this format: name_number (table_12345) |
# |
Apr 24th 2017, 15:04 |
spylinux |
i'm new on Cake, i'm using cakephp 3.4, and i want to use an different name of table, like table_11111 (a name plus _number) |
# |
Apr 24th 2017, 15:03 |
danielfpedro |
guys |
# |
Apr 24th 2017, 15:03 |
spylinux |
Hi everyone! |
# |
Apr 24th 2017, 14:59 |
Martin` |
ok :) |
# |
Apr 24th 2017, 14:56 |
chrisso |
Allright, solved with `$table->schema()` |
# |
Apr 24th 2017, 14:49 |
chrisso |
I'm creating a ImportBehavior. Should inside the behavior I use `debug( (new TableSchema($table->alias()))->columns() );` and want to get columns of the table, but it return an empty array. Does it return `[]` because it is in a test case with and empty test table? |
# |
Apr 24th 2017, 13:46 |
dereuromark |
it really depends on the use case, often times the plugin mgirations are too generic or fit to the wrong DB engine etc. then you also want to customize. |
# |
Apr 24th 2017, 13:45 |
elboletaire |
xd |
# |
Apr 24th 2017, 13:45 |
elboletaire |
I'll update my deploy scripts then |
# |
Apr 24th 2017, 13:45 |
elboletaire |
thanks anyway @dereuromark :slightly_smiling_face: |
# |
Apr 24th 2017, 13:44 |
elboletaire |
hmmm... I thought plugin migrations had the required basics for that plugin to work. When I need to write migrations for my app related to the plugin I directly write them to my app. |
# |
Apr 24th 2017, 13:43 |
dereuromark |
elboletaire you are oversimplying the issue. often times one even copies the plugin migrations to project and modifies them. it is dangerous to not explicitly run (and double run) them. |
# |
Apr 24th 2017, 13:42 |
pedroseco |
not sure I found a param in http client so it works as a destination for $http->get() |
# |
Apr 24th 2017, 13:42 |
elboletaire |
BTW it should not... unless those plugins communicate between them, it should not be the case |
# |
Apr 24th 2017, 13:41 |
pedroseco |
hi guys. Should I use Cake\Network\Http\Client to download a remote file or should I jsut stick with Curl? |
# |
Apr 24th 2017, 13:41 |
elboletaire |
yeah, I know |
# |
Apr 24th 2017, 13:41 |
dereuromark |
there shouldnt be - this is critical to deploy, and order can matter |
# |
Apr 24th 2017, 13:41 |
elboletaire |
yeah, but that means update my deploy script every time we add a new plugin, right? |
# |
Apr 24th 2017, 13:41 |
elboletaire |
one by one? there's no command to run them all? |