# |
Jul 18th 2018, 08:59 |
alexdd55 |
question: i want to offer a download wich returns a zip file… i do pretty much the same, like any other file format (xml, json) but its not doing a download |
# |
Jul 18th 2018, 08:57 |
alexdd55 |
good morning boys and girls |
# |
Jul 18th 2018, 08:47 |
neon1024 |
How many associations is it worth traversing before it’s worth swapping to loadModel() ? |
# |
Jul 18th 2018, 08:41 |
neon1024 |
Ahok, underscore js is like lodash |
# |
Jul 18th 2018, 08:41 |
neon1024 |
@bogdan I find getting templates from files into Handlebars frustrating really |
# |
Jul 18th 2018, 08:36 |
madbbb |
@neon1024 I have the same approach but with underscore js |
# |
Jul 18th 2018, 08:21 |
tim |
Thanks, that works! |
# |
Jul 18th 2018, 08:21 |
tim |
But I forgot it there |
# |
Jul 18th 2018, 08:21 |
tim |
Ah yes it's type hinted in the main scope |
# |
Jul 18th 2018, 08:20 |
neon1024 |
I’d also recommend typehinting `RouteBuilder $routes` to help your IDE |
# |
Jul 18th 2018, 08:20 |
neon1024 |
Does the localisation function work on routing? |
# |
Jul 18th 2018, 08:19 |
neon1024 |
Currently, you’re using static access, so are adding scopes directly |
# |
Jul 18th 2018, 08:19 |
neon1024 |
Call the scope on the passed `$routes` |
# |
Jul 18th 2018, 08:18 |
tim |
It returns /client/account-information |
# |
Jul 18th 2018, 08:18 |
tim |
```Router::scope(__('/client'), function ($routes) { Router::scope(__('my-account'), function ($routes) { $routes->connect(__('/personal-information'), ['controller' => 'ClientAccount', 'action' => 'personalInformation']); $routes->connect(__('/account-information'), ['controller' => 'ClientAccount', 'action' => 'accountInformation']); }); });``` |
# |
Jul 18th 2018, 08:18 |
dereuromark |
Naveenbos: Thats correct |
# |
Jul 18th 2018, 08:16 |
neon1024 |
@tim Yes, just define them as such |
# |
Jul 18th 2018, 08:16 |
neon1024 |
Just curious really, but what techniques do people here use for a single form which can add multiple associations? Such as editing a Customer and adding multiple Addresses? I tend to favour using something like Mustache, but curious to know what other people are using |
# |
Jul 18th 2018, 08:15 |
tim |
Is there a way to have multiple Router::scopes inside a parent scope? |
# |
Jul 18th 2018, 08:13 |
neon1024 |
Morning all |
# |
Jul 18th 2018, 06:16 |
naveen.bos |
Sorry in src folder its size is 19.8 MB |
# |
Jul 18th 2018, 06:15 |
admad |
i highly doubt you have 54 mb worth of php source files :slightly_smiling_face: |
# |
Jul 18th 2018, 06:13 |
naveen.bos |
its huge |
# |
Jul 18th 2018, 06:13 |
naveen.bos |
after upgrade my app folder files moved to src |
# |
Jul 18th 2018, 06:13 |
saeideng |
no , i mean size of complexity |
# |
Jul 18th 2018, 06:12 |
naveen.bos |
54.3MB |
# |
Jul 18th 2018, 06:12 |
naveen.bos |
after upgrade my app folder files moved to src |
# |
Jul 18th 2018, 06:11 |
saeideng |
what is size of your app ? |
# |
Jul 18th 2018, 06:11 |
naveen.bos |
Have you done any type of upgrade in cake php |
# |
Jul 18th 2018, 06:10 |
saeideng |
vendors |
# |
Jul 18th 2018, 06:10 |
saeideng |
you have to use composer to install/update vendoes |
# |
Jul 18th 2018, 06:09 |
naveen.bos |
when i copy the core files to this folder will that error vanish? |
# |
Jul 18th 2018, 06:09 |
naveen.bos |
@saeideng yes that i understand before that i have tried to run the cake server then i got this error |
# |
Jul 18th 2018, 06:08 |
saeideng |
for ORM you should do manually |
# |
Jul 18th 2018, 06:07 |
saeideng |
it just do these not more |
# |
Jul 18th 2018, 06:07 |
braeden |
Is the 'propertyName' option no longer used for hasOne associations? |
# |
Jul 18th 2018, 06:07 |
hmic |
like i said, my approach is to setup a new 3.x app and move files one by one while checking what needs to be changed |
# |
Jul 18th 2018, 06:07 |
slackebot |
actions. all Run all tasks except for skeleton. That task should only be run manually, and only for apps (not plugins). |
# |
Jul 18th 2018, 06:07 |
slackebot |
changed during 2.x -> 3.0 fixtures Update fixtures to use new index/constraint features. This is necessary before running tests. tests Update test cases regarding fixtures. i18n Update translation functions regarding placeholders. skeleton Add basic skeleton files and folders from the "app" repository. prefixed_templates Move view templates for prefixed |
# |
Jul 18th 2018, 06:07 |
slackebot |
App::uses() with use statements. rename_collections Rename HelperCollection, ComponentCollection, and TaskCollection. Will also rename component constructor arguments and _Collection properties on all objects. method_names Update many of the methods that were renamed during 2.x -> 3.0 method_signatures Update many of the method signatures that were |
# |
Jul 18th 2018, 06:07 |
saeideng |
locations Move files/directories around. Run this *before* adding namespaces with the namespaces command. namespaces Add namespaces to files based on their file path. Only run this *after* you have moved files. app_uses Replace App::uses() with use statements rename_classes Rename classes that have been moved/renamed. Run after replacing |