Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. view.html.php
  2. view.raw.php
  3. view.pdf.php
  4.  
  5. view.html.php
  6.  
  7.  
  8. <?php
  9.  
  10. //-- No direct access
  11. defined('_JEXEC') || die('=;)');
  12.  
  13. class compoViewDashboard extends JViewLegacy {
  14.  
  15.  
  16. public function display($tpl = null) {
  17.  
  18. if (JRequest::getVar('layout') == 'somelayout') {
  19.  
  20. $jinput = JFactory::getApplication()->input;
  21. $data = $jinput->post->get('xyz', 'null', 'INT');
  22.  
  23.  
  24. /* If you are calling method from other(different) model you can use the following one line else you can skip it. */
  25. $this->setModel(JModelLegacy::getInstance('syllabus', 'compoModel'));
  26. $model = $this->getModel('syllabus');
  27. $this->courses= $model->getcourses($data);
  28. }
  29. parent::display($tpl);
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement