Share This Document
Copy and Paste URL
Page
The 2. tutorial about CakePHP from IBM
37 Pages
Date Added |
03/07/2007 |
Category |
Uncategorized. |
Tags |
|
Groups |
|
Awards |
|
Copyright |
|
More info » |
|
I notice in the ACL section, WRT the "redirect" methods (when you try to access the page w/o being logged in) there is a bug. When you set redirect with an action (look at the line $this->redirect( array('action'=>'index '), null, true)) that you do not leave the Products controller (i.e. you get taken to the products index, rather than the login page). I believe the line should be:
$this->redirect( '/users/index');
This will take you to the login page. You could set a variable to return you to the requested product page (from the original click, pre-login). Then you would have to modify the login controller, so that if $redir is set, you go there; otherwise goto the default page after login.
As much as I love this series, anyone else think it could use another review? I noticed several of these little bugs in it. Maybe I'll write the author...
test
hmm, well at least there's a download button - better than Youtube.
What kind of retard thought of embedding PDF in a Flash object? I want to kick them in the nuts.
c2
These tutorials are really, really great. Props to IBM and whoever uploaded them.
alcooltan 7 months ago
i dont like scribd. it's so clunky. sorry ...