Log message #4159873

# At Username Text
# Jul 18th 2018, 09:17 saeideng `postLink()` is useful in this case
# Jul 18th 2018, 09:17 mr.mjsm is it within though?
# Jul 18th 2018, 09:16 saeideng you can not use a `form` within another `form`
# Jul 18th 2018, 09:14 mr.mjsm File uploaded https://cakesf.slack.com/files/UBN7KUDRA/FBS9MK56G/-.html / https://slack-files.com/T053DPNCM-FBS9MK56G-e3c8086faa
# Jul 18th 2018, 09:10 alexdd55 @mr.mjsm can you show the html code from the delete button, which is rendered on the website?
# Jul 18th 2018, 09:09 saeideng :+1:
# Jul 18th 2018, 09:08 alexdd55 @saeideng thanks. works perfectly
# Jul 18th 2018, 09:08 alexdd55 i used exactly that on xmlandjson downloads.. was wondering why i should use it…
# Jul 18th 2018, 09:08 mr.mjsm File uploaded https://cakesf.slack.com/files/UBN7KUDRA/FBTS4HWBG/_companies_view_ctp.php / https://slack-files.com/T053DPNCM-FBTS4HWBG-2cbaeada5f - here is the code for the form and the delete button. any idea how to solve ?
# Jul 18th 2018, 09:07 saeideng with `with*()` methods , yes , always
# Jul 18th 2018, 09:06 alexdd55 ah
# Jul 18th 2018, 09:06 saeideng those are immutable
# Jul 18th 2018, 09:06 alexdd55 i always have to use ´=´?
# Jul 18th 2018, 09:06 saeideng and finally `return $this->response`
# Jul 18th 2018, 09:05 saeideng you have to do like this ``` $this->response = $this->response->with*()->$this->response->with*(); ```
# Jul 18th 2018, 09:05 saeideng hi @alexdd55
# Jul 18th 2018, 09:02 mr.mjsm File uploaded https://cakesf.slack.com/files/UBN7KUDRA/FBS9F336G/pasted_image_at_2018_07_18_12_00_pm.png / https://slack-files.com/T053DPNCM-FBS9F336G-9d1bbf51a0 - so guys i made an add form inside a view of another controller. the adding functionality works perfect. how ever the delete button is not clickable for some reason. when i clear the code for the adding form. the delete buttons start working. weird af
# Jul 18th 2018, 09:00 alexdd55 to stupid to format
# Jul 18th 2018, 09:00 alexdd55 :man-facepalming:
# Jul 18th 2018, 08:59 alexdd55 ´´´$this->response->withType(‘zip’); $this->response->withDownload($this->path . $zipfile);```
# 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