- S
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.I am moving my site to media temple and running into a few problems.
Site is built on 1.3.4
Now after moving im getting errors where ever:
In controller there is a ClassRegistry call
Example $this->Auth->login(ClassRegistry::init('User')->findById($this->Auth->user('id', array('contain' => false))));
Produces: Parse error: syntax error, unexpected T_OBJECT_OPERATOR
And in Model(s)
And function that has private / public / protected is throwing errors
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in html/app/app_model.php on line 91
Line 91
public function __slugToId( $slug ){
$params = array(
'conditions' => array(
'User.slug' => $slug ),
'fields' => array(
'User.id' ),
'contain' => false );
$data = $this->User->find( 'first', $params );
return $data['User']['id'];
}
Everything worked fine on my old junky host. Any ideas anyone?
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
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