All work requires php 5.3.29
https://mega.co.nz/#!s8BS0CJT!oDNOl-...Uk0PqdH4ig7tEU
Demo
log: rulex
pass:12345
Demo
All work requires php 5.3.29
https://mega.co.nz/#!s8BS0CJT!oDNOl-...Uk0PqdH4ig7tEU
Demo
log: rulex
pass:12345
Demo
Last edited by RuLex1; 23-07-15 at 04:22 PM.
Please provide a screenshot of this working, and/or code preview, within 24 hours or this thread will be deleted.
I do not know why but I was not 3.0 we goes fine.
More photos.
mod_rewrite is active.
https://translate.google.com
http://i.imgur.com/Hlnlw11.png
some php are you using?
Demo
log: rulex
pass:12345
Demo
Last edited by RuLex1; 23-07-15 at 04:26 PM.
I'm sorry I used the wrong version.
We had web works.
https://translate.google.com
http://i.imgur.com/4FkvST1.jpg
nice =)
A new problem when I go to the login shows the error symlink () [<a href='function.symlink'> function.symlink </a>]: Can not create symlink error code (1314) more picture. : http://i.imgur.com/OaLm9Dd.png
program xampp php version 5.3.29 = windows
thanks for help
I do not think there is a problem in Yii PHP Framework is rather a problem of symlink
1. set forceCopy property to true: $forceCopy=true;
if you receive a warning "The "forceCopy" and "linkAssets" cannot be both true."
2. go to publish function
3. comment this line
//if($forceCopy && $this->linkAssets)
//throw new CException(Yii::t('yii','The "forceCopy" and "linkAssets" cannot be both true.'));
4. then add $this->linkAssets = true; on the topmost part of publish function
Chow Thanks for the tutorial but it would make a video - photo.
php just getting started with that yet do not understand :(
I did almost everything as instructed but still same error
Code:public function publish($path,$hashByName=false,$level=-1,$forceCopy=null) { $this->linkAssets = true; $forceCopy=true; if($forceCopy===null) $forceCopy=$this->forceCopy; //if($forceCopy && $this->linkAssets) //throw new CException(Yii::t('yii','The "forceCopy" and "linkAssets" cannot be both true.')); if(isset($this->_published[$path])) return $this->_published[$path]; elseif(is_string($path) && ($src=realpath($path))!==false) { $dir=$this->generatePath($src,$hashByName); $dstDir=$this->getBasePath().DIRECTORY_SEPARATOR.$dir; if(is_file($src)) { $fileName=basename($src); $dstFile=$dstDir.DIRECTORY_SEPARATOR.$fileName; if(!is_dir($dstDir)) { mkdir($dstDir,$this->newDirMode,true); @chmod($dstDir,$this->newDirMode); } if($this->linkAssets && !is_file($dstFile)) symlink($src,$dstFile); elseif(@filemtime($dstFile)<@filemtime($src)) { copy($src,$dstFile); @chmod($dstFile,$this->newFileMode); } return $this->_published[$path]=$this->getBaseUrl()."/$dir/$fileName"; } elseif(is_dir($src)) { if($this->linkAssets && !is_dir($dstDir)) { symlink($src,$dstDir); } elseif(!is_dir($dstDir) || $forceCopy) { CFileHelper::copyDirectory($src,$dstDir,array( 'exclude'=>$this->excludeFiles, 'level'=>$level, 'newDirMode'=>$this->newDirMode, 'newFileMode'=>$this->newFileMode, )); } return $this->_published[$path]=$this->getBaseUrl().'/'.$dir; } } throw new CException(Yii::t('yii','The asset "{asset}" to be published does not exist.', array('{asset}'=>$path))); }
Last edited by krokody; 24-07-15 at 01:50 AM.
Does anyone know the actual benefits of using this over the English 3.0 version I translated? What was updated or added?