Log message #4018933

# At Username Text
# Apr 21st 2017, 10:01 dereuromark sure
# Apr 21st 2017, 10:01 technofection Hi @dereuromark , Can I ask you one question please?
# Apr 21st 2017, 10:01 rudy1976s I will try again with FP
# Apr 21st 2017, 09:59 rudy1976s ok @dereuromark
# Apr 21st 2017, 09:59 dereuromark Dont get that part :slightly_smiling_face:
# Apr 21st 2017, 09:59 dereuromark But why would you then ask a generic question again? "Hello is there a way to inject variables into events like beforeSave, available for all models"
# Apr 21st 2017, 09:58 rudy1976s :slightly_smiling_face:
# Apr 21st 2017, 09:58 rudy1976s I know that is something wrong on my side
# Apr 21st 2017, 09:58 hmic if it did not work for you, you have not done it thorowly enough :p
# Apr 21st 2017, 09:58 rudy1976s but it does not alter fields in any way
# Apr 21st 2017, 09:58 rudy1976s regarding muffin/Fp I have followed the docs and configured
# Apr 21st 2017, 09:57 hmic i still encourage you to use Muffin/Footprint and dont roll your own solution
# Apr 21st 2017, 09:57 hmic if you wanna do it yourself, check Ceeram/Blame on github to get the idea of how it would work
# Apr 21st 2017, 09:56 dereuromark why not? its super easy, I used it to make version behavior having a user inside the models: https://github.com/josegonzalez/cakephp-version#storing-user_id-as-meta-data
# Apr 21st 2017, 09:56 rudy1976s I tried Muffin/Footprint but i was not able to make it work
# Apr 21st 2017, 09:55 dereuromark see the logs
# Apr 21st 2017, 09:55 dereuromark I think every day the topic footprint was the main one discussed
# Apr 21st 2017, 09:55 hmic rudy1976s: use Muffin/Footprint
# Apr 21st 2017, 09:55 dereuromark you havent been much around here I guess :slightly_smiling_face:
# Apr 21st 2017, 09:54 rudy1976s I would need to have the logged user data on every beforeSaver
# Apr 21st 2017, 09:54 rudy1976s behaviors
# Apr 21st 2017, 09:54 dereuromark components?
# Apr 21st 2017, 09:53 dereuromark behaviors?
# Apr 21st 2017, 09:53 rudy1976s Hello is there a way to inject variables into events like beforeSave, available for all models ?
# Apr 21st 2017, 09:51 Neon1024 Morning everyone
# Apr 21st 2017, 09:49 hmic i need to stop answering these questions. at least to these kind of guys without any reference to cakephp :-/
# Apr 21st 2017, 09:48 roshan hmic, Ok thanks :-)
# Apr 21st 2017, 09:48 dereuromark as hmic said: you usually create a rule xsd and then from there you start your xml files, reverse engineering is a bit error prone.
# Apr 21st 2017, 09:47 dereuromark "have need to conversion xml to xsd" then you do sth wrong, the question is why you need that, and what you should need instead.
# Apr 21st 2017, 09:43 hmic you can get some definition that fits these files, but you have no idea if it would fit other files too, that are generated from the original definition, and if it would reject incorrect markup of course too. so it's of absolutely no real use!
# Apr 21st 2017, 09:42 hmic so the answer is, still: it is impossible to (recreate) a *correct* xsd from an (or many) [example] xml files.
# Apr 21st 2017, 09:41 hmic lets say you have a tag that can have different children, but is limited to some valid ones - in xhtml: <ul> can have <li> children *only*, but <div> can have like anything as children - your xsd "generator" cannot know this from just looking at the xml input you provide
# Apr 21st 2017, 09:39 hmic e.g. you do have an xml tag that can take some attributes, these attributes are optional, your example xml does not include them - how would the xsd "generator" know they could be there?
# Apr 21st 2017, 09:39 roshan hmic, it means we can't convert xml to xsd ?
# Apr 21st 2017, 09:38 hmic you can come up with something that matches what you see (with a rainbow table in case of hashes likely), but there is no way to tell if this is the actual correct input data, and it very very likely isnt!
# Apr 21st 2017, 09:37 hmic it's comparable to wanting to get the data back from a hash (md5) e.g.
# Apr 21st 2017, 09:37 hmic so the answer is just: no!
# Apr 21st 2017, 09:37 hmic but you dont know if thats all to it
# Apr 21st 2017, 09:36 roshan hmic, eg : http://www.freeformatter.com/xsd-generator.html
# Apr 21st 2017, 09:36 hmic its like i said: they can just create *a* XSD for the *current* data you have provided
# Apr 21st 2017, 09:35 hmic it is not!