# |
Jul 7th 2017, 08:30 |
neon1024 |
Sorry, I mean, has anyone found a bitwise operator plugin for cake? |
# |
Jul 7th 2017, 08:29 |
neon1024 |
Anyone know if there a behaviour for dealing with bitwise operators in cakephp |
# |
Jul 7th 2017, 08:20 |
pidlo |
ok sorry for all this error is from old piece of code from cakephp2 now is validation ok |
# |
Jul 7th 2017, 07:57 |
pidlo |
morning |
# |
Jul 7th 2017, 07:54 |
neon1024 |
Morning everyone |
# |
Jul 7th 2017, 07:42 |
pidlo |
i have in validatioDefault $validator ->notEmpty('persnum') ->requirePresence('persnum', 'create'); |
# |
Jul 7th 2017, 07:38 |
pidlo |
Table \u0022App\\Model\\Table\\StaffersTable\u0022 is not associated with \u0022validationErrors\ |
# |
Jul 7th 2017, 07:37 |
pidlo |
hello all i am trying add validation but i get error |
# |
Jul 7th 2017, 06:53 |
megan |
Hi @junichirojp :slightly_smiling_face: - will find out about those links (I know the site was getting updated to the new branding), but for donations you can go directly from cakephp.org (Top right corner - Donate) |
# |
Jul 7th 2017, 06:05 |
junichirojp |
I could donation follow link. use anonymous donation. https://cakefoundation.org/donate# |
# |
Jul 7th 2017, 06:01 |
junichirojp |
Is in maintenance? https://www.cakefoundation.org/donations now we wanna make donation, but can't. |
# |
Jul 6th 2017, 23:14 |
jarard01 |
I don't see the join data in my result |
# |
Jul 6th 2017, 23:13 |
jarard01 |
in cake3 is it necessary to specify the fields on a join |
# |
Jul 6th 2017, 19:26 |
jeremyharris |
FrozenTime is locale-aware as opposed to the lower level Chronos which is essentially just an immutable datetime |
# |
Jul 6th 2017, 19:26 |
jarard01 |
over-thinking it again!!! |
# |
Jul 6th 2017, 19:26 |
jarard01 |
ahh |
# |
Jul 6th 2017, 19:25 |
jeremyharris |
FrozenTime is a Chronos object already :slightly_smiling_face: |
# |
Jul 6th 2017, 19:24 |
jarard01 |
Object of class Cake\I18n\FrozenTime could not be converted to int |
# |
Jul 6th 2017, 19:24 |
jarard01 |
https://gist.github.com/spacebiscuit/98daf0ae8888d201db82123318e148aa |
# |
Jul 6th 2017, 19:24 |
jarard01 |
this is what I am doing |
# |
Jul 6th 2017, 19:19 |
jeremyharris |
that assumes it’s a strtotime-compatible format. strtotime is pretty powerful in what it can parse, but it can’t do everything |
# |
Jul 6th 2017, 19:19 |
jeremyharris |
that’s a string then. if that’s the case, you will need to manually make it a date: new FrozenDate($string) |
# |
Jul 6th 2017, 19:18 |
jarard01 |
actually, i was wrong, the data comes from a form and comes as "1 Jul 2017' |
# |
Jul 6th 2017, 19:17 |
jeremyharris |
np @sturm. Feel free to come back and ask for help when you need it :slightly_smiling_face: we’re all learning together |
# |
Jul 6th 2017, 19:17 |
sturm |
Okay, I’ll stick through these tutorials. Thanks, @jeremyharris, @jarard01, and @spencdev. |
# |
Jul 6th 2017, 19:17 |
jeremyharris |
jarard01 maybe I misunderstood. if your field is a datetime in the DB, Cake will return a FrozenDatetime already. No need to re-create it |
# |
Jul 6th 2017, 19:16 |
jeremyharris |
the most important things to understand when starting are PHP concepts, like how autoloading and namespaces work. that way, if you need to find something, you will at least know where to look (IDEs help with this as you can usually command+click and it will open the file::method for you) |
# |
Jul 6th 2017, 19:16 |
jarard01 |
I then have: $foo = Chronos::create(strtotime($from)); |
# |
Jul 6th 2017, 19:16 |
jarard01 |
it is an I18n\Time object |
# |
Jul 6th 2017, 19:15 |
jarard01 |
jeremyharris, my date format is as follows: 2017-07-01T00:00:00+00:00 |
# |
Jul 6th 2017, 19:15 |
spencdev |
Like they are saying, I wouldn't get too caught up in that. I've been using CakePHP for around a year and I still don't have everything figured out. Heck, I just learned that the ORM can be used as standalone, which to me is huge... |
# |
Jul 6th 2017, 19:14 |
jarard01 |
*when |
# |
Jul 6th 2017, 19:14 |
jarard01 |
from there are you want to add and expand your app you will learn more about cake |
# |
Jul 6th 2017, 19:14 |
sturm |
Yeah, I’m already following Lynda’s tutorial on the subject (https://www.lynda.com/CakePHP-tutorials/CakePHP-3-Essential-Training/452749-2.html), which is helping somewhat. Maybe I’ll do CakePHP’s tutorial after that. |
# |
Jul 6th 2017, 19:14 |
jarard01 |
sturm - don't bog yourself down with the core files, do the tutorial and then you'll see what Cake can do for you |
# |
Jul 6th 2017, 19:13 |
jeremyharris |
I don’t think you need to understand that dispatching process yet :slightly_smiling_face: |
# |
Jul 6th 2017, 19:13 |
sturm |
I mean, I’m already confused just following /index.php to /webroot/index.php. I stop there because I can’t figure out what that file is doing. I can’t even imaging delving deeper into what appears to be a rat’s nest of classes and method calls and such. |
# |
Jul 6th 2017, 19:12 |
jeremyharris |
@sturm jarard01's suggestion to start with the tutorial is a good one. not only will it help you get familiar with cake itself, but it uses some basic OOP which is pretty easy to understand if you know a little OOP (e.g., extending AppController, extending core classes, etc.) |
# |
Jul 6th 2017, 19:11 |
jarard01 |
let me try that |
# |
Jul 6th 2017, 19:10 |
jeremyharris |
jarard01 what have you tried? usually it accepts any strtotime string |
# |
Jul 6th 2017, 19:10 |
jeremyharris |
@sturm it might be a good exercise in learning, although yes it is quite large and can be daunting. For me, whenever I needed to understand how a feature worked under the hood, I would delve into that specific thing. Eventually, I touched most of the framework |