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?
Klar, sowas ist machbar! Werde das mal auf meine Todo Liste nehmen. Wird aber vermutlich eine Weile dauern!
Hi Remo,
Didn’t have the time to run through all of this yet, but thought I’d let you know that this github repo does not exist:
$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
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?
Klar, sowas ist machbar! Werde das mal auf meine Todo Liste nehmen. Wird aber vermutlich eine Weile dauern!
Hi Remo,
Didn’t have the time to run through all of this yet, but thought I’d let you know that this github repo does not exist:
https://github.com/Remo/codeblog-database-itemlist
You probably meant here:
https://github.com/Remo/codeblog/tree/master/codeblog_database_itemlist
FYI 🙂
John
Thanks John!
I’m starting to feel bad about all my mistakes you discover 😉
Awesome! Man, I was trying to figure out how the registerAutoload() method wanted the data; this is perfect and works like a charm. You’re a champ!
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:
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
Please create a simple demo with search option.
Sorry, too busy to work on my least popular tutorial. But don’t forget, concrete5 is open source, you already have lots of examples, here’s one: https://github.com/concrete5/concrete5/blob/master/web/concrete/core/controllers/single_pages/dashboard/sitemap/search.php
Yeah… thanks for reply. I found solution by myself http://www.concrete5.org/community/forums/customizing_c5/problem-occurred-during-pagination/#582233
Once again thanks for the wonderful beginner tutorial for database list and pagination