namratha
namratha

Reputation: 672

load view inside view in codeigniter

Actually m using ahref with onclick function inside my view

<a href="<? echo base_url();?>index.php/manager/engineer" onclick=window.open("<? echo base_url();?>index.php/manager/engineer") >

it is redirecting to url correctly

http://localhost:8888/CI/index.php/manager/engineer

but in that page m getting error as

The page you requested was not found.

even though i have created engineers view file

Anyone helping me to find the solution will be needfull

Upvotes: 0

Views: 903

Answers (1)

Mojbala
Mojbala

Reputation: 115

the CI router just run external links of controller classes and you can't load views externally. instead on you can load views internally on your controllers and now open the controller address via your browsers. see more : http://ellislab.com/codeigniter/user-guide/general/views.html

Upvotes: 1

Related Questions