no such page at simple pages example
Permalink 1 user found helpful
I've tryed to use the simple pages example shown athttp://www.concrete5.org/documentation/how-tos/shopping_cart_tutori... but when I submit the "add a product" form I get "no such page" at URL /index.php/cart/add/. I'm using Concrete 5.4.0 and I wonder if something changed
ah... fixed. I've used /simple_pages/ and moving it to the root controllers and models folders fixed this
Hi Andrew,
I have the same problem, I copied the cart code from the single pages how to - the view cart.php is in single_pages(non-root concrete folder) the cart.php controller is in the concrete root controllers folder and the cart.php model in the root models folder.
The error I get is page not found and the url looks like thishttp://localhost/concrete/index.php/cart<?=$this->action(...
Thanks,
Emir
I have the same problem, I copied the cart code from the single pages how to - the view cart.php is in single_pages(non-root concrete folder) the cart.php controller is in the concrete root controllers folder and the cart.php model in the root models folder.
The error I get is page not found and the url looks like thishttp://localhost/concrete/index.php/cart<?=$this->action(...
Thanks,
Emir
Solved. The issue were the short tags so I replaced <? with <?php and <?= with <?php echo and put the closing tags in the appropriate places
What files and directories do you have in your local single_pages/ and controllers/ directories? Have you added the "/cart" single page through the Dashboard > Pages & Themes > Single Pages page in the dashboard?