Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Should I work in SilverStripe or Saphire?


Reply


2 Posts   763 Views

Avatar
TerryMiddleton

Community Member, 108 Posts

7 March 2009 at 4:12pm

Okay, I'm new and enjoying very much the total flexability of this product. Great job guys.

Here's my question. Where do I start working? My first instinct would be with the templates to format my pages and then go to the CMS to create the pages and content.

If I wanted to do some business logic such as query a db and out put the data, should I be looking at working in Saphire?

Some of my other business logic requirements are:

user login and validation
session variables
user logging

Your thoughts?

Terry Middleton

Avatar
Willr

Forum Moderator, 5513 Posts

8 March 2009 at 12:00pm

Sapphire is the base PHP Framework. SilverStripe (the CMS) is written ontop of Sapphire. All your code will use Sapphire and some from SilverStripe if you need to use the CMS (eg Pages, adding Fields to the CMS).

As for your code, you shouldn't need to worry about what you are using. All your PHP code should be in mysite/code/* and things like database querys will need to use the class's and methods sapphire provides.

Sapphire provides alot of the user login and validation for you out of the box for you.