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
//leckerstartto set your basic configuration. - Create a
.envfile using the template provided below.
Environment Configuration
Create a.env file in your project root directory using the following template:
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
getNoarticleInfofunction in theFrontend_Dataclass. - 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_viewfunction where you specify common items that load on every page. - Create a new PHP file for your view in the
viewsfolder.
Detail Pages for Articles
- Edit the
detailfunction in the Frontend Controller. This function is applied whenever you try to open a URL that is not defined in routes. - Use
getArticleInfoand 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
getNoarticleInfoandgetArticleInfofunctions by default retrieve teaser images and set the correct language. - Specify any new Article or Noarticle entity type in constants.