To clarify it a bit, i have a one page site and an array which contains all the necessary strings and urls for the page, basically the configuration.
What i now would like to have is a backend for the customer to comfortably edit the content of this array without having to open the php file in an editor.
The array looks sth like this:
Because couch is only parsing the output of a script i can't add the tags inside of the php array.
A workaround solution would be to store the php file as text, let couch parse it, then read it again, add the php tags and save it as a php file, but i was wondering if there was better way to achieve the same result.
Is it possible to load couch in php and then just 'ask' for the content with the id 'xxx' for example?
Cheers,
Lars
What i now would like to have is a backend for the customer to comfortably edit the content of this array without having to open the php file in an editor.
The array looks sth like this:
- Code: Select all
$demodata = array(
"en" => array(
"general" => array(
"partner" => "Proud partner of"
),
"content" => array(
"about" => array(
"navtitle" => "about",
"title" => "about",
"text" => "ehu tnoehaotn suheoueosuhstunh sntetunh sntuhus stenhu sntoehuseno uhetnsuh sntuhsu nun stnuhus usnth unsooesnt ",
"image" => "assets/img/back2.jpg",
"tabs" => array(
"pubrel" => array(
"title" => "Public Relation",
"text0" => "1 ouh nuneu nuhnu nth snontu hsnunuahtuao",
"text1" => "1 ouh nuneu nuhnu nth snontu hsnunuahtuao"
),
),
),
)
Because couch is only parsing the output of a script i can't add the tags inside of the php array.
A workaround solution would be to store the php file as text, let couch parse it, then read it again, add the php tags and save it as a php file, but i was wondering if there was better way to achieve the same result.
Is it possible to load couch in php and then just 'ask' for the content with the id 'xxx' for example?
Cheers,
Lars