[英]multiple images uploading and converting them to thumbnails in cakephp
Please can anyone help me out in finding the best imagecomponent for uploading, resizing, cropping. 请任何人帮助我找到最好的图像组件上传,调整大小,裁剪。 And little help is needed in this following code..... 以下代码中需要很少帮助.....
index.ctp index.ctp
<?php
echo $this->form->create(array('type'=>'file'));
echo $this->form->input('upload',array('type'=>'file','multiple'));
echo $this->form->end('submit');
?>
if I try to print the file info in TestsController.php 如果我尝试在TestsController.php中打印文件信息
<?php
class TestsController extends AppController{
public function index(){
// echo '<pre>';
print_r($this->data);
}
}
?>
it ends up with an empty Array() ....is there any other way around... 它最终得到一个空的Array()....有没有其他方法...
help for your code.. 帮助您的代码..
pr( $this->request->data );
// user $this->request->data instead of $this->data
//for printing submitted values
and for image there is many component available you can use according your need.......... can visit these links.. http://bakery.cakephp.org/articles?by=crop 对于图像,有许多组件可供您根据需要使用..........可以访问这些链接.. http://bakery.cakephp.org/articles?by=crop
http://labs.iamkoa.net/2007/10/23/image-upload-component-cakephp/ http://labs.iamkoa.net/2007/10/23/image-upload-component-cakephp/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.