Skip to content

Instantly share code, notes, and snippets.

View sasivarnakumar's full-sized avatar
🎯
Focusing

Sasi varna kumar sasivarnakumar

🎯
Focusing
View GitHub Profile
@sasivarnakumar
sasivarnakumar / mycart.php
Created January 31, 2015 11:47
j2store v2.8.x add item to cart through a link (link for add to cart )
<?php
/*------------------------------------------------------------------------
# com_j2store - J2Store
# ------------------------------------------------------------------------
# author Ramesh Elamathi - Weblogicx India http://www.weblogicxindia.com
# copyright Copyright (C) 2014 - 19 Weblogicxindia.com. All Rights Reserved.
# @license - http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
# Websites: http://j2store.org
# Technical Support: Forum - http://j2store.org/forum/index.html
-------------------------------------------------------------------------*/
@sasivarnakumar
sasivarnakumar / controller.php
Created December 4, 2012 11:54
Its very simple, I just thought of sharing the code I have just wrote to upload multiple files, using a Joomla based Framework.
/*
And my function in the controller to upload the file is:
*/
function uploadAttachments($id){
$files = JRequest::getVar('attachment_file', array(), 'files', 'array');
$params = JComponentHelper::getParams('com_mycomp');
$sizes = $files['size'];
$attachSize= $params->get('AttachmentMaxSize');