Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Class ContentImages not found 01 Aug 2013 09:35 #10656

Hello,

We are trying to make a small Module that render some data from our ready J-Cook Component.

Using :
<?php echo JDom::_('html.fly.file', array(
'attrs' => array('center','fit','format:png'),
'dataKey' => 'icon',
'dataObject' => $row,
'height' => 26,
'indirect' => true,
'root' => '[DIR_XXXXXCATEGORIES_IMAGE]',
'route' => array('view' => 'xxxxcontent','layout' => 'contentd','filter_category_id' => $row->id),
'width' => 26
));?>

Produces the error : Class ContentImages not found

Notice: Trying to get property of non-object in /Applications/XAMPP/xamppfiles/htdocs/xxxx/administrator/components/com_xxxxx/dom/html/fly/file/image.php on line 74

Everything went fine with strings and text data but not with Images.

It gives up the message "Class ContentImages not found"

Please help ASAP !

Thank you in advance.

Please Log in or Create an account to join the conversation.

Class ContentImages not found 03 Aug 2013 15:25 #10669

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Ok, this is normal.
It is not explained yet because no documentation....

Add this in your view or template file, before to call JDom
$dom = JDom::getInstance();
$dom->set('extension', 'com_xxxxxx');

Note : When you get 'Not suported' image, it often means that the size is not allowed because not present in the expected predefined sizes.

Hope it works now for you.

I am so sorry I could told you this before.
Coding is now a piece of cake
The following user(s) said Thank You: Pantelis

Please Log in or Create an account to join the conversation.

Class ContentImages not found 06 Aug 2013 21:53 #10697

Dear Admin,

Thank you it works,

Now it has another problem with the view.

When i click on the image (Link) it shows joomla error 500 ... something i have to change to the route section of image !
'route' => array ( 'view' => 'movie','layout' => 'movie','cid[]' => $row->id ),

http://localhost/cine = root of the site

the link now : http://localhost/cine/cinema?view=movie&layout=movie&cid%5B0%5D=5

must be : http://localhost/cine/movies?view=movie&layout=movie&cid%5B0%5D=5

How can i do that inside my module ?

Please Log in or Create an account to join the conversation.

Last edit: by Pantelis.

Class ContentImages not found 07 Aug 2013 16:23 #10709

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Did you tried this :
'route' => array ( 'option' => 'com_cinema', 'view' => 'movie','layout' => 'movie','cid[]' => $row->id ),
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.117 seconds

Les générateurs de code je les connais presque tous pour les avoir essorés en long en large et en travers ... mais celui ci c'est vraiment un outil formidable de simplicité et d'efficacité !
Marc. (liubov - Forum)

Get Started