# |
Apr 18th 2017, 11:23 |
hmic |
you could have /articles/view/1 where i is the id passed to the action, /articles/view/1/ does the same thing |
# |
Apr 18th 2017, 11:23 |
hmic |
aiena: it does not matter really |
# |
Apr 18th 2017, 11:22 |
aiena |
in cake a url should not have a trailing slash if there is nothing after it. E.g. a route should be defined as "/pages/12" for example (assuming 2 is hardcoded otherwise /pages/*) instead of "/pages/12/" |
# |
Apr 18th 2017, 11:17 |
mampel |
@dakota I installed xampp in mac and then must install php-intl in terminal but return some error, do you install cake php in mac? |
# |
Apr 18th 2017, 10:42 |
hmic |
you should wait for others to answer too i think ;-) |
# |
Apr 18th 2017, 10:42 |
hmic |
just my humble opinion :/ |
# |
Apr 18th 2017, 10:41 |
keremcankaya |
Thanks a lot! |
# |
Apr 18th 2017, 10:33 |
hmic |
maybe you can update the plugin you are talking of to utilize the new driver too :D |
# |
Apr 18th 2017, 10:33 |
hmic |
with 3.x there is the webservice plugin that provides kind of infrastructure to do an integration, on 2.x i don't know, and i would not care really... |
# |
Apr 18th 2017, 10:33 |
hmic |
keremcankaya: as there is no real support for mongo on cake, i'd use it like any external library and use the new driver of course! |
# |
Apr 18th 2017, 10:31 |
keremcankaya |
Hey there quick question can i use mongodb with cakephp2.9? I’ve installed ichikaways depreciated plugin however it’s using mongo driver(old one) instead of mongodb(new php driver). Is it okey to install the old driver and use ichikaways plugin or is there any other better way to go? |
# |
Apr 18th 2017, 10:29 |
hmic |
if you have worked with cake before, you will not run into any problems you can't solve. if you have not worked with cake before, i would advise to find someone who does and handle the task over |
# |
Apr 18th 2017, 10:28 |
hmic |
but it is very doable and you can get help over here |
# |
Apr 18th 2017, 10:28 |
hmic |
the upgrade will not be fully automatic and be done in a day, if you have good tests, thats a big plus! |
# |
Apr 18th 2017, 10:27 |
hmic |
cake 1.3 is EOL and EOS for quite some time now |
# |
Apr 18th 2017, 10:26 |
hmic |
sim: you shdould do the 2.x upgrade by all means! |
# |
Apr 18th 2017, 10:23 |
sim |
Thanks, I will not upgrade it now, :,'( |
# |
Apr 18th 2017, 10:22 |
dereuromark |
hmic: I didnt see the pastebin, well thats a bummer then |
# |
Apr 18th 2017, 10:21 |
hmic |
it will not gain you much though, as the upgrade to 3.x is still almost the same effort |
# |
Apr 18th 2017, 10:20 |
hmic |
you will have to tweak the one or the other thing, but this is a task that can be done rather easily and quickly |
# |
Apr 18th 2017, 10:20 |
hmic |
there are upgrade tools in existance that can help you with upgrading 1.3 to 2.x |
# |
Apr 18th 2017, 10:19 |
hmic |
cache is about the same, as it only depends on the cache engine, utilization of cache might be different |
# |
Apr 18th 2017, 10:19 |
sim |
So what about 2.x? |
# |
Apr 18th 2017, 10:19 |
sim |
That's is so bad .... |
# |
Apr 18th 2017, 10:19 |
sim |
I mean cache only |
# |
Apr 18th 2017, 10:19 |
hmic |
i'd say 1.3 => 3.x is a rewrite |
# |
Apr 18th 2017, 10:18 |
hmic |
first off: cake 3 runs on php7 which is a lot faster, the orm cake 3 uses is completely different from the one cake1.3 uses and it is faster by all means |
# |
Apr 18th 2017, 10:18 |
sim |
I wanna upgrade cakephp from 1.3.14 to 3.4. So my question is can I gain a large performance improvement on cache and is it a very heavy work? |
# |
Apr 18th 2017, 10:18 |
hmic |
sim: thats not the question really |
# |
Apr 18th 2017, 10:17 |
hmic |
same holds true with saving and loading from database, if you let cake do it, it will take care, if you build queries yourself, you are up to do the right thing yourself. |
# |
Apr 18th 2017, 10:17 |
hmic |
aiena: the correct answer is: the formhelper will take care of it all, like all things cake provides you with. if you decide to do the markup yourself and echo it, you need h(), like dereuromark said: if you output the data in a view, you need to take care of it, utilizing h(), if cake outputs it, it will take care for you |
# |
Apr 18th 2017, 10:17 |
sim |
I wanna upgrade cakephp from 1.3.14 to 3.4. So my question is can I gain a large performance improvement on cache ? |
# |
Apr 18th 2017, 10:16 |
hmic |
aiena: why has this app been build with cake, if it's not using *anything* cake does provide? |
# |
Apr 18th 2017, 10:15 |
hmic |
dereuromark: he is not using the formhelper here! |
# |
Apr 18th 2017, 09:56 |
aiena |
ah thanks |
# |
Apr 18th 2017, 09:35 |
dereuromark |
not inside forms via formhelper |
# |
Apr 18th 2017, 09:35 |
dereuromark |
as I said: on actual output in your templates |
# |
Apr 18th 2017, 09:34 |
dereuromark |
you can try it with some alert() strings if you dont believe me :slightly_smiling_face: |
# |
Apr 18th 2017, 09:34 |
aiena |
ok so when us h() actually used ? |
# |
Apr 18th 2017, 09:34 |
dereuromark |
aiena: yes |
# |
Apr 18th 2017, 09:34 |
aiena |
metoyoko your question is too broad to answer try rephrasing it |