# |
Aug 31st 2019, 02:48 |
risingitde |
What might be the issue? |
# |
Aug 31st 2019, 02:48 |
risingitde |
Uploaded file: https://uploads.kiwiirc.com/files/ab4a5e221e53639509b46c98c9a2effe/image.png |
# |
Aug 31st 2019, 02:48 |
risingitde |
when I submit I get this error |
# |
Aug 31st 2019, 02:47 |
risingitde |
http://josediazgonzalez.com/2015/12/05/uploading-files-and-images/ |
# |
Aug 31st 2019, 02:47 |
risingitde |
I'm using this upload plugin |
# |
Aug 31st 2019, 02:47 |
risingitde |
This is my form for my Tracks add page |
# |
Aug 31st 2019, 02:47 |
risingitde |
Uploaded file: https://uploads.kiwiirc.com/files/30e2b24376d86826492dcff8503740a6/image.png |
# |
Aug 30th 2019, 23:41 |
entry_lvl_dev |
thanks dereuromark |
# |
Aug 30th 2019, 23:41 |
entry_lvl_dev |
ok i found it |
# |
Aug 30th 2019, 23:40 |
entry_lvl_dev |
where would i find that? |
# |
Aug 30th 2019, 23:39 |
entry_lvl_dev |
this then must be a legacy cakephp site that i am working on |
# |
Aug 30th 2019, 23:39 |
dereuromark |
usually people use cake3 these days |
# |
Aug 30th 2019, 23:39 |
dereuromark |
there it is still Console/cake as documented. |
# |
Aug 30th 2019, 23:39 |
dereuromark |
why cake2? |
# |
Aug 30th 2019, 23:38 |
entry_lvl_dev |
im new to cakephp, im trying to run the cakephp server to test the site but i dont see a bin/cake ... i think i may have this site that i have has missing folder structure.. where extactly should the bin/cake file be? im using cakephp 2.9.5 |
# |
Aug 30th 2019, 23:35 |
entry_lvl_dev |
hello |
# |
Aug 30th 2019, 21:38 |
kiwi_yes |
hi all |
# |
Aug 30th 2019, 21:37 |
kiwi_89 |
Hello all |
# |
Aug 30th 2019, 21:03 |
noel |
Got it.. option + command + e... Apple, think different :man-facepalming: |
# |
Aug 30th 2019, 21:00 |
noel |
When I change my styles.css safari doesn't pick up the changes, even with a refresh? |
# |
Aug 30th 2019, 19:35 |
risingitde |
not select multiple files in one dialog, 2 seperate file upload feilds in one upload |
# |
Aug 30th 2019, 19:35 |
risingitde |
can anybody tell me how I'd upload 2 files simutaneously? |
# |
Aug 30th 2019, 19:14 |
ricksaccous |
no i think that's been consistent, it's been like that => requirePresence('field', true|false|callback, message) for a while |
# |
Aug 30th 2019, 19:09 |
itmpls |
is a callback as a param to . requirePresence('field', [here]) only in >= 3.8? |
# |
Aug 30th 2019, 19:00 |
joey.mukherjee |
In Traits/PasswordManagementTrait.php under cakedc/users/src/Controller, there is a line that has: $redirect = Configure::read('Users.Profile.route'); However, it is not using my value, it is using the PlugIns value |
# |
Aug 30th 2019, 18:59 |
joey.mukherjee |
I am trying to use the CakeDC/Users plugin and specifically, the changePassword routine. I have it all working, but when the password change is successful, it wants to go to back to my /profile" page instead of what I have in config/users.php under Users.Profile.route. Any ideas? |
# |
Aug 30th 2019, 18:47 |
risingitde |
I am confused |
# |
Aug 30th 2019, 18:47 |
risingitde |
is this how I would do it? |
# |
Aug 30th 2019, 18:46 |
risingitde |
https://pastebin.com/U8z6nKvB |
# |
Aug 30th 2019, 18:46 |
risingitde |
I have one controller set up where I can upload a file and store the path in the database, but I want to copy that model, controller, etc and upload 2 files, one image and one audio |
# |
Aug 30th 2019, 18:11 |
maymeow |
@admad how to make it match ? |
# |
Aug 30th 2019, 18:09 |
maymeow |
@noel nope i didn'g |
# |
Aug 30th 2019, 17:33 |
mrfeedback |
but it always get updated instead of creating a new one |
# |
Aug 30th 2019, 17:32 |
mrfeedback |
how can I duplicate an entry without mapping each field by hand? i tried ``` $collection = $this->find(); $n_collection = new Collection; $n_collection = $collection; |
# |
Aug 30th 2019, 17:01 |
noel |
Found it... had the wrong path for the plugin in composer.json |
# |
Aug 30th 2019, 16:55 |
noel |
Also when I ran bake trying to use the theme from this plugin on the new project, it seemed to run a standard bake instead of the themed one (maybe that's the cause of this error?) |
# |
Aug 30th 2019, 16:52 |
slackebot2 |
#1 /myproject/vendor/cakephp/cakephp/src/View/View.php(1451): Cake\Core\ObjectRegistry->load('CustomForm', Array) #2 ``` Any ideas? I have the same plugin working on another project but can't figure out why it's not working on this one. |
# |
Aug 30th 2019, 16:52 |
noel |
I'm having trouble getting my plugin helper to be found: `Helper class CustomFormHelper could not be found` ``` [Cake\View\Exception\MissingHelperException] Helper class CustomFormHelper could not be found. Exception Attributes: array ( 'class' => 'CustomFormHelper', 'plugin' => 'CustomAdmin', ) #0 /myproject/vendor/cakephp/cakephp/src/Core/ObjectRegistry.php(95): Cake\View\HelperRegistry->_throwMissingClassError('CustomForm', 'CustomAdmin') |
# |
Aug 30th 2019, 16:48 |
admad |
The :path route element won't match fragments with / |
# |
Aug 30th 2019, 16:43 |
noel |
@maymeow have you tried it without the 'pass' bit? |
# |
Aug 30th 2019, 16:23 |
maymeow |
Hi. How to correct write route for `/posts/3/attachment/some/path/to/file.pdf` ? Following code returns `missing function 3() in controller` ``` $routes->connect( '/posts/:id/attachment/:path', ['controller' => 'Posts', 'action' => 'attachment'], ['pass' => ['id', 'path']] ); ``` i need path variable accept slashes... |