# |
Jul 21st 2017, 08:38 |
admad |
why aren't windows users using the linux subsystem already? |
# |
Jul 21st 2017, 08:38 |
maymeow |
C:\ cd users/may returns path c:\users\may ... so it is rewrite / to \ ;) |
# |
Jul 21st 2017, 08:37 |
admad |
@maymeow in this particular case it's cause you need to use the .bat file on windoz |
# |
Jul 21st 2017, 08:37 |
admad |
it should |
# |
Jul 21st 2017, 08:37 |
sonu_nk |
if i want to generate a Website controller but use table = 'analytics_sites' then what to do in cake bake command ? |
# |
Jul 21st 2017, 08:37 |
birdy247 |
didnt work |
# |
Jul 21st 2017, 08:37 |
birdy247 |
$this->layout = "some-layout" |
# |
Jul 21st 2017, 08:37 |
maymeow |
@hmic ok but bin/cake not working for me too |
# |
Jul 21st 2017, 08:36 |
admad |
@birdy247 did you try setting layout from a template? |
# |
Jul 21st 2017, 08:36 |
birdy247 |
or only extend other templates? |
# |
Jul 21st 2017, 08:36 |
birdy247 |
Is it possible to set a layout from a template file |
# |
Jul 21st 2017, 08:34 |
birdy247 |
Ill take a look |
# |
Jul 21st 2017, 08:34 |
birdy247 |
I saw you messaged me yday |
# |
Jul 21st 2017, 08:34 |
birdy247 |
Hey @neon1024 |
# |
Jul 21st 2017, 08:33 |
hmic |
maymeow: windows does take / as dir separator for ages too! |
# |
Jul 21st 2017, 08:28 |
maymeow |
for windows is bin\cake for linux bin/cake |
# |
Jul 21st 2017, 08:27 |
neon1024 |
Morning all |
# |
Jul 21st 2017, 08:24 |
prophet |
bin\cake ? |
# |
Jul 21st 2017, 08:22 |
sonu_nk |
?? |
# |
Jul 21st 2017, 08:22 |
sonu_nk |
$ bin/cake --> No command 'bin' found, did you mean: |
# |
Jul 21st 2017, 08:18 |
prophet |
I am using '->requirePresence('img', 'create')' as a validator rule. I expect that the presence is only required if a new record is added, but if i edit a record the img-field should not be required. But the required attribute of the input is set... So I guess I am misinterepreting the validation rule?! |
# |
Jul 21st 2017, 07:56 |
sonu_nk |
i want to generate API keys for each user.. which is the best method ? |
# |
Jul 21st 2017, 07:14 |
maymeow |
As of 1.6.4, the bake seed command allows you to create a seed file with data exported from your database by using the --data flag: |
# |
Jul 21st 2017, 07:10 |
maymeow |
https://book.cakephp.org/3.0/en/migrations.html#generating-migrations-from-an-existing-database |
# |
Jul 21st 2017, 07:08 |
birdy247 |
Is there a way to create a seed from data already in a database? |
# |
Jul 21st 2017, 06:12 |
maymeow |
Hi. Houston we have problem... Anyone has running CakePHP app behind proxy?? i have created enviroment like this: `[CakePHP + NGINX] -------> [NGINX Reverse Proxy] <--------- [Internet]` When loading page its look like randomly loaded CSS styles. Anyone has this glitches? |
# |
Jul 21st 2017, 05:04 |
dakota |
Sometimes |
# |
Jul 21st 2017, 04:47 |
Rockwood |
any active here ? |
# |
Jul 20th 2017, 23:34 |
dereuromark |
just dont make the alternative available :slightly_smiling_face: use apache or nginx rewrite to directly 301 to the https one when coming to the website |
# |
Jul 20th 2017, 23:34 |
dereuromark |
by being https it will do that automatically |
# |
Jul 20th 2017, 23:18 |
thomasnucleus |
How can I make it so any fullbase links generated with HtmlHelper or $this->redirects do https:// instead of http:// |
# |
Jul 20th 2017, 23:09 |
phpnut |
night |
# |
Jul 20th 2017, 23:08 |
ericadeefox |
goodnight cakephp!!! :) |
# |
Jul 20th 2017, 23:06 |
ericadeefox |
it'll easily be done in just one file |
# |
Jul 20th 2017, 23:06 |
phpnut |
ok even easier |
# |
Jul 20th 2017, 22:58 |
ericadeefox |
the new join table and fields exist, just need to migrate from old field to new join table, then delete the old field |
# |
Jul 20th 2017, 22:57 |
phpnut |
yeah |
# |
Jul 20th 2017, 22:57 |
phpnut |
write one to add the new fields |
# |
Jul 20th 2017, 22:57 |
ericadeefox |
like the migrations plugin is its own example yea |
# |
Jul 20th 2017, 22:57 |
phpnut |
it is really |
# |
Jul 20th 2017, 22:57 |
ericadeefox |
looks like it'd just be really simple to write w migrations plugin |