← Back to team overview

phpdevshell team mailing list archive

[Bug 1018825] Re: Single js file when calling multiple js files/plugins

 

** Changed in: phpdevshell
    Milestone: 3.2.1-stable => None

-- 
You received this bug notification because you are a member of
PHPDevShell, which is subscribed to PHPDevShell.
https://bugs.launchpad.net/bugs/1018825

Title:
  Single js file when calling multiple js files/plugins

Status in Open Source PHP RAD Framework with UI.:
  Confirmed

Bug description:
  Had this great idea, just like Smarty creates templates, we could too
  create templates when multiple js files are called from within the
  view. Say for instance I have this;

  <?php

  class fileManagerView extends PHPDS_view
  {
  	public function execute()
  	{
  		$template = $this->template;

  		$template->jqueryUI('selectable');
  		$template->jqueryUI('draggable');
  		$template->jqueryUI('droppable');
                  $template->sendJSFileToHead('someurl');
                 $template->sendJSToHead('<!-- someurl -->');
  	}
  }

  Instead of calling 4 files, the system creates a
  fileManagerView.tmp.js file inside the write/compile directory and
  calls only this single js file. It does inspect changes and overrides
  the tmp file if needed.

To manage notifications about this bug go to:
https://bugs.launchpad.net/phpdevshell/+bug/1018825/+subscriptions


References