# |
Jul 12th 2017, 19:18 |
saeideng |
i have an issue by phpunit |
# |
Jul 12th 2017, 19:17 |
saeideng |
for check field exist or no yo should use `requirePresence()` |
# |
Jul 12th 2017, 19:15 |
saeideng |
`notEmpty` say input can not empty |
# |
Jul 12th 2017, 19:15 |
saeideng |
notEmpty no related to exist or no |
# |
Jul 12th 2017, 19:13 |
saeideng |
hi alex |
# |
Jul 12th 2017, 19:12 |
gutts |
will notEmpty('title', 'title is required'); trigger if 'title' exists but is null? |
# |
Jul 12th 2017, 18:54 |
AlexCake |
hello |
# |
Jul 12th 2017, 18:44 |
Sankho |
its my first time on IRC |
# |
Jul 12th 2017, 18:44 |
cleptric |
Hi Sankho :wave: |
# |
Jul 12th 2017, 18:43 |
Sankho |
hi all |
# |
Jul 12th 2017, 18:43 |
Sankho |
JOIN |
# |
Jul 12th 2017, 18:43 |
dereuromark |
backticks would help, yeah |
# |
Jul 12th 2017, 18:41 |
slackebot |
Action: cleptric writes this down |
# |
Jul 12th 2017, 18:41 |
cleptric |
Oh, we should improve this message… This two spaces are hard to spot |
# |
Jul 12th 2017, 18:38 |
ericadeefox |
my impression of Facebook's PHP SDK is like "hi, I'm Facebook, all my classes work in the app just fine but if you try to test me I will test you right tf back" :fire: :fire: :fire: |
# |
Jul 12th 2017, 18:37 |
sturm |
Yeah, I fear for the days when I will start getting those messages. |
# |
Jul 12th 2017, 18:35 |
ericadeefox |
`Cake\Routing\Exception\MissingControllerException: Controller class could not be found.` dang |
# |
Jul 12th 2017, 17:31 |
sturm |
Hmmm… I’ll mark that down for a future project, perhaps. When I am more comfortable/familiar with CakePHP. |
# |
Jul 12th 2017, 17:29 |
dereuromark |
I bet you could provide an option for it |
# |
Jul 12th 2017, 17:28 |
sturm |
Hmmmm, I wonder if it’s possible to modify the Text Helper’s toList() method so that it will include the Oxford Comma… |
# |
Jul 12th 2017, 17:27 |
sturm |
You guys are awesome! |
# |
Jul 12th 2017, 17:26 |
cleptric |
Sure, there are enough people around that kindly answer all your questions :slightly_smiling_face: |
# |
Jul 12th 2017, 17:25 |
sturm |
Excellent. It’ll be slow going, but I don’t mind investing the time in it. The project is already working (mostly) as a Java desktop app. This will be my chance to not only move it to a web app, but also to improve upon it. And you can bet I’ll be in here almost daily to ask questions. |
# |
Jul 12th 2017, 17:23 |
cleptric |
Nice :slightly_smiling_face: I also started with a way to big project but it turned out quite well after some months. And I learned a ton |
# |
Jul 12th 2017, 17:22 |
sturm |
Oh, I definitely have a project in mind. It’s a big one and might be over my head, but it’s something I really need to do for my employer. (Not to mention something I can showcase to get a better job elsewhere.) |
# |
Jul 12th 2017, 17:20 |
cleptric |
Any plans what you want to build after the tutorials? I find it quite motivating to have a little project which can actually be used when finished. |
# |
Jul 12th 2017, 17:18 |
sturm |
It looks like the API docs are going to be a major go-to resource for me. |
# |
Jul 12th 2017, 17:16 |
sturm |
Excellent, @mikesmoniker and @cleptric. I mean, I’ve got a decent grasp of PHP and just recently learned object-oriented PHP (classes, using the arrow (->) to get at an object’s properties and methods, how to call a static property/method, inheritance, abstraction, etc.) from Lynda. |
# |
Jul 12th 2017, 17:15 |
cleptric |
@sturm When I started programming in php, I took a similar path and to be honest, I regretted it later. Sure, the framework will do a lot for you, but having a reasonable background on oop php programming will help a lot. I started to contribute to CakePHP to do more plain php ^^ |
# |
Jul 12th 2017, 17:12 |
mikesmoniker |
Understanding the basics of PHP will go a long way (just like knowing Ruby is going to benefit someone writing a Rails app) in understanding what the framework is doing and how to get it to do other things. But for just getting started it’s definitely reasonable to focus on Cake’s conventions and learn *how* to do a bunch of the basic tasks vs. understanding the implementation details of what the framework is actually doing on your |
# |
Jul 12th 2017, 17:07 |
sturm |
I need to learn CakePHP’s syntax and vocabulary to use it. I *don’t* need to focus so much on the details of the underlying PHP. (i.e., what the $this object is, following the chain of calls, etc.) Does this sound anywhere close to correct? |
# |
Jul 12th 2017, 17:05 |
sturm |
Finished the first half of the Bookmarker tutorial. I think I’m beginning to see what I need to do when using Cake PHP: |
# |
Jul 12th 2017, 16:59 |
jarard01 |
the data is as I would expect |
# |
Jul 12th 2017, 16:58 |
jarard01 |
I thought I would also then have to remove them form validation, but it appears that they are set to hidden and there for by-pass validation by default meaning Angular and Cake dovetail nicely |
# |
Jul 12th 2017, 16:58 |
cleptric |
What‘s the content of $this->request->getData() in your Controller? |
# |
Jul 12th 2017, 16:57 |
jarard01 |
ok so I am using Angular to not show fields on my front end under certain conditions |
# |
Jul 12th 2017, 16:57 |
jarard01 |
it seems that is the case |
# |
Jul 12th 2017, 16:56 |
jarard01 |
fields I mean |
# |
Jul 12th 2017, 16:56 |
jarard01 |
ahh - does validation ignore hidden files? |
# |
Jul 12th 2017, 16:54 |
jarard01 |
it doesn't fire |
# |
Jul 12th 2017, 16:54 |
jarard01 |
https://gist.github.com/spacebiscuit/ad07583634b8d732ad532e7f429477f3 |