# |
Jul 21st 2017, 08:42 |
hmic |
maymeow: sure! just make vagrant use hyper-v instead of virtualbox |
# |
Jul 21st 2017, 08:42 |
hmic |
+1 for using cakebox, as it is a controlled and known environment, way more than the linux subsystem on windows |
# |
Jul 21st 2017, 08:42 |
maymeow |
@dereuromark it will run under Hyper-V? |
# |
Jul 21st 2017, 08:41 |
hmic |
still you need to enable the windows dev mode before you can install it - i think this is the problem. with this gone, any installer could just require it's dependency and install it right away... (like .net) |
# |
Jul 21st 2017, 08:41 |
dereuromark |
I would except the windows people to use the cakebox :slightly_smiling_face: That would also solve the issue, even a bit more clean. |
# |
Jul 21st 2017, 08:41 |
sonu_nk |
any help for my question ? |
# |
Jul 21st 2017, 08:40 |
admad |
hmic: who cares about the "beta" label if it does the job? :slightly_smiling_face: You are gonna use it for dev not prod |
# |
Jul 21st 2017, 08:40 |
maymeow |
because had problem with access to installed software in windows... like commandline for PHP... so i need install another one under subsystem.... better for me is install wirtual machine ;) |
# |
Jul 21st 2017, 08:39 |
birdy247 |
@admad I stand corrected. I had a typo |
# |
Jul 21st 2017, 08:39 |
hmic |
admad: it's still marked beta and you need to explicitely enable the dev option to be able to install it. or did this change lately? |
# |
Jul 21st 2017, 08:38 |
maymeow |
@admad im using bin\cake ;) |
# |
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 |