Welcome Guest, Not a member yet? Register   Sign In
some ci questions
#2

[eluser]Nima A.[/eluser]
Hi,
1. first, I don't think using native php coding is a good approach for views (esp. for control structures such as for,while, etc ... ), in these cases, php alternate syntax performs a bit faster and it's more readable ,
2. you can retrieve data from your model and then pass it to view using controller
3. design and implement a model for your news that represents it's structure and call it in every method of every controller that you want, I don't think setting and creating queries in controller is a good approach !


Messages In This Thread
some ci questions - by El Forum - 07-01-2008, 10:20 AM
some ci questions - by El Forum - 07-01-2008, 12:57 PM
some ci questions - by El Forum - 07-01-2008, 01:15 PM



Theme © iAndrew 2016 - Forum software by © MyBB