(English) concrete5 database list and pagination

Leider ist der Eintrag nur auf English verfügbar.




12 Comments

Hi Remo,
Echt lehrreich. Das ist jedenfalls ein guter Einstieg in der Materie der Package-Entwicklung. Es hat 45 Minuten gedauert und ist problemlos gelaufen.
Es wäre didaktisch genial in weiteren Schritten zu sehen, wie daraus ein konfigurierbarer Block gemacht werden kann. Ein Block wo man z.B. die Tabelle, die anzuzeigende Felder und die Anzahl der Einträgen bestimmen Kann.

Ist sowas denkbar?

Hi Remo thx for this tutorial

Very Help me
But i have question , How about update function ?
In model you put update function

i have try to make update function, but failed because crash with the construct
Can you teach me, how to make update function with this tutorial

Thx before

What do you mean by crash in the constructor? Got some code I could analyse? Without having tried it, I think something like this should work:

$mountain = new Mountain(intval($mountainID));
$mountain->update($data);

Hi Reno – thanks for this tutorial.
I am venturing into working with custom tables, so this is great.
I grabbed your code example from Github and installed the package on a development site…

But here comes the interesting part. I don’t se anything in my frontend, but if I check the source code, all content is there (name, height and content from the database table). It’s just not showing in the frontend.
Do you have any idea as to why?

Hi Tilde
my bad, I left some old code in there!
If you check this line: https://github.com/Remo/codeblog/blob/master/codeblog_database_itemlist/controllers/codeblog_database_itemlist.php#L11
You can see that I show how you can filter for a certain field. With the current code, only mountains higher than 4000 will be shown. The last time I was in Denmark I couldn’t see anything that was even close to that height 😉 If you try with something higher, does the mountain appear? Or simply remove that line I’ve linked above.
I hope that helps!
Remo

Hinterlasse eine Antwort

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind markiert *