Login | Forgot password | Register
What is OpenID?
OpenID is an Internet-wide identity system that allows you to sign in to many websites with a single account.
With OpenID, your ID becomes a URL (e.g. http://username.myopenid.com/). You can get a free OpenID for example from myopenid.com.
For more information visit the official OpenID site.
Archive
SilverStripe Forums » Archive » Start-Recipe Form Tutorial Does Not Work
Our old forums are still available as a read-only archive.
|
Page:
1
|
Go to End | |
| Author | Topic: Start-Recipe Form Tutorial Does Not Work | 670 Views |
-
Start-Recipe Form Tutorial Does Not Work

4 July 2008 at 3:14am
Hello,
So I'm trying to create a registration page and was following the start-recipe tutorial. To start things off beginning at "Start by creating a page called Registration.php". If you follow the instructions you get an error when trying to build. I have tried a couple ways to resolve this issue as you will see in the comments section on that tutorial page. I may have just been avoiding the true error as I seem to just be changing what error I get and where. If somebody could look into this or try out the code and get it to work let me know,
cheers
-
Re: Start-Recipe Form Tutorial Does Not Work

4 July 2008 at 3:54am
I have done a few changes but here are my files ( Registration.php and RegistrationsDataObject.php. As the comments say, I had a few errors which I tried to address.
The first was "Parse error: syntax error, unexpected T_PRIVATE in *****/mysite/code/Registration.php on line 71" which was fixed by taking away the "}" on line 68 and putting it at the end of the page.This made another error appear "Error in Ajax evaluator on line 974: missing ; before statement
Parse error: syntax error, unexpected $end in *****/mysite/code/Registration.php on line 136" which was fixed by removing the following codeHowever now i get another problem when I go in the CMS and on the Registration page type I created, under the "registrations" tab, when i go to "add registrations data object" I get this error... "Data-integrity is broken in TariffsDataObject"function extraJs() {
$v =
<<<JS
/* ALL YOUR JAVASCRIPT TRICKS HERE */JS;
return $v;
}
| 670 Views | ||
|
Page:
1
|
Go to Top |
Currently Online: iforme, willr
Welcome to our latest member: AlfonsoGrondo

