# |
Mar 6th 2010, 01:30 |
Know1edge |
$this->Auth->loginRedirect = array('controller' => 'members', 'action' => 'home'); |
# |
Mar 6th 2010, 01:30 |
Know1edge |
oh sorry 1 sec |
# |
Mar 6th 2010, 01:30 |
Know1edge |
$this->Auth->loginAction = array('admin' => false, 'controller' => 'members', 'action' => 'login'); |
# |
Mar 6th 2010, 01:30 |
Know1edge |
$this->Auth->LoginAction |
# |
Mar 6th 2010, 01:28 |
androm |
Q: i'm trying to do the login thing with the Auth component. all is working, but once i login i want to get redirected to an account management area instead of the home page... how do i control that? |
# |
Mar 6th 2010, 00:57 |
petteyg |
http://bakery.cakephp.org/articles/view/automatically-load-all-controllers-and-actions-into-aco-tables-for-acl-with-a-cakephp-task#comment-7226 - 3 spam comments. Since there's no report button, and nobody to notify, I keep posting them here. Unless somebody actually wants Bakery to be over-run by spam links, considering two of the comments have been there for over two weeks. |
# |
Mar 6th 2010, 00:57 |
Know1edge |
Anyone have a facebook datasource? |
# |
Mar 6th 2010, 00:27 |
hiromicahn |
*a way |
# |
Mar 6th 2010, 00:27 |
hiromicahn |
I think if there is away to define like AppTimeHelper |
# |
Mar 6th 2010, 00:24 |
hiromicahn |
either your own library or overriding core would work |
# |
Mar 6th 2010, 00:23 |
DiegoMax |
that would work |
# |
Mar 6th 2010, 00:23 |
DiegoMax |
but yah |
# |
Mar 6th 2010, 00:23 |
DiegoMax |
p |
# |
Mar 6th 2010, 00:23 |
DiegoMax |
i was actually going to copy the hlper and rename it to myTime or whatever |
# |
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 |