# |
Jul 5th 2019, 08:59 |
rchavik |
getting "ActionDispatcher::addFilter() is deprecated. This is only available for backwards compatibility with DispatchFilters", which migration step should i read? |
# |
Jul 5th 2019, 08:46 |
felix123 |
that's true, I guess I can just do it case by case too. thanks ! |
# |
Jul 5th 2019, 08:43 |
neothermic |
usually you'd only want a few actions to be root of the domain anyway |
# |
Jul 5th 2019, 08:42 |
felix123 |
is this the correct way ? |
# |
Jul 5th 2019, 08:42 |
felix123 |
$routes->connect('/login',['controller' => 'Users', 'action' => 'login']); |
# |
Jul 5th 2019, 08:42 |
felix123 |
that's what im doing, but right now I do it for each action of the controller, like this : |
# |
Jul 5th 2019, 08:40 |
neothermic |
you'd add a custom route in your routes config file for that |
# |
Jul 5th 2019, 08:39 |
felix123 |
hello, i'd like to know if there is a way to tell cakePHP : all the actions of this controller can be called from the root url, like mydomain.fr/login instead of mydomain.fr/users/login |
# |
Jul 5th 2019, 08:18 |
scuadra |
thank you very much |
# |
Jul 5th 2019, 08:17 |
scuadra |
but from now on I'll use it |
# |
Jul 5th 2019, 08:17 |
scuadra |
well I didn't know that was possible |
# |
Jul 5th 2019, 08:15 |
admad |
why do you need to parse anything when you already have a FrozenTime object? Just use `$instance->i18nFormat()` |
# |
Jul 5th 2019, 08:13 |
scuadra |
@admad well I tried using parseDate and parseDateTime but with no success. I am trying to format the created field which is "object(Cake\I18n\FrozenTime)" to be like ddMMYYYY |
# |
Jul 5th 2019, 07:57 |
admad |
@scuadra I'll let you in on a secret, you access to the TimeHelper's code. So check what's in the `format()` method :slightly_smiling_face: |
# |
Jul 5th 2019, 07:54 |
scuadra |
@admad thank you, but I can't understand which method is equivalent to TimeHelper->format() ? |
# |
Jul 5th 2019, 07:44 |
admad |
@scuadra no, use the `Cake\I18n\Time` class directly. TimeHelper is just a wrapper for it |
# |
Jul 5th 2019, 07:43 |
conehead |
But yes, you could initiate a new Instance |
# |
Jul 5th 2019, 07:42 |
conehead |
Maybe you are looking for a Behavior? |
# |
Jul 5th 2019, 07:42 |
conehead |
Helpers are for views |
# |
Jul 5th 2019, 07:38 |
scuadra |
Hello. Is it possible to use Helper (in my case TimeHelper) in Table class? |
# |
Jul 5th 2019, 01:01 |
BeBoo |
I am having issues with a new model/controller I baked. No errors when baking but when I access index, I get an error "unable to locate an object compatible with paginate". Table name is mailbox_aliases so the controller/model is created is MailboxAliases. When I debug $this->MailboxAliases, i get false. |
# |
Jul 4th 2019, 19:02 |
dsar |
Hi |
# |
Jul 4th 2019, 14:54 |
yamcomnet |
i did a hack :slightly_smiling_face: $configFile->write($licenseUrl. PHP_EOL); |
# |
Jul 4th 2019, 14:48 |
yamcomnet |
is there some special characted i could use for new line |
# |
Jul 4th 2019, 14:43 |
yamcomnet |
instead of new file, will write second string into same line |
# |
Jul 4th 2019, 14:42 |
slackebot |
<yamcomnet> |
# |
Jul 4th 2019, 14:42 |
yamcomnet |
trying to append text file with File Api like |
# |
Jul 4th 2019, 13:32 |
louis |
Thank's ! |
# |
Jul 4th 2019, 12:59 |
admad |
`->extract('columnName')` |
# |
Jul 4th 2019, 12:50 |
revillosakristianpaol |
is it possible to make the result from [{'columnName':'value1'},{'columnName':'value2'}] to ['value1','value2'] when im using a query |
# |
Jul 4th 2019, 12:49 |
revillosakristianpaol |
hi |
# |
Jul 4th 2019, 12:41 |
brian493 |
@challgren thanks for the info I will check into it |
# |
Jul 4th 2019, 11:44 |
challgren |
Yep uploading a firmware at 123 bytes a second, so I’ll be here for a while whats up kiwi_69 |
# |
Jul 4th 2019, 11:41 |
kiwi_69 |
is anybody here? |
# |
Jul 4th 2019, 11:41 |
admad |
kiwi_69: sure, that's what this channel is for :slightly_smiling_face: |
# |
Jul 4th 2019, 11:39 |
kiwi_69 |
hello, please can i ask a question about cakephp? |
# |
Jul 4th 2019, 11:30 |
admad |
@rchavik check what core's `plugin load` does |
# |
Jul 4th 2019, 11:30 |
rchavik |
quite painful to migrate :( |
# |
Jul 4th 2019, 11:29 |
rchavik |
thanks for the ndm |
# |
Jul 4th 2019, 11:23 |
ndm |
@rchavik The `Croogo/Install` plugin should probably provide a `Plugin` class, and load the plugins in the `boostrap()` method. https://book.cakephp.org/3.0/en/plugins.html#plugin-objects |
# |
Jul 4th 2019, 11:01 |
rchavik |
@admad how do i dynamically load plugins then? use case: installing croogo via composer create-project. it provides plugin Croogo/Install that provides shell installer. the shell installer needs to dynamically load Croogo/Core plugin, Migrations plugin, etc |