public function addScript($jsfile, $min = FALSE, $type = 'text/javascript') {
        //Check if we must minified the style
        $minTag = "<script type='$type' src='min/?f=" . $this->asset($jsfile, TRUE) . "' ></script>";
        $maxTag = "<script type='$type' src='" . $this->asset($jsfile, TRUE) . "' ></script>";

        //TODO: min files
        $includeTag = $maxTag;


        $minPos = strpos($this->scripts, $minTag);
        $maxPos = strpos($this->scripts, $maxTag);

        if ($minPos === FALSE && $maxPos === FALSE) {  // Si no esta, concatenamos
            $this->scripts .= $includeTag;
        }
    }
public function addScript($jsfile, $min = FALSE, $type = 'text/javascript') {
        //Check if we must minified the style
        $minTag = "<script type='$type' src='min/?f=" . $this->asset($jsfile, TRUE) . "' ></script>";
        $maxTag = "<script type='$type' src='" . $this->asset($jsfile, TRUE) . "' ></script>";

        //TODO: min files
        $includeTag = $maxTag;


        $minPos = strpos($this->scripts, $minTag);
        $maxPos = strpos($this->scripts, $maxTag);

        if ($minPos === FALSE && $maxPos === FALSE) {  // Si no esta, concatenamos
            $this->scripts .= $includeTag;
        }
    }
public function addScript ( $ jsfile , $ min = FALSE , $ type = 'text/javascript' ) { //Check if we must minified the style $ minTag = "<script type='$type' src='min/?f=" . $ this -> asset ( $ jsfile , TRUE ) . "' ></script>" ; $ maxTag = "<script type='$type' src='" . $ this -> asset ( $ jsfile , TRUE ) . "' ></script>" ; //TODO: min files $ includeTag = $ maxTag ; $ minPos = strpos ( $ this -> scripts , $ minTag ) ; $ maxPos = strpos ( $ this -> scripts , $ maxTag ) ; if ( $ minPos === FALSE && $ maxPos === FALSE ) { // Si no esta, concatenamos $ this -> scripts .= $ includeTag ; } }
Add Script into the cue of Script vars.

@param string $jsfile
@param bool $min
@param string $type
Add Script into the cue of Script vars .