[SOLVED]object not found - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: [SOLVED]object not found (/showthread.php?tid=36423) Pages:
1
2
|
[SOLVED]object not found - El Forum - 12-01-2010 [eluser]diasansley[/eluser] i am using the following controller but when i say localhost/codeigniter/pdf_test it says object cannot be found. Code: <?php Thanks Rgds [SOLVED]object not found - El Forum - 12-01-2010 [eluser]InsiteFX[/eluser] localhost/codeigniter/pdf_test/tcpdf Or change the function name from tcpdf to index. InsiteFX [SOLVED]object not found - El Forum - 12-01-2010 [eluser]diasansley[/eluser] is the program correct coz it still returns object not found!@ [SOLVED]object not found - El Forum - 12-01-2010 [eluser]smilie[/eluser] Have you removed index.php yourself from the url? Default installation URL would be: localhost/codeigniter/index.php/pdf_test/tcpdf Also, post exact error please. Cheers, Smilie [SOLVED]object not found - El Forum - 12-01-2010 [eluser]diasansley[/eluser] thanks ur the best!!!! it workd now!! using the same function above how can i read from the database and write it to the pdf? Thanks [SOLVED]object not found - El Forum - 12-01-2010 [eluser]smilie[/eluser] Hi, Here is the basis, you make it work :-) Code: class pdf_test extends Controller { your_model.php (which should be in directory models :-)) Code: Class Your_model extends Model [SOLVED]object not found - El Forum - 12-01-2010 [eluser]diasansley[/eluser] made changes and again : Quote:A PHP Error was encounteredthanks [SOLVED]object not found - El Forum - 12-01-2010 [eluser]smilie[/eluser] Hi, Can you post line 23 of your_model.php. Cheers, Smilie [SOLVED]object not found - El Forum - 12-01-2010 [eluser]diasansley[/eluser] Here is my model code Code: <?php [SOLVED]object not found - El Forum - 12-01-2010 [eluser]smilie[/eluser] Line 23 is end of your model file. Can you check you do not have spaces or empty lines in that file? Cheers, Smilie |