GithubHelp home page GithubHelp logo

Comments (8)

TiuTalk avatar TiuTalk commented on June 30, 2024

http://book.cakephp.org/2.0/en/core-libraries/helpers/html.html#HtmlHelper::image

from cakephp-upload.

andranos avatar andranos commented on June 30, 2024

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 :))

Html->image($publisher['Publisher']['photo']); ?>

from cakephp-upload.

TiuTalk avatar TiuTalk commented on June 30, 2024

@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.

marti1125 avatar marti1125 commented on June 30, 2024

http://book.cakephp.org/2.0/en/core-libraries/helpers/html.html#HtmlHelper::image
I don't help anything.

Html->image($data['User']['photo'])?>

from cakephp-upload.

Mohl avatar Mohl commented on June 30, 2024

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.

kanonji avatar kanonji commented on June 30, 2024
<?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.

josegonzalez avatar josegonzalez commented on June 30, 2024

Make a helper.

from cakephp-upload.

andranos avatar andranos commented on June 30, 2024

Found it :D

from cakephp-upload.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.