# |
May 28th 2016, 08:05 |
hmic |
!tell phpcoder about why |
# |
May 28th 2016, 08:03 |
phpcoder |
guys can i do a simpple query using a different alias? (i am not talking about joins...) just a SELECT... FROM.... WHERE |
# |
May 28th 2016, 05:18 |
mandeepkhaleriya |
@ ssaka i want to login with social site and also i want all functionality in social site means forger password,chane password etc?how how do thes task ?May you help me? |
# |
May 28th 2016, 05:18 |
mandeepkhaleriya |
@ savant i want to login with social site and also i want all functionality in social site means forger password,chane password etc?how how do thes task ?May you help me? |
# |
May 28th 2016, 03:47 |
ssaka |
I looking for tutorials and documents, or would not tell me if there is a valid URL. |
# |
May 28th 2016, 03:46 |
ssaka |
hello guys, i'm lean cakephp3 today. I'd like to undo migrate (drop table) and undo bake all (model/controller/template). i can't find operations. |
# |
May 27th 2016, 22:51 |
savant |
no problem |
# |
May 27th 2016, 22:48 |
djboz |
@savant: Yeah that was my issue, thanks for clearing that up. Got it! I was responding with the download and itâ??s type. |
# |
May 27th 2016, 22:47 |
djboz |
Iâ??m reading the wrong section, Iâ??m sorry. |
# |
May 27th 2016, 22:47 |
djboz |
OHhhhhhh my bad |
# |
May 27th 2016, 22:47 |
savant |
and then respond with the body |
# |
May 27th 2016, 22:47 |
savant |
just dont tell it that you want the user to download it or the type? |
# |
May 27th 2016, 22:46 |
djboz |
Yeah you wanted to send it as a file |
# |
May 27th 2016, 22:46 |
savant |
$this->response->body($string); return $this->response; |
# |
May 27th 2016, 22:46 |
savant |
and i sent you a link with how to respond with a string |
# |
May 27th 2016, 22:46 |
djboz |
Iâ??m litearlly just echoing back a string. |
# |
May 27th 2016, 22:46 |
savant |
because thats not valid php |
# |
May 27th 2016, 22:45 |
djboz |
Itâ??s not a file. |
# |
May 27th 2016, 22:45 |
savant |
and php didnt complain? |
# |
May 27th 2016, 22:45 |
djboz |
Yeah |
# |
May 27th 2016, 22:45 |
savant |
and saved the file? |
# |
May 27th 2016, 22:45 |
savant |
you wrote that exact code? |
# |
May 27th 2016, 22:45 |
djboz |
I did ``` $this->response->($response); ``` still had no affect |
# |
May 27th 2016, 22:41 |
savant |
it tells you how to set the response as a string for any action. |
# |
May 27th 2016, 22:41 |
savant |
check the link i just sent you |
# |
May 27th 2016, 22:41 |
djboz |
I believe the header file is being sent as well when a POST request is made to the SlackController::index() |
# |
May 27th 2016, 22:40 |
savant |
http://book.cakephp.org/3.0/en/controllers/request-response.html#sending-a-string-as-file |
# |
May 27th 2016, 22:40 |
savant |
err |
# |
May 27th 2016, 22:40 |
savant |
so remove the index.ctp?http://book.cakephp.org/3.0/en/controllers/request-response.html#sending-a-string-as-file |
# |
May 27th 2016, 22:39 |
djboz |
If I remove my template/index.ctp file for that controller, then it will return the error page html for the missing template file |
# |
May 27th 2016, 22:37 |
djboz |
Itâ??s the html code of that index.ctp file |
# |
May 27th 2016, 22:37 |
djboz |
With Slack, Iâ??m using a slash command, and hitting my Controller/index() url. Slack allows up to 3000ms for a reply, and I reply with a general echo statement, which works. But it also includes all the html code, this occurs even without the echo statement. |
# |
May 27th 2016, 22:36 |
savant |
you did what |
# |
May 27th 2016, 22:36 |
djboz |
@savant: I did, but everytime it comes back to my slack account with the html of that document as well as the echoâ??ed statement |
# |
May 27th 2016, 22:35 |
savant |
what do you mean, just the echo statement |
# |
May 27th 2016, 22:33 |
djboz |
Hi guys, Iâ??m sending a request from Slack, and it always returns the cakephp html layout of that template, how do I stop my method from echoing back the html and just the echo statement? |
# |
May 27th 2016, 21:42 |
ionas |
as you can see on cakefest.org |
# |
May 27th 2016, 21:42 |
ionas |
this time it is in Amsterdam |
# |
May 27th 2016, 21:41 |
phpcoder |
where it will be located ? |
# |
May 27th 2016, 21:41 |
ionas |
no |
# |
May 27th 2016, 21:41 |
phpcoder |
are you giving a talk ? |