Codeigniter + smarty problem with pass variable template to model |
I explain my problem.
My model: PHP Code: public function info_site($name) { My controller: PHP Code: public function information() { view: Code: {$info.site_name} I would like the 'site_name' of view was the variable 'name' of the controller and the model. In this way the result of the variable in the template should be the value of the name. Small example: In my view I write Code: {$info.site_name} site_name is passed to the controller and in turn the model In this way the sql would PHP Code: public function info_site(site_name) { and as a result it should give me the value of the consideration that will be printed. There is a solution to this my problem? |
Messages In This Thread |
Codeigniter + smarty problem with pass variable template to model - by StratoKyke - 07-06-2015, 08:02 AM
RE: Codeigniter + smarty problem with pass variable template to model - by mwhitney - 07-06-2015, 09:46 AM
RE: Codeigniter + smarty problem with pass variable template to model - by StratoKyke - 07-06-2015, 09:48 AM
RE: Codeigniter + smarty problem with pass variable template to model - by StratoKyke - 07-06-2015, 10:25 AM
|