# |
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 |
# |
Jul 4th 2019, 10:51 |
admad |
@louis https://api.cakephp.org/3.8/class-Cake.View.Helper.FormHelper.html#_addWidget |
# |
Jul 4th 2019, 10:45 |
admad |
You shouldn't be loading plugin in app's bootstrap anymore. |
# |
Jul 4th 2019, 10:44 |
admad |
@rchavik TestCase::loadPlugins() |
# |
Jul 4th 2019, 10:08 |
ndm |
@mehov `Cake\Database\Log\LoggingStatement` (it's marked as `@internal`, hence it doesn't appear in the API docs) extends `\Cake\Database\Statement\StatementDecorator`, which implements `\Cake\Database\StatementInterface`. |
# |
Jul 4th 2019, 10:01 |
michal.ferak |
Gotcha, thanks, I will be watching out for those from now on for sure :slightly_smiling_face: |
# |
Jul 4th 2019, 09:59 |
slackebot |
Cake\Database\Log\LoggingStatement, Cake\Database\Statement\PDOStatement - nothing worked |
# |
Jul 4th 2019, 09:59 |
mehov |
Hi gentlemen Query::execute() is documented to return https://api.cakephp.org/3.7/class-Cake.Database.StatementInterface.html, but in fact returns Cake\Database\Log\LoggingStatement (which I can't even find a dedicated API page for) I have a method that returns the return of Query::execute() because it's errorCode() is needed later. If I can't run a query, I still need to return something that has errorCode(). What should I return? Tried |
# |
Jul 4th 2019, 09:57 |
challgren |
Gotta watch for those RCs and stuff, best to look at the releases page, shows you how many commits to the branch since the release was published |
# |
Jul 4th 2019, 09:51 |
michal.ferak |
Oh! Thanks. I was starting to pull my hairs out |