Any English videos or screencasts?

Notice: This thread is very old.
frocco
Member | 46
+
0
-

Hello,

New user.

I have worked with Codeigniter, FuelPHP to name a few, and cannot find any English videos on nette.
If there are no videos, are there more advanced tutorials?

Thanks
Frank

greeny
Member | 405
+
0
-

Hi,

first of all, you should try quickstart. After quickstart, play with your application a bit, using documentation. You can also go through full documentation and try one topic after another. Good source of knowledge is also Planette, where you can find some useful (but sometimes outdated) tips and tricks.

You can always ask specific question here.

Regarding videos, I don't think there is much english tutorials, since the community is mostly czech-ish. But we are happy to know, that Nette is spreading into other countries!

frocco
Member | 46
+
0
-

Thank you.
I got my first app ported to nette, but am lost on doing the admin backend.
I looked at modules and could not get it working.

my site consists of database driven pages and should allow image upload and resizing.

Regards,

Frank

Jan Tvrdík
Nette guru | 2567
+
0
-
frocco
Member | 46
+
0
-

Thanks, I will try it.
It looks more complicated than what I did in Codeigniter using an add in module library.
Any tutorials on setting up ad admin dashboard without using modules?

Last edited by frocco (2015-03-24 13:01)

greeny
Member | 405
+
0
-

Module is basically a group of presenters. There is nothing complicated.

  • you can create link as :Module:Presenter:action
  • in routes, you can use named parameter module to define module
  • presenter should have <ModuleName>Module in namespace (depends on your mapping)

There is no more logic for modules in Nette.

frocco
Member | 46
+
0
-

I followed the docs at https://doc.nette.org/…4/presenters

  1. Created a fresh project.
  2. Under App, I created a directory AdminModule
  3. Under AdminModule I created a directory presenters
  4. Under presenters, I have a DashboardPresenter.php
namespace AdminModule;

use Nette,
	App\Model;


/**
 * Homepage presenter.
 */
class DashboardPresenter extends  Nette\Application\UI\Presenter
{

	public function renderDefault()
	{
		$this->template->anyVariable = 'any value';
	}
public function renderShow()
	{
		$this->template->anyVariable = 'any value';
	}

I have a link on home page:
<a n:href=“:Admin:Dashboard:show”>link for Admin:Product:show</a>

I get this error.
Invalid link: Cannot load presenter ‘Admin:Dashboard’, class ‘App\AdminModule\Presenters\DashboardPresenter’ was not found

Jan Endel
Member | 1016
+
+3
-

You have to options:

1)
change namespace of Dashboard presenter from AdminModule to App\AdminModule\Presenters

or

2)
change your config.neon from:

application:
	errorPresenter: Error
	mapping:
		*: App\*Module\Presenters\*Presenter

to

application:
	errorPresenter: Error
	mapping:
		*: *Module\*Presenter
frocco
Member | 46
+
0
-

Thank you so much, it is working now.

Regards,

Frank