Welcome Guest, Not a member yet? Register   Sign In
My first CodeIgniter website - http://www.banglagreetings.com
#1

[eluser]huzzi[/eluser]
I have completed my first codeingiter website BanglaGreetings.com

Let me know what you guys think.

Thanks
#2

[eluser]asim111[/eluser]
Hi,
It's a really good attempt.

i found few bugs...
Firstly: visit this URL

banglagreetings.com/category/eid_greetingXXXXX

Result:

Code:
A PHP Error was encountered
Severity: Notice
Message: Trying to get property of non-object
Filename: models/category_model.php
Line Number: 41

need to follow better exception handling technique...

Secondly: visit this URL

banglagreetings.com/category/eid_greetings/xxxxx


Code:
Error Number: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'xxxxx,9' at line 1

SELECT a.id,a.card_type, a.title,cc.published,cc.title as category, CONCAT(cc.folder,'/thumbs/',a.thumb) as imagepath FROM categories AS cc LEFT JOIN ecards AS a ON a.catid = cc.id WHERE a.catid='2' AND a.published =1 AND cc.published =1 ORDER BY id DESC LIMIT xxxxx,9

try something like this:
in config/routes.php
Code:
$route['category/:any/(:num)'] = "category/$1/$2";

And in category.php controller
Code:
$this->uri->segment(2,0);



Actually i am new CI user as well. i don't what is the proper solution for this. i going to launch my first CI based website very soon...
demo site is ready: autodealer.netbakers.com



Kind Regards
Asim Tauqeer

netbakers.com
#3

[eluser]huzzi[/eluser]
Asim,

Thanks for your feedback and pointing out the errors.. i'll get them fixed ASAP.

Thanks again.




Theme © iAndrew 2016 - Forum software by © MyBB