black_coco Posted June 11, 2013 Share Posted June 11, 2013 ici un controller <?php class ProductControllerCore extends FrontController { public function setMedia() { parent::setMedia(); // Add extra ressources // CSS $this->addCSS(...) $this->addJS(array(...)); } // Extra methods public function renderCart() { echo '<h2>HELLO</h2>'; } } comment appeler renderCart() par ajax. $.post('./product.php', {'action':'renderCart'}, function(data) { alert(data); }); ne marche pas. marci Link to comment Share on other sites More sharing options...
Oron Posted June 11, 2013 Share Posted June 11, 2013 Bonjour Topic déplacé dans forum développement meilleur chance d'avoir des réponses valides. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now