22870 Posts in 9579 Topics by 2803 members
General questions about getting started with SilverStripe that don't fit in any of the categories above.
|Go to End|
14 June 2010 at 2:08pm
Is there a config setting that can be added to a config file in a folder that tells sapphire to ignore the folder contents?
Or does not including a config (I know its a requirement for modules) cause this?
14 June 2010 at 5:40pm
Yes you can include a folder of your own totally separate classes without SS including it on your behalf.
If you include a _config.php (can just be an empty file) file in your folder then SilverStripe will read and automatically include all the files / classes you have in that folder for you. If you do not want SilverStripe to automatically load all your files then don't include a _config.php file. But then you will have to include your files the standard PHP way using require() and include().
If you have a folder that is inside a module which is being parsed then you can have a '_manifest_exclude' file (no extension and no content) inside any folder which will prevent SilverStripe from reading it or any of its children.
15 June 2010 at 4:06am
great, I thought it should be as simple.
That really opens up what can be done as far a quick modules etc...
Guess my next step is to look for a tutorial on making a module.
thanks for all your help Willr... I am slowly starting to feel like I am getting a better grasp of SS and finally starting to understand the API docs.
I do however think that this is one spot another small tutorial might be very worthwhile... something that walk you through checking the API docs of an object to find related subclasses and methods that you can use... Would be very useful to us newbies.
anyway I got off topic.
|Go to Top|