# |
Oct 5th 2016, 08:57 |
Neon1024 |
Error: Call to undefined method TableShellHelper::ouput() |
# |
Oct 5th 2016, 08:57 |
Neon1024 |
http://book.cakephp.org/2.0/en/console-and-shells/helpers.html#built-in-helpers |
# |
Oct 5th 2016, 08:56 |
wrksx |
hey guys |
# |
Oct 5th 2016, 08:55 |
Speud |
hello ;) |
# |
Oct 5th 2016, 08:51 |
dariolap |
How i can to ignore accessor in patchEntity? |
# |
Oct 5th 2016, 08:44 |
jay |
What about Helpers? Is it possible to load helpers from vendor from controller? |
# |
Oct 5th 2016, 08:32 |
dariolap |
Hi all. I use cakephp 3.2. How i can to avoid to call accessor method when i save entity? I have _getCompany in entity model, but when i save I don't want to modify this field. |
# |
Oct 5th 2016, 08:27 |
jay |
Ah it's the helper that's failing, not the plugin \o/ |
# |
Oct 5th 2016, 08:23 |
bernat1 |
) |
# |
Oct 5th 2016, 08:16 |
jay |
my bad. slow morning. |
# |
Oct 5th 2016, 08:16 |
jay |
oh shit, yeah they are |
# |
Oct 5th 2016, 08:16 |
jay |
they're not loaded through plugins? |
# |
Oct 5th 2016, 08:16 |
bernat1 |
jay, it must be possible, see bake or debugkit |
# |
Oct 5th 2016, 08:15 |
bernat1 |
I think there was a Connection::reconnect() method for when the database connection hasn't been used for a while. Is there something similar in cake3 or should I call disconnect and connect? |
# |
Oct 5th 2016, 08:15 |
jay |
Is it possible to load plugins from vendor instead of plugins dir? |
# |
Oct 5th 2016, 08:12 |
lsfc1914 |
Hello. In Cake 2 how can I save data in Component? |
# |
Oct 5th 2016, 07:35 |
birdy247 |
Morning all |
# |
Oct 5th 2016, 07:18 |
NeoThermic|Work |
Great... there's no way to call File::open() and have it return false if the file doesn't exist; it always creates the file ¬_¬ |
# |
Oct 5th 2016, 07:15 |
cosmin_cimpoi |
? |
# |
Oct 5th 2016, 07:15 |
cosmin_cimpoi |
but I have a really simple api. Anything in particular you re looking for |
# |
Oct 5th 2016, 07:14 |
cosmin_cimpoi |
acosonic: the cake book has some good outlines. I just went w/ basic auth and .json extension |
# |
Oct 5th 2016, 06:24 |
acosonic |
morning |
# |
Oct 5th 2016, 06:21 |
unorthodox |
Morning all |
# |
Oct 5th 2016, 05:18 |
acosonic |
Hi all, so any ideas for cakephp REST API best practices? |
# |
Oct 5th 2016, 03:48 |
voycey |
seems like something that should be included |
# |
Oct 5th 2016, 03:47 |
voycey |
ive sorted it using scopes |
# |
Oct 5th 2016, 03:47 |
voycey |
not a specific log |
# |
Oct 5th 2016, 03:47 |
voycey |
that writes to all logs for that level |
# |
Oct 5th 2016, 03:46 |
Unfaiir |
voycey, you define a type for your log and a path to where you want it to be there in bootstrap, then you can write to it using CakeLog::write('type', 'message'); |
# |
Oct 5th 2016, 03:42 |
voycey |
not what I asked but thanks - seems you cant write to a specific file - only use scopes to define |
# |
Oct 5th 2016, 03:42 |
Unfaiir |
voycey, take a look at the bottom of app/Config/bootstrap.php where the default error and debug logs are configured. You can add more log configurations there. |
# |
Oct 5th 2016, 03:34 |
voycey |
Unfaiir - its for travis-ci |
# |
Oct 5th 2016, 03:34 |
voycey |
documentation is really ambiguous on it |
# |
Oct 5th 2016, 03:34 |
voycey |
how do I write to a specific log file? |
# |
Oct 5th 2016, 03:28 |
Unfaiir |
what is the .travis.yml file for? |
# |
Oct 5th 2016, 02:47 |
Xeus |
I got it working, thanks! :) |
# |
Oct 5th 2016, 02:47 |
Xeus |
Hash::extract($bot, 'bot_external_scripts.{n}.external_script.name') |
# |
Oct 5th 2016, 02:46 |
Xeus |
I figuredout what I was doing wrong |
# |
Oct 5th 2016, 02:46 |
Xeus |
derp |
# |
Oct 5th 2016, 02:46 |
Xeus |
I tried this and the array was empty: Hash::extract($bot, 'bot_external_scripts.{n}.name') |
# |
Oct 5th 2016, 02:44 |
Xeus |
Anyone know how I could accomplish this same task with Hash::extract()? ^ |