[Pagination Return 404 Page Not Found Except 1st Page] Plz help...stucked for about 5 hours already....lol |
[eluser][email protected][/eluser]
config/config.php Code: $config['base_url'] = 'http://10.9.44.118/user_files/chenwei_huang/analyst/'; config/routes.php Code: $route['libs/jquery/(:any)']='../libraries/jquery/$1'; controller/report.php Code: <?php view/report/index.php Code: <div id="container"> I tried to follow these tutorials simi-outdated, but the only one available lol read about pages such as : http://ellislab.com/codeigniter/user-gui...elper.html http://ellislab.com/codeigniter/user-gui...ation.html But still, I can not make it work. Please help, I am so darn desperate..............
[eluser][email protected][/eluser]
[quote author="jairoh_" date="1370565886"]you can refer to this thread http://ellislab.com/forums/viewthread/235744/ [/quote] Hi, Thanks Jairoh, but your solution mentioning your method is not using active record. Could you elaborate what is the good about not using it? Also, in my case, what I need to change in order to cope with your binding method? Thank you
[eluser]jairoh_[/eluser]
the problem with active records is you get spaghetti codes in some like 20+ lines of query codes in complex systems. because if your main aim is just to protect from sql injection, query binding also escape special characters. go at the bottom: http://ellislab.com/codeigniter/user-gui...eries.html this is what i use.
[eluser][email protected][/eluser]
[quote author="jairoh_" date="1370573303"]the problem with active records is you get spaghetti codes in some like 20+ lines of query codes in complex systems. because if your main aim is just to protect from sql injection, query binding also escape special characters. go at the bottom: http://ellislab.com/codeigniter/user-gui...eries.html this is what i use.[/quote] Thanks the info! \ Thanks!
[eluser][email protected][/eluser]
Resolution: FINALLY I FOUND IT!!!!!!!! ON MY GOD!!!!!!!!!!!!!!!!!!!!!!! ITS SO SIMPLE!!!!!!!!!!!!! lol Code: $config['base_url']= "http://10.9.44.118/user_files/chenwei_huang/analyst/index.php/report/index";//the LAST INDEX IS THE KEY!!!!!!!!!!!!!!!!!!!!!!! because that is the actual page where directed to!!!!!!!!!!!! add the index after the report... thats all you need! because that is the page where actualy displayed according to my routes! Share my joy and hopefully it helps lots other people save their time to developer a wonderful web app Best and Peace, |
Welcome Guest, Not a member yet? Register Sign In |