# |
Dec 20th 2017, 14:12 |
admad |
@vignesh.pattalam https://github.com/FriendsOfCake/crud-view/blob/master/src/View/Cell/TablesListCell.php#L23 |
# |
Dec 20th 2017, 14:10 |
jotpe |
hey guys. I want to use $this->response->body(); but it's deprecated and withBody() should be used, which wants a StreamInterface as param. Do i need to implement the StreamInterface in a Class? Is there maybe a implementation yet? |
# |
Dec 20th 2017, 14:08 |
k4t |
hello |
# |
Dec 20th 2017, 14:06 |
vignesh.pattalam |
Hi, I have a question. Is there any method in CakePHP that tells you if a table exists in the database ? I initially thought TableRegistry::exists() did this, but it doesn't look it that is its functionality |
# |
Dec 20th 2017, 14:06 |
neon1024 |
Fair enough, just be mindfull of adding extra dependencies when you don’t need to |
# |
Dec 20th 2017, 14:05 |
obinoob |
neon1024 i guess it's all the same the plugin is just easing my instalation troubles |
# |
Dec 20th 2017, 14:03 |
saeideng |
no need to any plugin |
# |
Dec 20th 2017, 14:02 |
saeideng |
just `CKEDITOR.replace( 'textarea1',{fullPage : false});` |
# |
Dec 20th 2017, 14:01 |
neon1024 |
Just used the jQuery adapter |
# |
Dec 20th 2017, 14:01 |
neon1024 |
Never needed a helper for CK Editor personally |
# |
Dec 20th 2017, 14:01 |
obinoob |
whats the proper way of displaying ckeditor data, all I can get is html which I think is fine but I need to render html I'm using this plugin for cake https://github.com/CakeCoded/CkEditor |
# |
Dec 20th 2017, 13:51 |
hmic |
justcharlz: you can catch the exception yourself, or use find->first instead of get, if you expect the id not to exist |
# |
Dec 20th 2017, 13:42 |
matt |
@bravo-kernel I'm using cakebox and the logstash process is at 100% cpu and has been for a few hours. I've checked for large log files etc. can you suggest anything please? |
# |
Dec 20th 2017, 13:18 |
justcharlz |
:middle_finger: too :) |
# |
Dec 20th 2017, 13:17 |
saeideng |
no problem |
# |
Dec 20th 2017, 13:17 |
justcharlz |
ok. thanks for the answer |
# |
Dec 20th 2017, 13:17 |
justcharlz |
okay. didn't know you answered the question. My internet disconnected after posting the question, so I had to reload. Did not see your answer. |
# |
Dec 20th 2017, 13:17 |
saeideng |
and primary key can not null/empty |
# |
Dec 20th 2017, 13:17 |
saeideng |
get just expect a primary key id |
# |
Dec 20th 2017, 13:16 |
justcharlz |
@saeideng the record in the database table is empty so I want to know if it returns null when database is empty |
# |
Dec 20th 2017, 13:16 |
saeideng |
>when you try to get(id) >that expect a record with primary key = $id >otherwise returns an error |
# |
Dec 20th 2017, 13:15 |
saeideng |
because I answered your question above |
# |
Dec 20th 2017, 13:15 |
justcharlz |
@saeideng under the :middle_finger: |
# |
Dec 20th 2017, 13:14 |
saeideng |
returning false/null when not found any thing ? |
# |
Dec 20th 2017, 13:14 |
saeideng |
what you need? |
# |
Dec 20th 2017, 13:14 |
saeideng |
what no? |
# |
Dec 20th 2017, 13:13 |
justcharlz |
what for? |
# |
Dec 20th 2017, 13:13 |
justcharlz |
@saeideng hmmm |
# |
Dec 20th 2017, 13:09 |
saeideng |
:middle_finger: |
# |
Dec 20th 2017, 13:09 |
saeideng |
justchariz |
# |
Dec 20th 2017, 13:06 |
justcharlz |
hello guys. need help. I am getting "Record not found" when I try retrieving data using get($id). Does result retrieve return boolean or null when I use get($id) |
# |
Dec 20th 2017, 13:06 |
saeideng |
otherwise returns an error |
# |
Dec 20th 2017, 13:05 |
saeideng |
that expect a record with primary key = $id |
# |
Dec 20th 2017, 13:05 |
saeideng |
when you try to get(id) |
# |
Dec 20th 2017, 12:51 |
justcharlz |
hello guys. need help. I am getting "Record not found" when I try retrieving data using get($id). Does result retrieve return boolean or null when I use get($id) |
# |
Dec 20th 2017, 12:01 |
neon1024 |
Question for the core team ;) |
# |
Dec 20th 2017, 12:01 |
neon1024 |
Not sure if the CSRF works via Ajax though |
# |
Dec 20th 2017, 12:00 |
neon1024 |
If I remember my SecurityComponent correctly |
# |
Dec 20th 2017, 12:00 |
neon1024 |
That does mean someone can form tamper you |
# |
Dec 20th 2017, 12:00 |
danishkhan3621 |
@neon1024: after adding $this->Security->config('unlockedActions',array('update')); it started working |
# |
Dec 20th 2017, 11:51 |
neon1024 |
..and it’d be nice if it was compatible with the CakePHP coding standard :P |