Comments (8)
http://book.cakephp.org/2.0/en/core-libraries/helpers/html.html#HtmlHelper::image
from cakephp-upload.
What I mean is with the uploaded file, not pointing out to a specific picture.
This is my code currently but it's not working and I know it must be wrong :))
from cakephp-upload.
@andranos,
Please, submit your question to que CakePHP Discussion Group: https://groups.google.com/forum/?fromgroups#!forum/cake-php
Here isn't the right place, since you're not reporting an issue with the plugin.
from cakephp-upload.
http://book.cakephp.org/2.0/en/core-libraries/helpers/html.html#HtmlHelper::image
I don't help anything.
from cakephp-upload.
For the Thumb it's
Html->image('../files/User/photo/'.$user['User']['photo_dir'].'/thumb_'.$contactperson['User']['photo']); ?>if you followed the "standard instructions" ( 'rootDir' => 'YourAppDirectory','pathMethod'=> 'primaryKey', 'path' => '{ROOT}webroot{DS}files{DS}{model}{DS}{field}{DS}', ).
Took me a while to figure out that $this->Html->image() starts in the /app/webroot/img/ directory...
from cakephp-upload.
<?php echo $this->Html->image("{$user['User']['photo_dir']}/thumb_{$user['User']['photo']}", array('pathPrefix' => 'files/user/photo/'))
There is pathPrefix option changes from img dir to you indicate.
By the way, I don't want to concatenate strings in the view file. I am wondering if there is better way.
from cakephp-upload.
Make a helper.
from cakephp-upload.
Found it :D
from cakephp-upload.
Related Issues (20)
- CakePHP 4 Upload Plugin
- set behaviors config in Method results in emtpy filename
- Cannot Find plugin and it is there HOT 1
- Save on _joinData HOT 2
- request to new tag on 3.x HOT 2
- Test Fixtures have type `upload.file` for upload field. HOT 4
- Class 'League\Flysystem\Adapter\Local' not found HOT 2
- Saving model failed with no error HOT 1
- Duplicate configs on certain situations HOT 2
- Deprecated
- Solved: Using transformer does not upload video and entity isn't saved HOT 1
- File not uploading/object not removed from data HOT 2
- Unable to upload images to S3 HOT 1
- 700 permission in subfolder using 'path' HOT 1
- Support for chunking HOT 1
- cake-5 branch not installable HOT 5
- Translate Behavior : Cannot convert value of type Laminas\Diactoros\UploadedFile to string
- Help on object clone
- Validate upload mime type HOT 1
- filegrabber in cakephp 4 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cakephp-upload.