# |
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... |
# |
Aug 30th 2019, 15:54 |
ndm |
@yadav.manu36 I think the error just means that something went wrong in the password identifier, not that the password is wrong (which it still could be of course). |
# |
Aug 30th 2019, 15:13 |
noel |
I'm getting an error during bake: `Warning Error: Method Bake\View\Helper\BakeHelper::checkTableExistsByAlias does not exist in` - what does this mean? |
# |
Aug 30th 2019, 15:02 |
yadav.manu36 |
I have checked with (new DefaultPasswordHasher)->check() |
# |
Aug 30th 2019, 15:02 |
yadav.manu36 |
My given password is right |
# |
Aug 30th 2019, 15:00 |
yadav.manu36 |
But given next error FAILURE_IDENTITY_NOT_FOUND Result {#127 ▼ #_status: "FAILURE_IDENTITY_NOT_FOUND" #_data: null #_errors: array:1 [▼ "Password" => [] ] } |
# |
Aug 30th 2019, 14:59 |
yadav.manu36 |
@ndm finally fixed the login url issue thanks |
# |
Aug 30th 2019, 14:27 |
ndm |
Maybe that has something to do with it, maybe the base is missing in the comparison. Check `\Authentication\UrlChecker\DefaultUrlChecker::check()`, add some debug output to figure what exactly the URLs that are being compare look like. |
# |
Aug 30th 2019, 14:25 |
yadav.manu36 |
yes |
# |
Aug 30th 2019, 14:25 |
ndm |
Is `/cake-lover` an actual existing subfolder? |
# |
Aug 30th 2019, 14:25 |
ndm |
The fact that the message uses the full URL irrspectively of the `checkFullUrl` option is not very helpful :slightly_smiling_face: |
# |
Aug 30th 2019, 14:20 |
yadav.manu36 |
my actual url is http://localhost/cake-lover/admin/admin-user-manager/admin-users/login |
# |
Aug 30th 2019, 14:19 |
yadav.manu36 |
@ndm i have added string urls also but in the error login url not showing correct #_errors: array:1 [▼ 0 => "Login URL `http://localhost/admin/admin-user-manager/admin-users/login` did not match `/admin/admin-user-manager/admin-users/login`." ] |