Get Started
Installation
A guide to initialize and configure your new project
Initial Setup
- Copy the tables from the SQL file (included in the project zip) and create your backend user.
- Check parts of your code that are marked with the comment
//leckerstart
to set your basic configuration. - Create a
.env
file using the template provided below.
Environment Configuration
Create a .env
file in your project root directory using the following template:
Fill in the empty fields with your specific configuration details.
Creating New Pages
Static or Noarticle Pages
- Add the new page URL to the routes configuration.
- If you want to use the Noarticle type, you can adjust the
getNoarticleInfo
function in theFrontend_Data
class. - Add a function that loads the view to the respective controller. Here you can define all model functions and data necessary for your page. The name of the function should be the same as the URL specified in routes.
- Use the
load_view
function where you specify common items that load on every page. - Create a new PHP file for your view in the
views
folder.
Detail Pages for Articles
- Edit the
detail
function in the Frontend Controller. This function is applied whenever you try to open a URL that is not defined in routes. - Use
getArticleInfo
and define entity type-specific info within the switcher of those functions. You will find it inFrontend_Data
. - Define modules you want to use, create new ones for your articles as needed.
Common Functionality
- The
getNoarticleInfo
andgetArticleInfo
functions by default retrieve teaser images and set the correct language. - Specify any new Article or Noarticle entity type in constants.