Nooku Components is an open source project powered by Assembla

Assembla offers free public and private SVN/Git repositories and project hosting with bug/issue tracking and collaboration tools.

nooku-components

Commit 1507

User picture
  • Author: stiandidriksen
  • 2012-02-24 22:57 (about 2 years ago)

re #65 adding media_url makes sure the right assets are loaded

Files Affected

 
15061507
4
 * @TODO clean up docs
4
 * @TODO clean up docs
5
 *
5
 *
6
 * Usage example:
6
 * Usage example:
7
 * <?= KService::get('com://admin/editors.view.editor.html')->display() ?>
7
 * <?= @service('com://admin/editors.view.editor.html')->name('text')->data($article->text)->display() ?>
8
 */
8
 */
9
 
9
 
10
class ComEditorsViewEditorHtml extends ComDefaultViewHtml
10
class ComEditorsViewEditorHtml extends ComDefaultViewHtml
...
 
...
 
73
 
73
 
74
        $config->append(array(
74
        $config->append(array(
75
            'layout'   => 'default',
75
            'layout'   => 'default',
 
 
76
            //@TODO this is because KControllerResource sets this and we have no controller yet
 
 
77
            'media_url' => KRequest::root().'/media',
76
 
78
 
77
            'settings' => $settings
79
            'settings' => $settings
78
        ));
80
        ));