Jump to content

Search the Community

Showing results for tags 'size function'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to ProcessWire
    • News & Announcements
    • Showcase
    • Wishlist & Roadmap
  • Community Support
    • Getting Started
    • Tutorials
    • FAQs
    • General Support
    • API & Templates
    • Modules/Plugins
    • Themes and Profiles
    • Multi-Language Support
    • Security
    • Jobs
  • Off Topic
    • Pub
    • Dev Talk

Product Groups

  • Form Builder
  • ProFields
  • ProCache
  • ProMailer
  • Login Register Pro
  • ProDrafts
  • ListerPro
  • ProDevTools
  • Likes
  • Custom Development

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 1 result

  1. Hi Guys, Just wondering whether I'm doing something wrong or you just can't use size function for images inside of my global functions.php. I have an about page and on this page am going to render directors of the company. So I have made a function so as not to keep rewriting the same code of course. If I use: $alex = $users->get("name=alex"); $image = $alex->images->first; echo "<img src=\"{$image->size(369, 369)->url}\" />"; from within the about template there is no problem at all. Now if I do the equivalent from within the functions file I get: Error: Call to a member function size() on a non-object (line 249 of /Path/To/My/Website/site/templates/includes/functions.php) Any thoughts please? Thanks Alex
×
×
  • Create New...