Note that there are some explanatory texts on larger screens.

plurals
  1. POhow to publish newly created component on front end in joomla 2.5
    primarykey
    data
    text
    <p>i had created a new component for first time. its back end functions are all working well. now i want to show that in front end. i created a new menu item and selects this new component but on front end when i clicked on my menu Error 500 with <code>View not found [name, type, prefix]: tenders, html, tendersView</code>. my site folder structure is:</p> <pre><code>joomla |components |com_tenders |controller.php |tenders.php |models |tenders.php |views |tenders |view.html.php |tmpl |default.php </code></pre> <p><strong>com_tenders/controller.php</strong></p> <pre><code>&lt;?php defined('_JEXEC') or die('Restricted access'); jimport('joomla.application.component.controller'); class TendersController extends JController { public function display() { $input = JFactory::getApplication()-&gt;input; $input-&gt;set('view', $input-&gt;getCmd('view', 'Tenders')); parent::display(); } } ?&gt; </code></pre> <p><strong>views/tenders/view.html.php</strong></p> <pre><code>&lt;?php defined('_JEXEC') or die('Restricted access'); jimport('joomla.application.component.view'); class TendersViewTenders extends JView { function display($tpl = null) { $model =&amp; $this-&gt;getModel(); $msg = $model-&gt;getMsg(); $this-&gt;assignRef('msg',$msg ); parent::display($tpl); } } ?&gt; </code></pre> <p><strong>models/tenders.php</strong></p> <pre><code>&lt;?php defined('_JEXEC') or die('Restricted access'); jimport('joomla.application.component.modelitem'); class TendersModelTenders extends JModelItem { public function getMsg() { $db =&amp; JFactory::getDBO(); $query = "SELECT * FROM #__tenders"; $db-&gt;setQuery( $query ); $msg = $db-&gt;loadResult(); return $msg; } } ?&gt; </code></pre> <p>please let me know if need any clarifications.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload