Upcoming SlideShare
×

# Nooku for dummies

1,650 views
1,586 views

Published on

Presentatie op 3 januari 2011 voor Joomla User Group 's Hertogenbosch over het 'fall back' principe van Nooku.

0 Likes
Statistics
Notes
• Full Name
Comment goes here.

Are you sure you want to Yes No
Your message goes here
• Be the first to comment

• Be the first to like this

Views
Total views
1,650
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
13
0
Likes
0
Embeds 0
No embeds

No notes for slide

### Nooku for dummies

1. 1. Nooku<br />
2. 2. 1/3/11<br />Joomla User Group ’s Hertogenbosch<br />2<br />Nooku<br />Nooku, wat je moetweten<br />Fall-back principe<br />Table naming conventions<br />Objects<br />
3. 3. Frontend editing In 5 stappen<br />Handenuit de mouwen!<br />1/3/11<br />Joomla User Group ’s Hertogenbosch<br />3<br />
4. 4. if(!defined('KOOWA')) {<br /> JError::raiseWarning(0, JText::_('Koowa wasn't found. Please install the Koowaplugin and enable it.’));<br />return;<br />}<br />echo KFactory::get('site::com.worlds.dispatcher')->dispatch();<br />Hello World – Stap 1<br />Dispatcher : …/com_worlds/worlds.php<br />1/3/11<br />Joomla User Group ’s Hertogenbosch<br />4<br />
5. 5. <ol><br /><?foreach(\$worldsAS \$world) ?><br /><li><br /><?= \$world->name?><br /></li><br /><?endif; ?><br /></ol><br />Hello World – Stap 2<br />View: …/com_worlds/views/worlds/tmpl/default.php<br />1/3/11<br />Joomla User Group ’s Hertogenbosch<br />5<br />
6. 6. Bijna, maariets mist ernog<br />1/3/11<br />Joomla User Group ’s Hertogenbosch<br />6<br />
7. 7. Database tabellen<br />Tabelvooronzegegevensopslagaanmaken:<br />CREATE TABLE `sandbox`.`jos_worlds_worlds` (`worlds_world_id` SERIAL,`name` VARCHAR( 50 )NOT NULL<br />)ENGINE = MYISAM ;<br />INSERT INTO `sandbox`.`jos_worlds_worlds` (<br />`worlds_world_id` ,<br />`name`<br />) VALUES (NULL , 'mars’) ,(NULL , 'venus’) ;<br />1/3/11<br />Joomla User Group ’s Hertogenbosch<br />7<br />
8. 8. /index.php?option=com_worlds<br />1/3/11<br />Joomla User Group ’s Hertogenbosch<br />8<br />
9. 9. Kind kan de was doen<br />1/3/11<br />Joomla User Group ’s Hertogenbosch<br />9<br />
10. 10. Vrouwenkomen van Venus …<br />Veranderingenaan de tabel:<br />ALTER TABLE `jos_worlds_worlds` ADD `population` VARCHAR( 50 ) NOT NULL ;<br />UPDATE `sandbox`.`jos_worlds_worlds` <br />SET `population` = ’vrouwen' WHERE `jos_worlds_worlds`.`worlds_world_id` =2; <br />1/3/11<br />Joomla User Group ’s Hertogenbosch<br />10<br />
11. 11. <ol><br /><?foreach(\$worldsAS \$world) ?><br /> <? \$href = @route('index.php?option=com_worlds&view=world&id='. \$world->id) ?><br /><li><br /><ahref="<?= \$href ?>”><br /><?= \$world->name?><br /></a><br /></li><br /><?endif; ?><br /></ol><br />Hello World – Stap 3<br />View: …/com_worlds/views/worlds/tmpl/default.php<br />1/3/11<br />Nooku Jam - Rotterdam<br />11<br />
12. 12. <h1><?= \$world->name ?></h1><br /><h4><?= @text('Population')?></h4><br /><p><?= \$world->population ?></p><br />Hello World – Stap 4<br />View: …/com_worlds/views/world/tmpl/default.php<br />1/3/11<br />Nooku Jam - Rotterdam<br />12<br />
13. 13. /index.php?option=com_worlds&view=world&id=2<br />1/3/11<br />Joomla User Group ’s Hertogenbosch<br />13<br />
14. 14. Ja? En mannendan?!?<br />1/3/11<br />Joomla User Group ’s Hertogenbosch<br />14<br />
15. 15. <h1><?= @text('Change the world') ?></h1><br /><form action="<?= @route('id='.\$world->id) ?>" method="post"><br /><label for="name"><?= @text('Name') ?></label><br /><br /><input type="text" name="name" value="<?= \$world->name ?>" /><br /><br /><br /><label for="population"><?= @text('Population') ?></label><br /><br /><inputtype="text" name="population" value="<?= \$world->population ?>" /><br /><br /><br /><inputclass="button"type="submit"name="submit"value="<?= @text('Submit') ?>" /><br /><inputtype="hidden"name="action"value="save"/><br /></form><br />Hello World – Stap 5<br />View: …/com_worlds/views/world/tmpl/form.php<br />1/3/11<br />Joomla User Group ’s Hertogenbosch<br />15<br />
16. 16. /index.php?option=com_worlds&view=world&layout=form&id=1<br />1/3/11<br />Joomla User Group ’s Hertogenbosch<br />16<br />
17. 17. /index.php?option=com_worlds&view=world&id=1<br />1/3/11<br />Joomla User Group ’sHertogenbosc<br />17<br />
18. 18. 1/3/11<br />Joomla User Group ’s Hertogenbosch<br />18<br />WOW<br />
19. 19. Vragen?<br />1/3/11<br />Joomla User Group ’s Hertogenbosch<br />19<br />