# |
Aug 9th 2008, 13:03 |
TonkaTruck |
Are there any fancy open source ajax tree managers? |
# |
Aug 9th 2008, 13:02 |
trueaxe |
I would need some moment after login |
# |
Aug 9th 2008, 13:02 |
trueaxe |
$this->Auth->loginRedirect = array('controller' => 'users', 'action' => 'view', $this->Auth->user('id')); was my first shot, but Auth has no user set in the AppController |
# |
Aug 9th 2008, 13:02 |
trueaxe |
I want to set the loginRedirect of Auth to a user specific site (users/view/id). How do I do that? |
# |
Aug 9th 2008, 13:01 |
freebox |
but still not working, i think is because paginateCount |
# |
Aug 9th 2008, 13:01 |
AD7six |
freebox about time ;) |
# |
Aug 9th 2008, 12:59 |
freebox |
D |
# |
Aug 9th 2008, 12:59 |
freebox |
AD7six: $this->set('piadas', $this->paginate('Piada', array('Piada.categoria_id'=>$this->Categoria->id))); |
# |
Aug 9th 2008, 12:58 |
freebox |
haha |
# |
Aug 9th 2008, 12:58 |
freebox |
will never work |
# |
Aug 9th 2008, 12:58 |
trueaxe |
hi all |
# |
Aug 9th 2008, 12:58 |
freebox |
and testing it in C: |
# |
Aug 9th 2008, 12:58 |
freebox |
i'm editing the app in my pen drive |
# |
Aug 9th 2008, 12:58 |
freebox |
lol |
# |
Aug 9th 2008, 12:51 |
jaredhoyt |
or do a an if() on the param in the beforeFilter() and allow() or deny() 'display' accordingly |
# |
Aug 9th 2008, 12:51 |
SunSparc |
jaredhoyt: Hmm, ok |
# |
Aug 9th 2008, 12:50 |
jaredhoyt |
SunSparc: the allow() is for actions, not parameters though afaik... so you might have to separate the home page into another action |
# |
Aug 9th 2008, 12:49 |
jaredhoyt |
SunSparc: just copy the pages_controller from the cake core |
# |
Aug 9th 2008, 12:49 |
linked_ |
hmm, i think my question should be...does routes::parseExtensions affect controllers' passedArgs |
# |
Aug 9th 2008, 12:45 |
SunSparc |
When using the Auth component, if I want to "allow" users to see the home page "views/pages/home.ctp" will I need to create a PagesController in order to add the Auth->allow? I assume the answer is, yes. |
# |
Aug 9th 2008, 12:40 |
linked_ |
i made use of mapResources to automatically handle calls for /controller/action.xml. does it also understands /controller/action/param1/param2.xml? |
# |
Aug 9th 2008, 12:39 |
linked_ |
hi. does routes::mapResources definition affects passedArgs? |
# |
Aug 9th 2008, 12:31 |
jaredhoyt |
or do you care, i don't know how closely related rowing is to sailing =P |
# |
Aug 9th 2008, 12:30 |
jaredhoyt |
gwoo: you enjoying the rowing coverage today? |
# |
Aug 9th 2008, 12:28 |
B00mgo_M4N |
you're welcome :) |
# |
Aug 9th 2008, 12:23 |
ilove_php |
AD7 its working now, thanks for those advice |
# |
Aug 9th 2008, 12:16 |
AD7six |
TommyO: I feel like a mirror :P |
# |
Aug 9th 2008, 12:13 |
TommyO |
haha. there it is again |
# |
Aug 9th 2008, 12:12 |
AD7six |
ilove_php: what's you're best guess at how to do so. |
# |
Aug 9th 2008, 12:12 |
ilove_php |
thanks... just one more question, what if i want to remove that div? |
# |
Aug 9th 2008, 12:05 |
AD7six |
ilove_php: well at least you already know what to do... |
# |
Aug 9th 2008, 12:05 |
ilove_php |
however, the space is still there (i think it has something to do with the div) :( |
# |
Aug 9th 2008, 12:05 |
ilove_php |
my bad, i forgot to change it from '' to false |
# |
Aug 9th 2008, 12:04 |
AD7six |
ilove_php: show |
# |
Aug 9th 2008, 12:04 |
ilove_php |
AD7: i already inserted the 'label'=>false but it still prints out the label, thats what im trying to say |
# |
Aug 9th 2008, 12:00 |
kalileo |
freebox: If you look at the manual you'll see that there is not a $this->Model->findByWhatever() used in the Controller, but a $this->paginate, and that the pagination is for the main Model, and not for the related Models. However I understand that, if you have many related Models, you would want to page through them. |
# |
Aug 9th 2008, 11:59 |
AD7six |
ilove_php: TheBig gave you a suggestion on how to get rid of the label - what are you currently trying to do (think). |
# |
Aug 9th 2008, 11:58 |
AD7six |
ilove_php: you'd be better off doing echo $form->create(); echo $form->inputs(array('username', 'password')); .. imo. |
# |
Aug 9th 2008, 11:58 |
ilove_php |
AD7six: already done that but it stills print the label and the div |
# |
Aug 9th 2008, 11:58 |
lhy |
AD7six sorry typo... :) seems its working now |
# |
Aug 9th 2008, 11:58 |
ilove_php |
am new to cakephp thats why im still working my way familiarizing with the framework |