| | #1 |
| Warrior Member Join Date: 2009
Posts: 22
Thanks: 0
Thanked 2 Times in 2 Posts
|
The query is: PHP Code: PHP Code: |
| |
| | #2 |
| Active Warrior Join Date: 2012
Posts: 97
Thanks: 12
Thanked 12 Times in 11 Posts
|
Seems your function has its own output. Data are selected from DB (by categories), then for each category (by subcategories) and echoed to the screen. What is your purpose? Are you trying to fit under your website design or you need some custom output? |
| |
| | #3 | |
| Warrior Member Join Date: 2009
Posts: 22
Thanks: 0
Thanked 2 Times in 2 Posts
|
The code I posted was the old version, I now need to convert this to object orientated passing it through the MVC framework. I need somebody to help me put the actual database code into the model and pull it back out in the view. | |
| |
| | #4 |
| Active Warrior Join Date: 2012
Posts: 97
Thanks: 12
Thanked 12 Times in 11 Posts
|
codeigniter is a very well documented framework, you will have to modify your code to their model. If you are trying to learn OOP, you'd rather consider setup your own classes. For CodeIgniter you will have to learn their framework before you move any further. |
| |
| | #5 |
| Warrior Member Join Date: 2009
Posts: 22
Thanks: 0
Thanked 2 Times in 2 Posts
|
That is what my OP was asking, help to convert my query into the CodeIgniter framework...
|
| |
|
| Bookmarks |
| Tags |
| converting, database, model, query |
| |