single page controller issue

Permalink
i have a dashboard page in a package.
called 'add_gallery' it is located in 'single_pages/dashboard/shadow_gallery/add_gallery.php'
its controller is located in 'controllers/dashboard/shadow_gallery/add_gallery.php'

in the controller i put on top this code:
class DashboardAddGalleryController extends Controller {

am i doing something wrong? its not working.

does anyone have any idea?

thanks a lot.

 
ronyDdeveloper replied on at Permalink Best Answer Reply
ronyDdeveloper
[Modified]
Follow this:

For Single Page:
single_pages/dashboard/shadow_gallery/add_gallery.php


For Controller
controllers/dashboard/shadow_gallery/add_gallery/controller.php


And the class should be:
class DashboardShadowGalleryAddGalleryController extends Controller {
   <!--/////Code goes here////-->
}


Hope it helps!

Rony
aryeh replied on at Permalink Reply
if i do that the page in the dashboard will be called View . i need it to be called 'Add Gallery' is there a way i can do that?
ronyDdeveloper replied on at Permalink Reply
ronyDdeveloper
Check the modified one above.
aryeh replied on at Permalink Reply
thanks a lot!