# |
Apr 22nd 2017, 13:44 |
jojomartius |
:P |
# |
Apr 22nd 2017, 13:31 |
chrisso |
@jojomartius You should gist your code, or at least use ``` before and after your code in sublime. Hard reading. |
# |
Apr 22nd 2017, 13:16 |
jojomartius |
no idea? |
# |
Apr 22nd 2017, 12:56 |
slackebot1 |
$this->assertEquals(8, $routes->count()); //$this->Routes->prepareFilter($routes, $filter_id); } And the only thing i did is a vardump in the setRequestingCompany Method as well as in the beforeFind event, and of course i want to get first the execution of my setRequestingCompany, but for some reason its the otherway around... did I something wrong? |
# |
Apr 22nd 2017, 12:56 |
jojomartius |
hey, i worked with models in cakephp3 for quite a while, now i thought testing it would be maybe a nice thing :P unfortunatly everything crahes... after some time of debugging i wondered why ... and it looks like the execution order is a bit different like i expect... public function testAsFirstCompany() { $this->assertTrue( $this->Routes->setRequestingCompany(10) ); $routes = $this->Routes->find();//->contain(['Compan |
# |
Apr 22nd 2017, 11:32 |
ra7bi |
@dereuromark Thanks |
# |
Apr 22nd 2017, 11:15 |
dereuromark |
your IDE should show you in yellow whats wrong - you are missing the obvious classes to be included via use statements |
# |
Apr 22nd 2017, 10:49 |
ra7bi |
``` Argument 1 passed to App\Model\Table\EventsTable::beforeMarshal() must be an instance of App\Model\Table\Event, instance of Cake\Event\Event given, ``` what does this error mean ? My code is ``` public function beforeMarshal(Event $event, ArrayObject $data, ArrayObject $options) { if (isset($data['start_date'])) { $data['start_date'] = Time::parseDate($data['start_date'], 'YYYY-M-d HH:mm:ss'); } } ``` |
# |
Apr 22nd 2017, 10:22 |
ra7bi |
can i overwrite view template in some input ? |
# |
Apr 22nd 2017, 10:22 |
ra7bi |
i'v create custom view template , in somehow i want to change css class for some element |
# |
Apr 22nd 2017, 10:22 |
ra7bi |
hey |
# |
Apr 22nd 2017, 09:43 |
junior |
once you get a hold of it will make sense :slightly_smiling_face: |
# |
Apr 22nd 2017, 09:35 |
theaxiom |
the cs-check error output has a lot to be desired |
# |
Apr 22nd 2017, 09:34 |
theaxiom |
that's why my tests were failing |
# |
Apr 22nd 2017, 09:33 |
theaxiom |
I didn't know having `// TODO:` would make CS fail |
# |
Apr 22nd 2017, 09:26 |
junior |
brb |
# |
Apr 22nd 2017, 09:26 |
junior |
good :slightly_smiling_face: |
# |
Apr 22nd 2017, 09:26 |
theaxiom |
I get it now |
# |
Apr 22nd 2017, 09:26 |
theaxiom |
Ahh, just found it in composer.json |
# |
Apr 22nd 2017, 09:26 |
junior |
@theaxiom , codesniffer is that |
# |
Apr 22nd 2017, 09:25 |
theaxiom |
What is `composer cs-check` and what does it do? I am trying to find it on Google with not much luck. |
# |
Apr 22nd 2017, 09:12 |
theaxiom |
`Script phpcs --colors -p --standard=vendor/cakephp/cakephp-codesniffer/CakePHP ./src ./tests handling the cs-check event returned with error code 1` |
# |
Apr 22nd 2017, 09:09 |
theaxiom |
Can anyone tell me why phpcs is failing during this build process? https://travis-ci.org/SocialPlexus/core/jobs/224625505 |
# |
Apr 22nd 2017, 09:09 |
junior |
plus what you wrote was much much better :slightly_smiling_face: |
# |
Apr 22nd 2017, 09:07 |
junior |
@admad , yes, i noticed, i could not change file, need to read docs further, thanks! :slightly_smiling_face: |
# |
Apr 22nd 2017, 09:07 |
junior |
@nemmons , yes, i know, but i couldn't do there the PR |
# |
Apr 22nd 2017, 08:38 |
theaxiom |
@ra7bi jQueryUI |
# |
Apr 22nd 2017, 08:07 |
ra7bi |
Hey , anyone know good jquery datetime picker can work with Cakephp? |
# |
Apr 22nd 2017, 07:36 |
theaxiom |
Does anyone here remember Codaset? |
# |
Apr 21st 2017, 21:14 |
dereuromark |
try it |
# |
Apr 21st 2017, 21:14 |
dereuromark |
it will always generate relative to your scheme, so yes |
# |
Apr 21st 2017, 21:00 |
grzes_ |
hi there, will cake html helper respect SSL while generating URLs? |
# |
Apr 21st 2017, 20:49 |
ra7bi |
and the picker will pick as this format ``` {format:"YYYY-MM-DD"} ``` |
# |
Apr 21st 2017, 20:48 |
ra7bi |
any idea how to solve this ? |
# |
Apr 21st 2017, 20:48 |
ra7bi |
i used Datatbles plugin for datepicker |
# |
Apr 21st 2017, 20:47 |
ra7bi |
i add datepicker to cake template but when i save i got ``` dateTime The provided value is invalid ``` |
# |
Apr 21st 2017, 19:52 |
admad |
@junior you are supposed to target the PR for muffin/footprint not your own repo. Not to mention you didn't actually change the readme, just wrote the change required in the post :slightly_smiling_face: Anyway i have already added the warning to readme. |
# |
Apr 21st 2017, 19:29 |
nemmons |
https://book.cakephp.org/3.0/en/views/helpers/form.html#options-for-form-creation (`in the $options argument, any valid HTML attributes that you want to pass to the created form element.`) |
# |
Apr 21st 2017, 19:29 |
jippi |
its even on the page @nemmons linked to |
# |
Apr 21st 2017, 19:28 |
jippi |
read the docs! |
# |
Apr 21st 2017, 19:23 |
ra7bi |
i want to add css class to ``` form``` |