# |
Mar 13th 2018, 11:13 |
dorxy |
so make sure your namespace is defined correctly inside the controller class in your subdirectory |
# |
Mar 13th 2018, 11:13 |
dorxy |
@jbehling if you check out `/src/Http/ControllerFactory::64` you can see where they take into account the prefix for the namespace |
# |
Mar 13th 2018, 11:13 |
jbehling |
@dorxy Okay, I'll take a look. Thank you |
# |
Mar 13th 2018, 11:12 |
dereuromark |
master is still 3.5 of course |
# |
Mar 13th 2018, 11:12 |
dereuromark |
@yadav.manu36 Did you use the 3.next branch for bake? |
# |
Mar 13th 2018, 11:11 |
dorxy |
looking for the docs on it but can not really find it |
# |
Mar 13th 2018, 11:11 |
dorxy |
that is at least what I recall |
# |
Mar 13th 2018, 11:11 |
dorxy |
so e.g. if you have controllers in a Reports subdirectory you should be able to access it through routes such as /reports/:controller |
# |
Mar 13th 2018, 11:11 |
jbehling |
@dorxy I tried to use prefix but I could not, I probably did it wrong |
# |
Mar 13th 2018, 11:10 |
dorxy |
@jbehling you can access controllers inside a directory using a prefix |
# |
Mar 13th 2018, 11:09 |
dorxy |
@dorxy I'm no core contributor but be my guest :) |
# |
Mar 13th 2018, 11:04 |
turkles |
thenks Pierre, purrfect |
# |
Mar 13th 2018, 11:03 |
pierre-baptiste.varle |
@dorxy can I make a PR to extand the _getInput functions to add more choice of customisation? |
# |
Mar 13th 2018, 11:03 |
jbehling |
Can I create a folder inside the Controller? Like `Controller/Reports`? And how do I access via url? |
# |
Mar 13th 2018, 11:02 |
yadav.manu36 |
when i take new update for cakephp/cakephp:3.6.0-beta2 then cake bake not working can you fix it? |
# |
Mar 13th 2018, 11:01 |
pierre-baptiste.varle |
@turkles Date::now()->month |
# |
Mar 13th 2018, 11:01 |
dereuromark |
L4celek: read the chronos docs |
# |
Mar 13th 2018, 11:01 |
yadav.manu36 |
Hi all |
# |
Mar 13th 2018, 11:01 |
turkles |
is there a quick way of getting the first of the current month? |
# |
Mar 13th 2018, 10:59 |
dorxy |
but I'd try to create the interactive question first before diving into the details of changing the way it's prompted |
# |
Mar 13th 2018, 10:59 |
dorxy |
then perhaps you can implement your own IOInterface which extends the default one? (and your own shell to instantiate it probably) |
# |
Mar 13th 2018, 10:58 |
pierre-baptiste.varle |
I need th change this line, I would like to have '(conf) >' prefix instead of '>' |
# |
Mar 13th 2018, 10:57 |
pierre-baptiste.varle |
this could work but I would like to have a custom prompt https://github.com/cakephp/cakephp/blob/7d52085e6f3874abb18a5de6df73c0c1332054ad/src/Console/ConsoleIo.php#L360 |
# |
Mar 13th 2018, 10:57 |
dorxy |
:thumbsup: you should be set then :) |
# |
Mar 13th 2018, 10:57 |
pierre-baptiste.varle |
yes I read it already |
# |
Mar 13th 2018, 10:56 |
dorxy |
and for creation of a console you should check out https://book.cakephp.org/3.0/en/console-and-shells.html |
# |
Mar 13th 2018, 10:56 |
pierre-baptiste.varle |
thx I found it |
# |
Mar 13th 2018, 10:56 |
dorxy |
if you've installed CakePHP with composer it should be in your `/src/Console` folder |
# |
Mar 13th 2018, 10:55 |
pierre-baptiste.varle |
@dorxy where is Installer.php? |
# |
Mar 13th 2018, 10:54 |
pierre-baptiste.varle |
I looking for something like 'cake console' command |
# |
Mar 13th 2018, 10:53 |
dorxy |
`$io->askAndValidate` has a maximum attempts parameter and might be what you're looking for |
# |
Mar 13th 2018, 10:53 |
dorxy |
@pierre-baptiste.varle you should check out `Installer.php` |
# |
Mar 13th 2018, 10:51 |
pierre-baptiste.varle |
there is a way to have a interactive console? without a while true {$this->in()} ? |
# |
Mar 13th 2018, 10:50 |
braguzz |
if I put it in afterFind? |
# |
Mar 13th 2018, 10:44 |
reg01 |
Where can I report security vulnerabilities? |
# |
Mar 13th 2018, 10:43 |
braguzz |
(i'm on 2.x) |
# |
Mar 13th 2018, 10:43 |
reg01 |
I couldn't find anything on the website as to where to report security vulnerabilities. I would recommend adding that. |
# |
Mar 13th 2018, 10:43 |
braguzz |
some examples?? :) |
# |
Mar 13th 2018, 10:41 |
alysson-azevedo |
yes, you can. write a getter on the profstrut entity for that field that returns the titolo's data |
# |
Mar 13th 2018, 10:28 |
braguzz |
can I use a field in Titolo in a Profstrut virtulfield? |
# |
Mar 13th 2018, 10:27 |
braguzz |
Profstrut belongsTo Titolo |