# |
Mar 6th 2010, 00:23 |
DiegoMax |
hah |
# |
Mar 6th 2010, 00:23 |
hiromicahn |
and rewrite the method |
# |
Mar 6th 2010, 00:23 |
hiromicahn |
copy core timehelper to app/libs/view/helpers/time.php |
# |
Mar 6th 2010, 00:22 |
hiromicahn |
there is a way that is not recommended |
# |
Mar 6th 2010, 00:22 |
DiegoMax |
ACTION blames |
# |
Mar 6th 2010, 00:22 |
DiegoMax |
but i guess i will have to write my own function |
# |
Mar 6th 2010, 00:22 |
DiegoMax |
niceShort() was nice because it resolved all the "x days ago" thing |
# |
Mar 6th 2010, 00:21 |
DiegoMax |
yah, i guess |
# |
Mar 6th 2010, 00:21 |
hiromicahn |
use format() to solve your issue |
# |
Mar 6th 2010, 00:21 |
hiromicahn |
cannot set 12h as a default |
# |
Mar 6th 2010, 00:20 |
DiegoMax |
instead of 24h |
# |
Mar 6th 2010, 00:20 |
DiegoMax |
exactly, which is why i was asking if there was some way to tell the helper to use 12h format |
# |
Mar 6th 2010, 00:20 |
hiromicahn |
niceShort() has their own format ... |
# |
Mar 6th 2010, 00:19 |
DiegoMax |
i want $time->niceShort() to output time in 12h format |
# |
Mar 6th 2010, 00:19 |
DiegoMax |
but i was wondering if the time helper had any way to change that behavior |
# |
Mar 6th 2010, 00:19 |
hiromicahn |
what are you trying to do? |
# |
Mar 6th 2010, 00:19 |
DiegoMax |
yah i know |
# |
Mar 6th 2010, 00:19 |
hiromicahn |
DiegoMax: strftime() or date() format contain 12hours specifier |
# |
Mar 6th 2010, 00:12 |
DiegoMax |
is there any way to set the time helper to use 12hour times ? |
# |
Mar 5th 2010, 23:37 |
hiromicahn |
great:) I except that. |
# |
Mar 5th 2010, 23:34 |
markstory |
but letting Cache handle view caching is something I would like to do in the future :) |
# |
Mar 5th 2010, 23:34 |
markstory |
Model needs changes too. |
# |
Mar 5th 2010, 23:34 |
markstory |
there is more to it than that I think. |
# |
Mar 5th 2010, 23:24 |
hiromi |
mean core enhancement |
# |
Mar 5th 2010, 23:23 |
hiromi |
and ... i have a idea. if cache type is not file, using eval(Cache::read()) instead of include in the cache() function will work fine ? |
# |
Mar 5th 2010, 23:19 |
hiromi |
index.php , cacheing myself |
# |
Mar 5th 2010, 23:19 |
hiromi |
i guess there is only a way |
# |
Mar 5th 2010, 23:18 |
markstory |
yeah, its kind of a pain how the current view caching works. |
# |
Mar 5th 2010, 23:17 |
hiromi |
markstory: oh ... :( |
# |
Mar 5th 2010, 23:17 |
hiromi |
with reading source , there is view cache usgin own file cache |
# |
Mar 5th 2010, 23:17 |
markstory |
you can't put full page caches into memcache :( |
# |
Mar 5th 2010, 23:16 |
hiromi |
is there way to cache action with memcache? |
# |
Mar 5th 2010, 23:16 |
markstory |
sweet |
# |
Mar 5th 2010, 23:14 |
dakota |
lol |
# |
Mar 5th 2010, 23:14 |
dakota |
and simple php gets 2668 |
# |
Mar 5th 2010, 23:14 |
dakota |
1.2.6 gets 5259.45 requests per second |
# |
Mar 5th 2010, 23:14 |
dakota |
1.3 gets 5959.7 requests per second |
# |
Mar 5th 2010, 23:14 |
dakota |
hehe, I conclude that cakephp is faster then a standard php file with echo 'hello world'; in |
# |
Mar 5th 2010, 23:13 |
dakota |
yup |
# |
Mar 5th 2010, 23:13 |
markstory |
saves many afterfind workarounds. |
# |
Mar 5th 2010, 23:13 |
markstory |
yeah they are quite handy :) |