Focus on UI/UX

Save Money

Team Management

The team wonât engage on the first line of code, Overlapping end when MVC become ready.

Save your time and effort.

Changing on Structure make a Pain in a** .. Head!
Making your Component and Changing will be Faster,
No Headache when client change structure.

We will Make Routine steps for you,so you Focus on Details.

/*** @version 1.0.0* @package com_feedback* @author Me (Kill me)* @copyright /TODO : oh i don't have time for this* @license GNU General Public License version 2 or later; see LICENSE.txt*/defined('_JEXEC')or die;jimport('joomla.application.component.modellist');/*** Methods supporting a list of Feedback records.** @since 1.6*/classFeedbackModelFeedsextendsJModelList{/*** Constructor.** @paramarray $config An optional associative array of configuration settings.** @see JController* @since 1.6*/publicfunction__construct($config=array()){if(empty($config['filter_fields'])){$config['filter_fields']=array('id','a.`id`','state','a.`state`','ordering','a.`ordering`','created_by','a.`created_by`','modified_by','a.`modified_by`','created_time','a.`created_time`','feed','a.`feed`','replay','a.`replay`');}parent::__construct($config);}/*** Method to auto-populate the model state.** Note. Calling getState in this method will result in recursion.** @paramstring $ordering Elements order* @paramstring $direction Order direction** @returnvoid** @throwsException*/protectedfunctionpopulateState($ordering=null,$direction=null){/ Initialise variables.$app=\JFactory::getApplication('administrator');/ Load the filter state.$search=$app->getUserStateFromRequest($this->context.'.filter.search','filter_search');$this->setState('filter.search',$search);/ Load the parameters.$params=\JComponentHelper::getParams('com_feedback');$this->setState('params',$params);/ List state information.parent::populateState('a.id','asc');}/*** Method to get a store id based on model configuration state.** This is necessary because the model is used by the component and* different modules that might need different sets of data or different* ordering requirements.** @paramstring $id A prefix for the store id.** @returnstring A store id.** @since 1.6*/protectedfunctiongetStoreId($id=''){/ Compile the store id.$id.=':'.$this->getState('filter.search');$id.=':'.$this->getState('filter.state');returnparent::getStoreId($id);}/*** Build an SQL query to load the list data.** @returnJDatabaseQuery** @since 1.6*/protectedfunctiongetListQuery(){/ Create a new query object.$db=$this->getDbo();$query=$db->getQuery(true);/ Select the required fields from the table.$query->select($this->getState('list.select','DISTINCT a.*'));$query->from('`#__feedback_feed` AS a');/ Join over the users for the checked out user$query->select("uc.name AS editor");$query->join("LEFT","#__users AS uc ON uc.id=a.checked_out");/Filtering created_by$filter_created_by=$this->state->get("filter.created_by");if($filter_created_by){$query->where("a.`created_by` = '".$db->escape($filter_created_by)."'");}/ Add the list ordering clause.$orderCol=$this->state->get('list.ordering');$orderDirn=$this->state->get('list.direction');if($orderCol&&$orderDirn){$query->order($db->escape($orderCol.''.$orderDirn));}return$query;}/*** Get an array of data items** @returnmixed Array of data items on success, false on failure.*/publicfunctiongetItems(){$items=parent::getItems();foreach($itemsas$oneItem){}return$items;}}

Learn How MVC Worked

We Found that Our visitors are getting better Knowing Joomla after Using JCC to created there Components.

Design your Idea and build your component, Read the code and learn how MVC works .