On Feb 5, 9:32 am, hoss7 <[email protected]> wrote: > i have this jcart (http://conceptlogic.com/jcart/)(ajaxshopping cart) > but i am new in cakephp and want use this cart in cakephp > > i have 3 questions? > > 1.how can i edit this javascript file and edit path of file?: > for example: > var JCART = (function() { > > // This script sends Ajax requests to config-loader.php and > relay.php using the path below > // We assume these files are in the 'jcart' directory, one > level > above this script > // Edit as needed if using a different directory structure > var path = 'jcart', > container = $('#jcart'), > token = $('[name=jcartToken]').val(), > tip = $('#jcart-tooltip'); > > var config = (function() { > var config = null; > $.ajax({ > url: path + '/config-loader.php', > data: { > "ajax": "true" > }, > dataType: 'json', > async: false, > success: function(response) { > config = response; > }, > error: function() { > alert('Ajax error: Edit the path in > jcart.js to fix.'); > } > }); > return config; > }()); > > 2.how can i edit some line in jcart.php?: > > for example i have $_SESSION['jcartToken'] and > $_POST['jcartUpdate'],how can i menage this line with cakephp > > 3. how can i import this file in some page in cakephp?
1 with any editor 2 with any editor 3 see the book on app import vendor OR show what you've already tried. AD -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
