Creating a Joomla module

Files to create / Update Create  mod_breed.xml /modules/mod_breed/mod_breed.xml Create  mod_breed.php /modules/mod_breed/mod_breed.php Create  default.php /modules/mod_breed/tmpl/default.php Create  en-GB.mod_breed.ini  /language/en-GB/en-GB.mod_breed.ini Create  en-GB.mod_breed.sys.ini  /language/en-GB/en-GB.mod_breed.sys.ini   Files Details  /modules/mod_breed/mod_breed.xml <?xml version="1.0" encoding="utf-8"?> <extension type="module" version="3.1" client="site" method="upgrade"> <name>BREEDS</name> <author>Nohman Habib</author> <creationDate>July 2016</creationDate> <copyright>Copyright (C) 2005 -…

Implementing access control on breeds form and single record page.

Files to create / update update breedform.php    /site/models/breedform.php update default.php   /site/views/breed/tmpl/default.php update breed.php   /site/controllers/breed.php File Details /site/models/breedform.php public function delete($data) { $id = (!empty($data['id'])) ? $data['id'] : (int) $this->getState('breed.id');if (JFactory::getUser()->authorise('core.delete', 'com_breed.breed.' . $id) !== true) { throw new Exception(403,…

Adding access control to our component

Permissions are checked using JUser::authorise $user = JFactory::getUser(); $allow = $user->authorise(‘action name’, ‘component folder’); Permissions are assigned against user groups. Three permission states: No state – implied deny Allow Deny Deny always wins   Welcome back. I’m going to quickly go…

User groups and core permissions in Joomla

User Groups A user group in Joomla is an entity which has core permissions and users are assigned to it. It can contain a single or multiple users but all users will have same access level and can access same…

Access Control Lists in Joomla

ACL or Access Control List is a concept of limiting an access to a certain user and is being used in Joomla since version 1.6. If you are in a situation in which a single user or a group of…

Displaying a single record at frontend

Files to create / update update breed.php     /site/models/breed.php update breed.php     /site/controllers/breed.php create view.html.php   /site/views/breed/view.html.php create default.php   /site/views/breed/tmpl/default.php create default.xml   /site/views/breed/tmpl/default.xml File Details /site/models/breed.php <?php // No direct access. defined('_JEXEC') or die;jimport('joomla.application.component.modelitem'); jimport('joomla.event.dispatcher');use Joomla\Utilities\ArrayHelper;class BreedModelBreed extends JModelItem {…

Fetching and saving data to database at frontend of Joomla 3.x component

Files to create / update update breedform.php     /site/controllers/breedform.php update breedform.php     /site/models/breedform.php File Details site/controllers/breedform.php public function save() { JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));$app = JFactory::getApplication(); $model = $this->getModel('BreedForm', 'BreedModel');$data = JFactory::getApplication()->input->get('jform', array(), 'array');// Validate the posted data. $form =…

Creating a form at frontend for making entries to database

update breedform.xml  /site/models/forms/breedform.xml create filemultiple.php  /site/models/fields/filemultiple.php create view.html.php  /site/views/breedform/view.html.php create default.php  /site/views/breedform/tmpl/default.php create default.xml   /site/views/breedform/tmpl/default.xml update en-GB.com_breed.ini  /languages/site/en-GB/en-GB.com_breed.ini Files Details /site/models/forms/breedform.xml <?xml version="1.0" encoding="utf-8"?> <form> <fieldset><field name="id" type="text" default="0" label="COM_BREED_FORM_LBL_BREED_ID" readonly="true" class="readonly"

Enjoy best web development services at an affordable price. Looking forward to build a good relationship and serve you better...

ABOUT CODINGACE

My name is Nohman Habib and I am a web developer with over 10 years of experience, programming in Joomla, Wordpress, WHMCS, vTiger and Hybrid Apps. My plan to start codingace.com is to share my experience and expertise with others. Here my basic area of focus is to post tutorials primarily on Joomla development, HTML5, CSS3 and PHP.

Nohman Habib

CEO: codingace.com

Request a Quote