Jump to content


Photo
- - - - -

Не знает функцию resize()

resize

Best Answer Cheren-dow , 24 February 2016 - 13:39

axeld, не нужно делать обращение к app? используйте:

 $zoo->jbimage->resize('images/1.jpg', $width, $height);
Go to the full post


  • This topic is locked This topic is locked
2 replies to this topic

#1 axeld

axeld
  • JBZoo User (rus)
  • User rate: 0.8
  • posts: 661
  • topics: 194

Posted 24 February 2016 - 13:17

Здравствуйте. Создал модуль для joomla3.
Подключил zoo
Вроде все должно работать, но пишет ошибку.
Что-то не подключено ?

// Load the framework
require_once ( JPATH_BASE . DS . 'includes' . DS . 'defines.php' );
require_once ( JPATH_BASE . DS . 'includes' . DS . 'framework.php' );

require_once(JPATH_ADMINISTRATOR . '/components/com_zoo/config.php'); // подключаем Zoo
require_once(JPATH_BASE . '/media/zoo/applications/jbuniversal/framework/jbzoo.php');// подключаем JBZoo
JBZoo::init(); // инициализация
$zoo = App::getInstance('zoo');

  $width  = 200;
  $height = 200;
    echo $image  = $zoo->app->jbimage->resize('images/1.jpg', $width, $height);

Fatal error: Call to a member function resize() on a non-object in ...


  • 0

#2 Cheren-dow

Cheren-dow
  • JBZoo User (rus)
  • User rate: 95.7
  • posts: 5060
  • topics: 31

Posted 24 February 2016 - 13:39   Best Answer

axeld, не нужно делать обращение к app? используйте:

 $zoo->jbimage->resize('images/1.jpg', $width, $height);

  • 0
Изображение
 

#3 axeld

axeld
  • Topic Starter
  • JBZoo User (rus)
  • User rate: 0.8
  • posts: 661
  • topics: 194

Posted 24 February 2016 - 13:50

 

axeld, не нужно делать обращение к app? используйте:

 $zoo->jbimage->resize('images/1.jpg', $width, $height);

 

Большое СПАСИБО.


  • 0





Also tagged with one or more of these keywords: resize

Click to return to top of page in style!