page_Type controllers within theme that belongs to a package

Permalink
I have a package that installs a theme, a block, a single page, etc.

Within the theme i have custom page_types.

I need to load a controller for the custom page type so i have

crete this folder structure

package_name/controllers/page_types/custom_page_type_name

and then extend the class like this <page_type_name>PageTypeController extends Controller

But it is not loading the controller, i get a 404 on the funciton within the controller and also i have an echo statement on the view fucntion which isnt displaying.

How do i call the page_type controller within a package when the custom page type is within a theme.?

 
navteca replied on at Permalink Best Answer Reply
I found the solution myself.

I doesnt look like you can have a page_type within a theme at least i was able to do it