Blocks

Adding Php Script in block??

 
 
Picture of Deepak S
Adding Php Script in block??
 
Hi All

I have to add PHP script in "Add HTML/User defined block" how can we achieve this.....
Since our normal Editor wont support PHP how can we add php code????


Thanks
Deepak
 
Average of ratings: -
Picture of David Perry
Re: Adding Php Script in block??
Group Particularly helpful MoodlersGroup Testers
Hi Deepak

When I've wanted to do this, I've put the PHP in a separate file on the moodle server then included it using an iframe tag. We customised our home page a bit using that trick (iframe in a label)

Dave
 
Average of ratings: -
Picture of Deepak S
Re: Adding Php Script in block??
 
Thanks David will try adding iframe in label.....


Thanks again....
 
Average of ratings: -
Picture of Deepak S
Re: Adding Php Script in block??
 
Thanks David It worked like a charm......

smile
 
Average of ratings: -