![]() |
convert to CI - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: convert to CI (/showthread.php?tid=65184) Pages:
1
2
|
RE: convert to CI - PaulD - 05-13-2016 Read the documentation - Please http://www.codeigniter.com/user_guide/tutorial/static_pages.html#static-pages RE: convert to CI - davy_yg - 05-13-2016 I have read the documentation and still do not understand which to change. I try this: controllers/Welcome.php PHP Code: public function index() 404 Page Not Found The page you requested was not found. If you click the navigation bar. RE: convert to CI - PaulD - 05-13-2016 Assuming you are trying to fix this link PHP Code: <?php echo site_url('pages'); ?> The link to the docs I posted for you, explains Code: For example, when a call is made to: Your controller is 'Welcome', your method is 'pages', so your link is PHP Code: <?php echo site_url('welcome/pages'); ?> However, if that is your entire Welcome.php you need to declare the class as the same as the filename, so in you case it would be something like PHP Code: <?php This is all clearly and thoroughly explained in the documentation. Hope that helps, Paul. RE: convert to CI - davy_yg - 05-13-2016 Thanks for help. After revising the codes, if I click the navigation link: http://127.0.0.1/backend_CI/index.php/cpages/contents.php Instead of http://127.0.0.1/backend_CI/index.php/cpages/contents I wonder why? navigation.php PHP Code: <li class="active"><a href="index.php"><i class="icon icon-home"></i> <span>Administrator</span></a></li> controllers/cpages.php PHP Code: public function pages() { $this->load->view('pages'); } RE: convert to CI - davy_yg - 06-08-2016 How to fix this error? I attached the database in the attachment (giondacms). Code: [b]Fatal error[/b]: Call to undefined method Cpages::_example_output() in [b]C:\Program Files (x86)\EasyPHP-Devserver-16.1\eds-www\CompanyProfileCI\application\controllers\cpages.php[/b] on line [b]101[/b] controllers/cpages.php PHP Code: public function slideshows() { $this->load->view('slideshows'); } views/slideshow_Images.php PHP Code: <div class="row-fluid"> |