Hi there,
i've been doing an app using the sample app you provide (textbook) and i have some issues to understand the behavior of the sequence of the pages.
I will explain.
My app will only work in the dashboard (not in profile) with some links in the sidebar....that will show some stuff (forms and graphics) in the main page (canvas).
In a MVC model type...the first page to be evoked is the CONTROLLER which is responsible to route to the correct VIEW which uses some MODEL right?
In easy social...we have...Controller, Views, Models , Themes and WIDGETS which makes me confused.
In the sample you provide (textbook app) the controller does NOTHING so i think the ENTRY POINT should be the WIDGET media/com_easysocial/apps/user/MYAPP/widgets/dashboard/view.html.php
since i used this tag in the XML file - <widget>true</widget>
I'm using the sidebarTop function which then calls
$theme->output( 'themes:/apps/user/MYAPP/dashboard/default' );
which i think it's calling the page in
media/com_easysocial/apps/user/MYAPP/themes/default/dashboard/default.php
Where does the VIEW goes in here? Im not using the VIEW and this is working...im able to see the links in the side bar of the dashboard.
Another thing. The links im showing in the side bar are created with
but everytime i click the links...i get this error:
Warning: include(PATH_REMOVED_BY_ME/media/com_easysocial/apps/user/MYAPP/themes/default/.php): failed to open stream: No such file or directory in PATH_REMOVED_BY_ME/administrator/components/com_easysocial/includes/template/template.php on line 290
the url which is called is
PATH_REMOVED_BY_ME/community/apps/canvas/MYAPP/user/917-admin
My question is...with this url, which page is called? The VIEW , THEMES or other?
Im really confused about this one..
Plz help me on this..since i've lost allready too much days on this.
i've been doing an app using the sample app you provide (textbook) and i have some issues to understand the behavior of the sequence of the pages.
I will explain.
My app will only work in the dashboard (not in profile) with some links in the sidebar....that will show some stuff (forms and graphics) in the main page (canvas).
In a MVC model type...the first page to be evoked is the CONTROLLER which is responsible to route to the correct VIEW which uses some MODEL right?
In easy social...we have...Controller, Views, Models , Themes and WIDGETS which makes me confused.
In the sample you provide (textbook app) the controller does NOTHING so i think the ENTRY POINT should be the WIDGET media/com_easysocial/apps/user/MYAPP/widgets/dashboard/view.html.php
since i used this tag in the XML file - <widget>true</widget>
I'm using the sidebarTop function which then calls
$theme->output( 'themes:/apps/user/MYAPP/dashboard/default' );
which i think it's calling the page in
media/com_easysocial/apps/user/MYAPP/themes/default/dashboard/default.php
Where does the VIEW goes in here? Im not using the VIEW and this is working...im able to see the links in the side bar of the dashboard.
Another thing. The links im showing in the side bar are created with
<?php echo FRoute::apps( array( 'layout' => 'canvas' , 'id' => $app->alias , 'uid' => $user->getAlias() , 'type' => SOCIAL_TYPE_USER ) ); ?>"
but everytime i click the links...i get this error:
Warning: include(PATH_REMOVED_BY_ME/media/com_easysocial/apps/user/MYAPP/themes/default/.php): failed to open stream: No such file or directory in PATH_REMOVED_BY_ME/administrator/components/com_easysocial/includes/template/template.php on line 290
the url which is called is
PATH_REMOVED_BY_ME/community/apps/canvas/MYAPP/user/917-admin
My question is...with this url, which page is called? The VIEW , THEMES or other?
Im really confused about this one..
Plz help me on this..since i've lost allready too much days on this.