# |
May 27th 2016, 06:17 |
unorthodox |
Nice. I was about to check Chronos myself. |
# |
May 27th 2016, 06:16 |
unholyknight |
Found the functionality in Chronos diffinhours, diffindays. Knew it was hiding in there somewhere. |
# |
May 27th 2016, 06:13 |
unholyknight |
Does Cake\I18n\Time support date differences? Specifically I need the number of days between two dates and the number of minutes. |
# |
May 27th 2016, 06:04 |
unorthodox |
Ofc aro |
# |
May 27th 2016, 05:55 |
aro |
they do not belong to a hasMany or anything |
# |
May 27th 2016, 05:55 |
aro |
is it possible to save multiple records with one form? |
# |
May 27th 2016, 05:40 |
LckyBy517 |
its not coding related either XD just networking haha |
# |
May 27th 2016, 05:40 |
LckyBy517 |
i'm having a terrible brain fart tonight and cannot think of why this is a problem.... |
# |
May 27th 2016, 05:26 |
unorthodox |
Morning everyone. |
# |
May 27th 2016, 05:03 |
lowcaltoast |
slackebot: Set the content disposition and send it across as a response |
# |
May 27th 2016, 05:02 |
mandeepkhaleriya |
How i use directly? |
# |
May 27th 2016, 05:01 |
voycey |
you can just link directly to the file? |
# |
May 27th 2016, 05:01 |
voycey |
why are you serving files that are in your webroot directory through response? |
# |
May 27th 2016, 04:59 |
voycey |
some of us arent using slack and it looks crap |
# |
May 27th 2016, 04:59 |
voycey |
use gist |
# |
May 27th 2016, 04:59 |
voycey |
dont paste code directly |
# |
May 27th 2016, 04:59 |
slackebot |
<?= $this->Html->link(__('Download'), ['action' => 'download', $file->id]) ?> but when i download that file it does not show any contain in downloaded file?what is main issue? |
# |
May 27th 2016, 04:59 |
mandeepkhaleriya |
@ voycey i have also proble con you tell me here? In my Controller public function download($id = null) { $this->response->download(WWW_ROOT .'/uploads/files/'.DS.$id); //$this->response->download(WWW_ROOT."uploads".DS."files".DS.$id); $this->response->type = 'file'; return $this->response ; } And in my template .ctp file looks like as |
# |
May 27th 2016, 04:54 |
voycey |
store the map location as text |
# |
May 27th 2016, 04:54 |
mandeepkhaleriya |
@ voycey what means of text here ?can you tell me? |
# |
May 27th 2016, 04:46 |
voycey |
text? |
# |
May 27th 2016, 04:42 |
mandeepkhaleriya |
hello dears how i store google map location in my db in cakephp 3.2?can anyone help me? |
# |
May 27th 2016, 04:02 |
voycey |
daun: you can just use saveAll for it |
# |
May 27th 2016, 03:30 |
justinatack |
New Relic is my Hero! hahah |
# |
May 27th 2016, 03:20 |
daun |
voycey, i tried to use saveassociated: https://gist.github.com/anonymous/a3f87cb27a0a22d736e55d0b37324603 but how can i identify the book id? |
# |
May 27th 2016, 03:11 |
voycey |
As long as Loan and Book are associated then you can do that :) |
# |
May 27th 2016, 03:11 |
voycey |
$this->Loan->Book->save |
# |
May 27th 2016, 03:06 |
daun |
anybody could give me some idea to solve this? |
# |
May 27th 2016, 03:06 |
daun |
hello, im using cake2. how can i save data to another controller based on ID? example, i've 3 tables, 1)users 2)books 3)loans. all of them have id. in table loans, i've id, user_id, book_id and status. when i create a new loan, i can select user and book id then save without any problem. but how can i save the status from when create new loan to table book? to identify the book is on loan |
# |
May 27th 2016, 02:30 |
justinatack |
Can anybody recommend a good Error Logging Cloud solution for a CakePHP App hosted on Heroku? |
# |
May 27th 2016, 00:20 |
ionas |
eh Joeycake |
# |
May 27th 2016, 00:20 |
ionas |
royalty: Iâ??d create a flashless layout |
# |
May 27th 2016, 00:14 |
fly2279 |
Joeycake: I find it useful to check if the user is logged in from beforeFilter in the AppController. If not I set a different message to override the flash set by auth so that the user only sees the not authorized flash if they truly arenâ??t authorized and not just if they arenâ??t logged in. |
# |
May 26th 2016, 23:52 |
royalty |
Joeycake, but really an auth message isa flash stored in session so you can probs empty the session flash |
# |
May 26th 2016, 23:48 |
royalty |
Joeycake, you probablt have to find out what view the user isn't authed for and give user permission |
# |
May 26th 2016, 23:41 |
Joeycake |
I have a cake app that requires logging in, and it redirects to the login page, but it also shows the "not authorized" message. |
# |
May 26th 2016, 23:34 |
Joeycake |
Is there a way to turn off the auth message for a specific view? |
# |
May 26th 2016, 22:02 |
phpcoder |
is it possible to change the paginator count query? i need to count using the "distinct", like COUNT(distinct Agents.id) |
# |
May 26th 2016, 21:38 |
ionas |
anyway cant figure why the test cases dont succeed |
# |
May 26th 2016, 21:38 |
ionas |
ah right |
# |
May 26th 2016, 21:28 |
bravo-kernel |
`phpunit` |