i m creating a view of a database in php smarty, i m confused where shoud i create that view , i just create view in a class's constructor function, now i have the problem that i m using function of that class through object of that class.... so is it true that each time that view is constructed???
example:
cityview.php
class city { function city(){ "mysql query of creating view "} function allcity() { here is some query on view } function callcity() { here is some query on view } }
now in index.php i call
$objcity=new city(); $objcity->allcity(); $objcity->callcity();
Now my question is-
Blockquote
is that VIEW is created each time when i call any function of that class??
Blockquote
if yes then tell me the way ..how do i create that view