Difference between revisions of "Movie Database Tutorial - Customization and Further Developments"

From Documentation for GridGuyz CMS
Jump to: navigation, search
(Testreszabás)
Line 18: Line 18:
 
===Modell===
 
===Modell===
  
Hozzunk létre a <code>module/VendorName/MovieDatabase/src/VendorName/MovieDatabase/Model/Imdb/Model.php</code> fájlt:
+
Create the <code>module/VendorName/MovieDatabase/src/VendorName/MovieDatabase/Model/Imdb/Model.php</code> file:
 
<syntaxhighlight lang="php">
 
<syntaxhighlight lang="php">
 
<?php
 
<?php
Line 133: Line 133:
  
  
=== Kontrollerek ===
+
=== Controllers ===
  
Modosítsuk a következő fájlt <code>module/VendorName/MovieDatabase/src/VendorName/MovieDatabase/Controller/AdminEditController.php</code>:
+
Modify the next file <code>module/VendorName/MovieDatabase/src/VendorName/MovieDatabase/Controller/AdminEditController.php</code>:
 
<syntaxhighlight lang="php" highlight="11-31">
 
<syntaxhighlight lang="php" highlight="11-31">
 
<?php
 
<?php
Line 181: Line 181:
 
===View helper===
 
===View helper===
  
Mivel a modelleket view-ból hívni az [http://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller MVC modell] durva megsértése, az imdb adatok view-ból történő elérésére készítünk egy [http://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller view helpert].
+
Since calling the models from views would be a gross violation of the [http://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller MVC] model, we create a  [http://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller view helper] in order reach the imdb data from the view.
  
Először is módosítsuk a <code> module/VendorName/MovieDatabase/Module.php</code> fájlt:
+
First, let's modify the <code> module/VendorName/MovieDatabase/Module.php</code> file:
 
<syntaxhighlight lang="php" highlight="3,5-11">
 
<syntaxhighlight lang="php" highlight="3,5-11">
 
<?php
 
<?php

Revision as of 09:48, 25 October 2013