About All Members Count? |
@Qortizon,
You could create a model that gets the total number of members registered in Codeigniter and pass the result to the controller which passes it to the view. You could also, get the total number of members when a user first logs into the system and save the value in a session variable and call it as necessary in a controller which would make it available in any view.
If you are talking about the number of registered members on the forum, that is shown in the "forum statistics" panel down the left side of the "Home" (portal) navbar link on the forum. Your intent is not clear from your question.
There are good arguments for that being in a model (retrieving data), or in a library (since you might actually model the data or data source), and a weaker one for having it in a controller (retrieving and processing the contents of a page), but I can think of no good arguments for retrieving such data in a view.
Thansk for your answers.
I'm new in codeigniter. Model: Code: public function get(){ ------------------------- Controller: Code: public function admindash(){ I can't show the view. How can I do it? |
Welcome Guest, Not a member yet? Register Sign In |