Welcome Guest, Not a member yet? Register   Sign In
Little independent applications
#8

[eluser]breaddes[/eluser]
[quote author="slowgary" date="1285709787"]
Code:
$this->load->library('my_widget_1');

$this->load->view('header');
$this->load->view('home');
$this->my_widget_1->view();
$this->load->view('footer');
[/quote]

Thank you for your great examples!

Let's say my controller where all this is happening is the default CI welcome controller. My url would look like:
Code:
http://localhost/welcome

My widget has a link in it to load another view of the widget. How would you call that other widget view? I could do:

Code:
http://localhost/welcome/methodToChangeWidgetView

But that would not be reusable. The widget would point to a certain method in a certain controller. So it should actually call something like:

Code:
http://localhost/widget/methodToChangeWidgetView

The problem with that is I am loosing my welcome page. I am just out of it.

Can you see the trouble?


Messages In This Thread
Little independent applications - by El Forum - 09-27-2010, 10:05 AM
Little independent applications - by El Forum - 09-27-2010, 12:05 PM
Little independent applications - by El Forum - 09-27-2010, 02:39 PM
Little independent applications - by El Forum - 09-28-2010, 07:07 AM
Little independent applications - by El Forum - 09-28-2010, 10:21 AM
Little independent applications - by El Forum - 09-28-2010, 10:36 AM
Little independent applications - by El Forum - 09-28-2010, 10:52 AM
Little independent applications - by El Forum - 09-28-2010, 11:42 AM
Little independent applications - by El Forum - 09-28-2010, 12:51 PM
Little independent applications - by El Forum - 09-29-2010, 02:08 AM



Theme © iAndrew 2016 - Forum software by © MyBB