Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- view.html.php
- view.raw.php
- view.pdf.php
- view.html.php
- <?php
- //-- No direct access
- defined('_JEXEC') || die('=;)');
- class compoViewDashboard extends JViewLegacy {
- public function display($tpl = null) {
- if (JRequest::getVar('layout') == 'somelayout') {
- $jinput = JFactory::getApplication()->input;
- $data = $jinput->post->get('xyz', 'null', 'INT');
- /* If you are calling method from other(different) model you can use the following one line else you can skip it. */
- $this->setModel(JModelLegacy::getInstance('syllabus', 'compoModel'));
- $model = $this->getModel('syllabus');
- $this->courses= $model->getcourses($data);
- }
- parent::display($tpl);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement