# |
Dec 1st 2017, 13:55 |
hmic |
still, you can craft a request like that of course... it's just not very intuitive |
# |
Dec 1st 2017, 13:54 |
hmic |
like a browser would do? so it's basically *no* (rest) api :O |
# |
Dec 1st 2017, 13:54 |
hmic |
kant, so you know by now how the api wants the data posted? :P |
# |
Dec 1st 2017, 13:53 |
hmic |
no offense taken. |
# |
Dec 1st 2017, 13:53 |
dereuromark |
geeze, can someone please deactivate this? |
# |
Dec 1st 2017, 13:53 |
dereuromark |
I totally dont want to "Phillip Emerson" with a designer :P |
# |
Dec 1st 2017, 13:53 |
hmic |
i prefer the "simplicity" too ;) |
# |
Dec 1st 2017, 13:53 |
casmo |
Ow yeah, I think it is good it is supported. My question was not to 'attack' |
# |
Dec 1st 2017, 13:52 |
hmic |
if you dont need to work with a designer, thats totally fine |
# |
Dec 1st 2017, 13:52 |
kant |
anyone familiar with this issues https://stackoverflow.com/questions/19365674/how-to-post-multipart-form-data ? |
# |
Dec 1st 2017, 13:52 |
hmic |
just keep on using the plain php templates cake does |
# |
Dec 1st 2017, 13:52 |
casmo |
Maybe it is my frustrations that are rooted deep inside |
# |
Dec 1st 2017, 13:51 |
casmo |
Point taken |
# |
Dec 1st 2017, 13:51 |
hmic |
casmo, thats why it's not build for you, but designers :P |
# |
Dec 1st 2017, 13:51 |
casmo |
Allright, allright |
# |
Dec 1st 2017, 13:51 |
AlexMax |
(see how easy it is to forget?) |
# |
Dec 1st 2017, 13:51 |
AlexMax |
casmo: You mean <?= h($var); ?> |
# |
Dec 1st 2017, 13:51 |
admad |
you are missing the point |
# |
Dec 1st 2017, 13:50 |
casmo |
I do not think that {$var} is easier than <?php echo $var; ?> |
# |
Dec 1st 2017, 13:50 |
hmic |
most strugle with loops already :D |
# |
Dec 1st 2017, 13:50 |
hmic |
exactly |
# |
Dec 1st 2017, 13:50 |
admad |
anything more complex they can't comprehand |
# |
Dec 1st 2017, 13:50 |
hmic |
because you can do so much more in php |
# |
Dec 1st 2017, 13:50 |
admad |
right, and hence it's easy to use for designers |
# |
Dec 1st 2017, 13:50 |
casmo |
A good template is nothing more then simple loops and plain variables, right? |
# |
Dec 1st 2017, 13:50 |
hmic |
you bet it is not! |
# |
Dec 1st 2017, 13:49 |
casmo |
I think it is as easy to learn php as to learn a random template engine language or syntax |
# |
Dec 1st 2017, 13:49 |
hmic |
but more for designers that dont know and give a shit about the actual code |
# |
Dec 1st 2017, 13:49 |
casmo |
Sure, but it is just another language |
# |
Dec 1st 2017, 13:49 |
hmic |
smarty and twig are not build for (cake)php developers |
# |
Dec 1st 2017, 13:48 |
casmo |
Cake, for example, force you to separate that logic |
# |
Dec 1st 2017, 13:48 |
casmo |
Sounds harsh, but it is already really good seperated |
# |
Dec 1st 2017, 13:48 |
AlexMax |
plus it's safer (not having to remember to h() every single variable) |
# |
Dec 1st 2017, 13:48 |
casmo |
If you need that enforcement I'm not sure you are the right guy for the job |
# |
Dec 1st 2017, 13:47 |
AlexMax |
plus it's slightly nicer to look at |
# |
Dec 1st 2017, 13:47 |
AlexMax |
casmo: eh, it helps you enforce separation of template and logic |
# |
Dec 1st 2017, 13:47 |
dereuromark |
dont=down |
# |
Dec 1st 2017, 13:46 |
casmo |
I always find myself cheating in those template engines like: {php} echo $var; {/php} |
# |
Dec 1st 2017, 13:46 |
hmic |
to make use of basic functionality for desiners e.g. |
# |
Dec 1st 2017, 13:46 |
dereuromark |
for normal cake templates there is no immediate need at this time. It can sometimes produce cleaner and safer code, but it also slows you dont a bit sometimes. tradeoffs. |
# |
Dec 1st 2017, 13:46 |
hmic |
more basic and constraint |