Clean Installation of nette

argian
Member | 15
+
0
-

I am new to nette and want to test how it works.

How can I create a clean installation with only the home page?

argian
Member | 15
+
0
-

I mean a comletely clean so that I can start creating step by step my project but not customising the nette web project.

Marek Bartoš
Nette Blogger | 1161
+
0
-

That's exactly what web-project is for. It's just basic structure, homepage and error page.

argian
Member | 15
+
0
-

If I want to implement a structure of /admin and /frontpage how can I do it? Do you have any example?

Pepino
Member | 249
+
0
-
argian
Member | 15
+
0
-

Thank You

argian
Member | 15
+
0
-

Hi,
I am trying to test a /front & /admin application.

I have a Museum page that must be called from the home page.

My configuration is:

Application mapping is:
*: App\Modules\*\Presenters\*Presenter

My route configuration is
$router->addRoute(‘<presenter>/<action>[/<id>]’, ‘Front:Homepage:default’);

Link from home page is : <a n:href=“:Front:Museum:”>Museum</a>

The link in result page is https://localhost/…ront.museum/ instead of https://localhost/…/www/museum/.

What am I doing wrong.

Thank you.

Last edited by argian (2022-09-19 20:59)

Marek Bartoš
Nette Blogger | 1161
+
+1
-

Router must distinguish between modules, Admin:Museum and Front:Museum can't have the same URL.

What you are looking for is module routing https://doc.nette.org/…tion/routing#…

argian
Member | 15
+
0
-

Great. It works.

Thanks a lot.