Skip to content

Namespacing issue for helper functions #10

@ArlingtonHouse

Description

@ArlingtonHouse

Hi I'm trying to call cl_image_upload_tag() in a Symfony2 controller. Because this is a helper function and not part of the Cloudinary or Uploader classes, I can't seem to call the function in a civilized php way.

$cloud_form = \cl_image_upload_tag('image_id', array("callback" => $this->get("router")->generate("cloudinary_callback")));

In Sf2 I need to handle the logic in a controller and then echo out the result in Twig: {{ cloud_form|raw }}

People with more ability than me say that we need to improve the composer instructions for the Cloudinary code set.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions