This component inspired by this tutorial https://docs.joomla.org/J3.x:Developing_an_MVC_Component/Developing_a_Basic_Component. It covers some parts disscussed there and it is extended by composer/GUZZLEHHTP.
JFactory::getApplication()->enqueueMessage('Some debug string(s)');
- in
view.html.php
, we define the varible - in
/tmpl/default.php
, we send the varibale to the frontend - in
/tmpl/default.xml
, we show the menu im backend menu
- rename file
helloworld.xml
- rename all
helloworld
files mentioned in thishelloworld.xml
file - re-/install component if necessary
- in folder
controllers
createHelloWorldControllerStudent
class (replaceHelloworld
with the name of your component) and extend it fromJControllerLegacy
(e.g.controllers/item.php
) - in folder
models
createHelloWorldModelStudent
class (replaceHelloworld
with the name of your component) and extend it fromJModelItem
(e.g.models/item.php
) - in folder
views
create folderstudent
and following files:
views
|---- student
| |----tmpl
| | -- default.php
| | -- default.xml
| | -- index.html
| -- index.html
| -- view.html.php
- in the file
view.html.php
create classHelloWorldViewStudent
get data from model and save it into variables - put defined variables into html template in
default.php
(e.g.views/item
)