# |
Jul 4th 2017, 08:50 |
brettl |
and ladies |
# |
Jul 4th 2017, 08:50 |
neothermic |
hmm, morning fun, trying to work out why cake can't write to the memcache server (despite it working fine last night!) |
# |
Jul 4th 2017, 08:36 |
megan |
cough cough, and ladies :) |
# |
Jul 4th 2017, 08:34 |
brettl |
gents |
# |
Jul 4th 2017, 08:34 |
brettl |
hey getns |
# |
Jul 4th 2017, 07:58 |
adriencs |
hey |
# |
Jul 4th 2017, 07:49 |
neon1024 |
Morning everyone |
# |
Jul 4th 2017, 07:20 |
maymeow |
@adriencs yes :slightly_smiling_face: i fixed it. I had in IssueTable wrong class name for Comments |
# |
Jul 4th 2017, 07:20 |
adriencs |
@maymeow seem your Tables are in plugins |
# |
Jul 4th 2017, 07:15 |
adriencs |
@maymeow hu |
# |
Jul 4th 2017, 07:04 |
kareylo |
A looooong time i didn't come ! How are you, every bakers ? |
# |
Jul 4th 2017, 06:49 |
slackebot |
'user_id', 'joinType' => 'INNER', 'className' => 'CakeAuth.Users' ]); ``` Any idea what is wrong? Comments are loaded into issues with BelongsToMany ``` $this->belongsToMany('Comments', [ 'foreignKey' => 'issue_id', 'targetForeignKey' => 'comment_id', 'joinTable' => 'issues_comments', 'className' => 'CakeService.Comments', 'saveStrategy' => 'append' |
# |
Jul 4th 2017, 06:49 |
maymeow |
``` $issue = $this->Issues->get($id, [ 'contain' => [ 'Users', 'Comments' => [ 'Users' ], 'Assignees', 'Labels'] ]); ``` i have problem with this. It returns error: __Comments are not asociated with users__. but comments are associated with Users ``` $this->belongsTo('Users', [ 'fo |
# |
Jul 4th 2017, 06:03 |
sniedermaier |
if you don't wanna use an entity to create the form use NULL as the first parameter |
# |
Jul 4th 2017, 06:02 |
sniedermaier |
or in your case `echo $this->Form->create($entity, ['url' => 'login_decide.php']);` |
# |
Jul 4th 2017, 06:01 |
sniedermaier |
@aproapedelune to set the action use the following line of code echo $this->Form->create($article, ['url' => ['action' => 'login']]); |
# |
Jul 4th 2017, 05:29 |
aproapedelune |
hello! :slightly_smiling_face: do " ?= $this->Form->action('login_decide.php') ?>" and <form action="login_decide.php" have the same action? Is the first line even correct? |
# |
Jul 4th 2017, 05:28 |
justrohu |
Hello All, I have upgraded my project from CakePHP 2.5.9 to CakePHP 2.9.9 while testing before deploying it to production, I noticed the Id attribute for Forms have been changed. i.e. For CakePHP 2.5.9 it was 'ProductInventoryInventoryForm' and after upgrade it has become 'ProductInventoryAdjustInventoryForm' for action '/admin-manage/warehouse/adjust_inventory' - How do I keep the older domId generation format |
# |
Jul 4th 2017, 00:17 |
spencdev |
or the HTML helper $this->Html->script |
# |
Jul 4th 2017, 00:16 |
spencdev |
anyone particular reason for using it that way? Generally, at least for me, you use fetch->script |
# |
Jul 3rd 2017, 23:50 |
origamifreak |
Hello everyone, anyone ever experienced an issue where "../" in a src attribute in a <script> tag included the controller name? For example src="../assets/global/plugins/moment.min.js" is trying to pull the js from http://www.site.com/controller-name/assets/global/plugins/moment.min.js. This is only happening when something other than the index view for the controller is called. |
# |
Jul 3rd 2017, 22:53 |
ben |
Thanks! I suspected github is the best option. Will do. |
# |
Jul 3rd 2017, 22:52 |
phpnut |
Yes it will remain framework agnostic for the foreseeable future |
# |
Jul 3rd 2017, 22:52 |
phpnut |
We do post news about releases at bakery.cakephp.org |
# |
Jul 3rd 2017, 22:52 |
phpnut |
you should be able to follow and get notices on github |
# |
Jul 3rd 2017, 22:51 |
phpnut |
we are working on the roadmap |
# |
Jul 3rd 2017, 22:48 |
ben |
Other than the Github page, what's the best way to follow activity on the Phinx project as it transitions under cakephp? Any option for active notifications? Is there/will there be a roadmap? Will it remain framework agnostic in its historical current sense? |
# |
Jul 3rd 2017, 21:59 |
jeremyharris |
np |
# |
Jul 3rd 2017, 21:59 |
smarty24 |
Thank you |
# |
Jul 3rd 2017, 21:59 |
jeremyharris |
:+1: good luck |
# |
Jul 3rd 2017, 21:59 |
jeremyharris |
or like I said, just have a method that generates it based on known values |
# |
Jul 3rd 2017, 21:59 |
smarty24 |
Cool... thanks |
# |
Jul 3rd 2017, 21:58 |
jeremyharris |
a hash is plain text; so you can generate and store |
# |
Jul 3rd 2017, 21:58 |
smarty24 |
will be stored in db as plain text after hash or the table column as md5? |
# |
Jul 3rd 2017, 21:56 |
jeremyharris |
like md5(user_id . job_id . user_banned . salt) or something |
# |
Jul 3rd 2017, 21:55 |
jeremyharris |
the token could be a deterministic hash, but that would be harder to revoke unless the hash had some information in it regarding whether the user was allowed or not |
# |
Jul 3rd 2017, 21:54 |
jeremyharris |
makes it easy to revoke :slightly_smiling_face: |
# |
Jul 3rd 2017, 21:54 |
smarty24 |
Thanks Jeremy. Just what I thought but wasn't sure if it was a good practice to store token in the db |
# |
Jul 3rd 2017, 21:54 |
jeremyharris |
$context[‘data’] is all the data passed to it, though, which is usually request data |
# |
Jul 3rd 2017, 21:54 |
jeremyharris |
validators are unaware of requests, they simply validate an array |
# |
Jul 3rd 2017, 21:53 |
gutts |
not just the context field |