use some source code with cakephp(this is my problem in 1 year)
i have this jcart (http://conceptlogic.com/jcart/)(ajax shopping 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?
--
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
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home