Hello friends!
I hope you are having a good time!
I don´t know if this query is directly related to Trongate, but it's the first time it happens to me and, I can´t find a way to solve it.
I have this data comming from (About_us Module)
function _draw_home_display() {
$data['about'] = $this->model->get_one_where('id', 1, 'about_us');
$this->view('home_display', $data);
}
The view has for example this lines:
h2 : $about->about_title
And it is being displayed in the Welcome module through:
Modules run _draw_home_display
The problem is that it was not showing the styles, because data is being showed as
" Hello World "
" GO There "
I've tried: str_replace but nothing happens
Any Ideas?
Thank you in advance
Cheers
Claudia
Database data is being displayed with Double quotes in views (html) and that, does not allow styles to be displayed.
4 years ago
4 years ago
#1
4 years ago
#2
Hi Claudia,
It's always a pleasure to hear from you, and I hope I can help you out.
Can you confirm you are getting data back from your table 'about_us' and other data?
Now this part I'm not so sure about:
Can you please explain a little more clearly?
It's always a pleasure to hear from you, and I hope I can help you out.
Can you confirm you are getting data back from your table 'about_us' and other data?
Now this part I'm not so sure about:
Can you please explain a little more clearly?
4 years ago
#3
Hello,
Simon is right. json($about_us, true) will help to understand the data coming from your tables.
Also, a better example of your view file. You do not have a closing tag in your example.
Dan
Simon is right. json($about_us, true) will help to understand the data coming from your tables.
Also, a better example of your view file. You do not have a closing tag in your example.
Dan
4 years ago
#4
Hello Guys!
Thanks for your concern and I must apologize because I´ve realized I had to take the data from the Welcome module and now it is fine.
Thank you Simon!
You are always the best.
Have a Nice day!
Cheers
Claudia
Thanks for your concern and I must apologize because I´ve realized I had to take the data from the Welcome module and now it is fine.
Thank you Simon!
You are always the best.
Have a Nice day!
Cheers
Claudia