I need to access different tables from one controller and I am not using a 
model, is this possible? 

What I am trying to do:
I have a controller named Websitemodules, which has a function called 
name() which gets the 3rd part of url. So if you go to 
/websitemodules/name/blog/ the name() function gets blog. That 3rd var can 
change to anything, blog or products or news etc, they are all modules. 
That's why I put the name() function in there because I need to dynamically 
change the page depending on which module someone wants to access. I know 
this is not the usual way but I need to do it this way because of the 
product we are developing. Every 3rd url var (the module you want to 
access) has a own table like module_blog or module_product, so I need to 
change that part in the name() function depending on which module you want 
to access (the 3rd url var).

I hope you understand what I want to do and I hope it is possible within 
CakePHP. I think it's possible because I could get it to work with just 
PHP, but I don't know how to achieve the same with 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
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to