$member = mysql_query("
SELECT *
FROM Users
WHERE Email={$_GET['email']}
");
Young people are just smarter
— Mark Zuckerberg, 2007
That's OK - there are some common things you can do to help
$member = mysql_fetch_assoc(mysql_query("
SELECT *
FROM Users
WHERE Email={$_GET['email']}
"));
$member = Member::get()
->filter('Email', $_GET['email'])
->first();
class BlogPost extends DataObject {
static $db = array(
'Post' => 'HTMLText'
);
}
class BlogPost extends DataObject {
static $db = array(
'Post' => 'HTMLText'
'Tags' => 'Text'
);
}
Member:
admin:
FirstName: Admin
Email: admin@silverstripe.com
class SecurityTest extends FunctionalTest {
protected static $fixture_file
= 'MemberTest.yml';
public function testThatThing() {
// Do the test
}
}
Feature: Create a page
As an author
I want to create a page in the CMS
So that I can grow my website
@javascript
Scenario: I can create a page from the pages section
Given I am logged in with "ADMIN" permissions
And I go to "/admin/pages"
And I should see a "Add new" button in CMS Content Toolbar
When I press the "Add new" button
And I select the "Page" radio button
And I press the "Create" button
Then I should see an edit page form
{
"name": "silverstripe/cms",
"type": "silverstripe-module",
"description": "The SilverStripe Content Management System",
"homepage": "http://silverstripe.org",
"license": "BSD-3-Clause",
"keywords": ["silverstripe", "cms"],
"require": {
"php": ">=5.3.2",
"composer/installers": "*",
"silverstripe/framework": "3.1.*"
},
"minimum-stability": "dev"
}