>
> $this->Auth->loginRedirect = array('controller' => 'home');
The plot thickens. What's this controller for? And why do you not
specify an action? Do you have any routes set up for it?
> //TODO : // $this->Auth->allow('display', 'index', 'view');
> //TODO : find out its difference from $this->Auth->allowedActions =
> array('display', 'index', 'view');
The first is a class method to set the class variable (the second, above).
http://api.cakephp.org/class/auth-component
> function beforeRender() {
> //TODO : understand the difference of 'Auth' or 'auth'
> //?? i forgot which tutorial this line came from
> //?? does this mean i have both $Auth and $auth variables? (see
> beforeFilter)
> $this->set('auth', $this->Auth->user());
> }
$auth, in this case, is simply a variable set for the view and isn't
"built in". It looks like whoever wrote the tutorial wanted to have
access to the User info while in the view. But that can be done with:
$this->Session->read('Auth.User.x');
(where x is the User field you're after)
FYI, it'd be better to remove your comments from posted code, unless
it's pertinent to the problem, as it makes things very difficult to
read.
> 3. answers to your questions, and (sorry...) some more clarifications
>
>> If you can edit your httpd.conf or virtual host configs, the best
>> thing to do is to set DocumentRoot to:
>>
>> /var/www/web2/web/app/webroot
>
> If i do as you suggested, should i change config.php and the defines
> in the 3 index.phps?
Right. I'd forgotten to cover that. You can leave the top 2 index.php
files as they are. If things are working correctly, they'll never be
read. The one in app/webroot looks correct.
I don't know which config.php you're referring to, sorry.
>> Is this a shared hosting
>> environment?
> Yes, they are using ISPConfig.
>
>> I'm wondering if there's something else configured that's
>> hidden from you.
> I was also suspecting that. Maybe ISPConfig's has RewriteBase that is
> wrong? I can ask web host.
That might be it.
> 4. Maraming salamat (thank you in Filipino (from the Philippines) )
> for sharing your experience and time.
Hey, thanks for that. I'm always happy to learn a few words in another
language. "Thank you" is usually the first thing I'd like to know.
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
No comments:
Post a Comment