# |
Oct 3rd 2016, 11:28 |
WebDevB |
Can anyone help? |
# |
Oct 3rd 2016, 11:28 |
WebDevB |
Hey guys, we've got a multi langauge site and when we're trying to login it's redirecting us back to the homepage saying incorrect login details but they are correct. |
# |
Oct 3rd 2016, 11:28 |
livia.scapin |
my code is waiting for tests since 2 yearsâ?¦ |
# |
Oct 3rd 2016, 11:21 |
johan |
`public function testXxxI()` |
# |
Oct 3rd 2016, 11:21 |
johan |
as long as starts with the word `test`, as far as I know |
# |
Oct 3rd 2016, 11:05 |
dereuromark |
Yeah :slightly_smiling_face: |
# |
Oct 3rd 2016, 10:57 |
unorthodox |
lol |
# |
Oct 3rd 2016, 10:57 |
crazycoder |
D |
# |
Oct 3rd 2016, 10:57 |
Neon1024 |
Indiaâ??s software industry would shut down without Stackoverflow haha |
# |
Oct 3rd 2016, 10:56 |
Neon1024 |
Whatâ??s wrong with copying random code from Stackoverflow and putting it in your project! :p |
# |
Oct 3rd 2016, 10:56 |
unorthodox |
If you really want to use cakephp's way |
# |
Oct 3rd 2016, 10:56 |
unorthodox |
http://book.cakephp.org/3.0/en/views/helpers/html.html#creating-meta-tags |
# |
Oct 3rd 2016, 10:56 |
crazycoder |
ok copy and paste |
# |
Oct 3rd 2016, 10:55 |
crazycoder |
Neon1024, ahaha :D |
# |
Oct 3rd 2016, 10:55 |
Neon1024 |
p |
# |
Oct 3rd 2016, 10:55 |
Neon1024 |
Write a library which you can then implement into a helper, which you can call in your layout |
# |
Oct 3rd 2016, 10:55 |
unorthodox |
:( |
# |
Oct 3rd 2016, 10:55 |
Neon1024 |
Copy and paste into your layout? |
# |
Oct 3rd 2016, 10:55 |
Neon1024 |
Haha |
# |
Oct 3rd 2016, 10:54 |
crazycoder |
but how can i add them via cakephp ? |
# |
Oct 3rd 2016, 10:54 |
crazycoder |
oh thank unorthodox |
# |
Oct 3rd 2016, 10:54 |
crazycoder |
$this->response->expires('-1 days'); |
# |
Oct 3rd 2016, 10:50 |
unorthodox |
http://stackoverflow.com/a/1341133 |
# |
Oct 3rd 2016, 10:49 |
crazycoder |
guys how can i prevent that browsers cache my page? |
# |
Oct 3rd 2016, 10:49 |
crazycoder |
hello |
# |
Oct 3rd 2016, 09:38 |
Neon1024 |
lol |
# |
Oct 3rd 2016, 09:38 |
charolastra |
i see, thanks |
# |
Oct 3rd 2016, 09:37 |
unorthodox |
That's still an echo |
# |
Oct 3rd 2016, 09:37 |
charolastra |
no echo there, only the shorthand code <?= for calling php |
# |
Oct 3rd 2016, 09:35 |
Neon1024 |
It is if youâ??ve prefixed it with echo |
# |
Oct 3rd 2016, 09:35 |
charolastra |
when doing $this->layout in a view template it results in the layout name getting echoed in the generated HTML. is that a bug? |
# |
Oct 3rd 2016, 09:25 |
mamchenkov |
cool, thanks unorthodox :) |
# |
Oct 3rd 2016, 09:24 |
unorthodox |
http://book.cakephp.org/3.0/en/migrations.html#seed-seeding-your-database |
# |
Oct 3rd 2016, 09:24 |
unorthodox |
They mentioned seed in migrations too though |
# |
Oct 3rd 2016, 09:23 |
mamchenkov |
it's just that CakePHP docs mention seeds in the test context, so I wasn't sure if it was a good idea to use them for anything else :) |
# |
Oct 3rd 2016, 09:22 |
mamchenkov |
ACTION is a proud contributor to phinx ;) |
# |
Oct 3rd 2016, 09:22 |
mamchenkov |
yup |
# |
Oct 3rd 2016, 09:22 |
unorthodox |
Definitely @mamchenkov, cakephp seeds leverages Phinx library which is pretty awesome. |
# |
Oct 3rd 2016, 09:17 |
mamchenkov |
ok, that sounds cool :) we've been relying on a banch of shell scripts for setting up the system ... seeds look like a better, more elegant way to do so |
# |
Oct 3rd 2016, 09:15 |
unorthodox |
I'm using them for real data @mamchenkov |
# |
Oct 3rd 2016, 09:15 |
mamchenkov |
hey Neon1024, how is it going :) |