# |
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 :) |
# |
Oct 3rd 2016, 09:15 |
mamchenkov |
quick question in regards to database seeders in cakephp 3 ... are those intended only for testing, or is it OK to use them for real data too? like creating users/categories/etc |
# |
Oct 3rd 2016, 09:14 |
Neon1024 |
Hey mamchenkov |
# |
Oct 3rd 2016, 09:14 |
mamchenkov |
good morning :) |
# |
Oct 3rd 2016, 09:14 |
unorthodox |
I personally prefer Linode @birdy247 |
# |
Oct 3rd 2016, 09:14 |
johan |
sup dave :slightly_smiling_face: |
# |
Oct 3rd 2016, 09:14 |
Neon1024 |
Morning johan! |
# |
Oct 3rd 2016, 09:13 |
johan |
AWS is also a great option, though quite a bit more complex |
# |
Oct 3rd 2016, 09:13 |
johan |
ditto |
# |
Oct 3rd 2016, 09:13 |
Neon1024 |
But I think itâ??s a blank box, you setup yourself |