Log message #4180184

# At Username Text
# Mar 19th, 18:10 ricksaccous prob would be easier if you pasted the code in a gist or something
# Mar 19th, 18:10 jnguyen ah figured
# Mar 19th, 18:10 jnguyen sorry mean pluarl
# Mar 19th, 18:10 ricksaccous table class should be plural
# Mar 19th, 18:10 ricksaccous no
# Mar 19th, 18:09 jnguyen if im correct the table itself has to be singular correct?
# Mar 19th, 18:09 jnguyen Hey guys, so I just baked a model, the table is plural and the entity is singular, but im getting a base table not found because its looking for the singular version of the table
# Mar 19th, 14:58 emiliano thanks a lot
# Mar 19th, 14:58 emiliano my problem, is the aws elastic beanstalk jeje
# Mar 19th, 14:56 jeremyharris yeah htaccess can do that
# Mar 19th, 14:55 emiliano is there any way to tell you to generate all the urls in https, htaccess?
# Mar 19th, 14:55 emiliano Hi guys, how are you? I'm working with cake 3.5 and aws elastic-beanstalk, is there any way to focus urls to https? When I use a json call, I generate the url in http and I have mixed content, i dont no way
# Mar 19th, 14:40 feLiruc I did exactly what you said guys, I created a string with the correct index, and increment it everytime the user add one more line... but, for me this is so kluge...
# Mar 19th, 14:35 ricksaccous it's really subjective and there's no set example anywhere, so you'll have to find a solution that works for you
# Mar 19th, 14:35 ricksaccous use whatever js solution you think is appropriate to get n inputs
# Mar 19th, 14:35 jeremyharris ^
# Mar 19th, 14:35 ricksaccous and once you know how that works
# Mar 19th, 14:35 ricksaccous one of a hasMany
# Mar 19th, 14:35 ricksaccous yeah, i think that's what you mean, well my advice feLiruc is just focus on getting one to save
# Mar 19th, 14:34 ricksaccous oh, you mean just for duplicating inputs?
# Mar 19th, 14:34 jeremyharris there’s no “official” example I don’t think, but calling any controller action via ajax will load the view into the ajax layout if you are using the request handler
# Mar 19th, 14:33 ricksaccous i'm not quite sure what that would entail
# Mar 19th, 14:32 ricksaccous meh, but yeah, maybe i should try adding it with ajax though to be honest
# Mar 19th, 14:32 feLiruc There is any example of this ajax in the controller?
# Mar 19th, 14:32 ricksaccous i just organize the input into an element where you can specify the index
# Mar 19th, 14:32 ricksaccous not necessarily, think i just needed a foreach to spit out the element, but yeah, it's somehting to consider
# Mar 19th, 14:31 jeremyharris I typically prefer the ajax solution then there’s significantly less JS and it reuses existing pages and proven functionality
# Mar 19th, 14:31 jeremyharris tough when dealing with validation errors
# Mar 19th, 14:31 jeremyharris yeah I’ve done that too
# Mar 19th, 14:31 ricksaccous and then duplicating it with the correct index when "adding"
# Mar 19th, 14:30 ricksaccous what i've been doing recently is creating a hidden form with the input that i want to copy in a mustache template
# Mar 19th, 14:30 jeremyharris if you need to make unlimited options (e.g., add one, add one), then you will need to use ajax to fetch an “add” page or use javascript to make controls. keep in mind using javascript to make controls will cause security errors if you are using the security component, so it will require more work to make it work correctly
# Mar 19th, 14:29 jeremyharris ah yes, that can be a bit more tricky. here is the documentation for that: https://book.cakephp.org/3.0/en/views/helpers/form.html#creating-inputs-for-associated-data
# Mar 19th, 14:28 ricksaccous lollll
# Mar 19th, 14:28 ricksaccous the solution is wonky javascript
# Mar 19th, 14:28 feLiruc Ohhh, my relationship is OK, the bake got it correct... my problem is to create the template with this 2 entities for the user... the fill the event, and N attendants in the same screen
# Mar 19th, 14:26 jeremyharris or perhaps a belongsToMany, if attendants can be part of multiple events
# Mar 19th, 14:25 jeremyharris feLiruc I think you are looking for a hasMany relationship. you can find information about it here: https://book.cakephp.org/3.0/en/orm/associations.html#hasmany-associations
# Mar 19th, 13:27 feLiruc Hello guys, can anybody help me how to create an add page to create a 1 to n information? Like event and attendant...
# Mar 19th, 12:19 feLiruc Hello guys... what´s the smartest way to create an add page to create a 1 to n relationship model? like, one event with a list of participants... I want to add the participants list just in 1 page.
# Mar 19th, 08:02 challgren np