Schnell-Referenz: Häufig verwendete Code-Schnipsel und Anweisungen für Entwickler.
$getVar = $this->Request()->getParam('getVar'); // Get get var by name
$get = $this->Request()->getParams(); // Get all get vars
$post = $this->Request()->getPost(); // get post
$this->View()->assign('name', 'value')
public function onPostDispatchFrontendListing(Enlight_Event_EventArgs $args){
$controller = $args->get(‘subject’);
$view = $controller->View();
$view->assign('name', 'value');
...
}
# Datei: config.php
[
'db' => [
// your database configuration
],
'front' => [
'showException' => true
],
'phpsettings' => [
'display_errors' => 1,
],
]
# 1. Ordner anlegen
[pluginDir]/Resources/frontend/js
# 2. Datei anlegen, bspw.:
jquery.myPlugin.js
# 3. Plugin-Code anlegen:
$.overridePlugin('swProductSlider', {
setSizes: function(orientation) { // Function to override
// Your new code
}
});
# 4. Plugin installieren, kompilieren, testen.