Here is my dir structure and code.
Something is not working for me here:
#########################################
#############CONTROLLER###################
app
-- controllers
---- products_controller.php
<?php
class ProductsController extends AppController {
var $name = "Products";
var $helpers = array('Html');
function index() {
$this->set('products', $this->Product->find('all'));
}
}
?>
#########################################
##################VIEW###################
app
-- views
---- users
------ products (controller name)
-------- index.ctp
###########################################
##################PROBLEM###################
The controller is NOT being detected from the view file?
Does this help clarify?
--
View this message in context: http://n2.nabble.com/controller-not-being-detected-when-view-index-file-is-in-sub-dir-of--views-tp2536859p2539403.html
Sent from the CakePHP mailing list archive at Nabble.com.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment