Okay. I,ve read some Tutorials to build Silverstripemodules.
But now i want to try a simple code and it wont work
okay code on testDbase.php
<?php
class testDbase extends DataObject{
static $db=array("Field1"=>"Varchar","Field2=>"Varchar");
}
?>
When i build this, everthing will be created fine. Table named "testDbase" with those Fields
Now i try to write into this table with a simple testcode in a other php file called text.php
<?php
require("testDbase.php"); //of course i also require all the other needed classes like DataObject, DB and so on....
$test=new testDbase();
$test->Field1="Test";
$test->Field2="Field2";
$test->write();
?>
Of course an error occours with "Call to a member function manipulate() on a non-object" becaus $test is an Object but $test->Field1 and $test->Field2 arent.
So. How can i solve that?