Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6110007
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:28:04+00:00 2026-05-23T14:28:04+00:00

e.g. (file = views/elements/photos/tag.ctp ) In this element I have to show a description

  • 0

e.g. (file = views/elements/photos/tag.ctp)

In this element I have to show a description about that photo.
I want to truncate the description text, so i’m using the Truncate
function of the Text Core Helper but this throws the following
exception

echo $this->Text->truncate($photo['Photo']['description'], 30,array(  'ending' => '...', 'exact' => false,'html' => true ));

Fatal error: Call to a member function truncate() on a non-object i
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T14:28:04+00:00Added an answer on May 23, 2026 at 2:28 pm

    Next time, please post the full error message.

    It looks like you didn’t include the helper within the Controller you are using here.

    Make sure, you have the following within your controller:

    var $helpers = array('Text');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this code in PHP writing views to a text-file and just increasing
New to iOS, I have to make an app that will show photos and
I have an XML file that is bound to a listbox as below. This
django-userena does not have a views.py file. It uses instead html files, i would
I want to create a generic html table to excel file view that can
I want to read a log file(txt file) and view this in txt file
I have a code as such that reads in an xml file into a
I have a Add view which uploads file which is element of Question class
I have a couple of Views that are used in a lot of locations.
I have a html.erb file in one of my views. The file is pretty

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.