Code: Select all
&Hmmm this is a tricky one
Im building a content management system, which is now working in php5. However Im adding it to a site im doing where the server runs php 4.3.8.
I'll try and explain this as best I can.
I have a page object, a block object and and info object.
pages hold blocks which hold info (text and stuff).
inside the block object I can tell all its info objects to setEdit
Code: Select all
<?php
class block (
...
function editContent(){
echo('im telling the info''s ted');
foreach($this->infos as $info){
$info->setEdit();}
}
...)
?>Code: Select all
<?php
class info(
...
function setEdit(){
...
$this->edit = true;
...
}
?>as I said this all works fine with php5.
any ideas?
Thanks
Contributers get free access to the completed product!!
Code: Select all
&