Tag Archives: Php Functions

Calling PHP functions from other files

To get something that’s soooooo handy you’d think it becomes easier to find information on this, but I explored google and arrived up empty. How can i call PHP capabilities from other files As an example, if I have a very file called selection. php and any function called title(), how can i call title() within another file, claim index. php We’ve tried in list. php the following: Code: comprise ‘library. php’; Title(" stringtobepassed" ); And it says that the function title can be undefined. Well, title and Bill are two diverse functions The strategy you’ve mentioned on top of works perfectly.

Posted in Web Design | Tagged , , , , , | Leave a comment

CMS concept turn…

My own Content Management System has taken a big turn. After looking through the book Coming up with the Obvious, that we found quite enlightening, I chose to drop superficial techniques, and reduce it for the bare basics. The objective of this CMS can be kinda different. It’s directed at developers to easily attach a CMS to somewhat of a design. It’s main purpose will probably be for my private projects, of lessons, but it’ll be free. A huge makeover was about the menu system. I boiled it as a result of simple " catagories" depending on the pages independantly, and developers simply attach PHP functions in place of those menus. There are still things, though. . Considering that menus are made, they only output something such as this: HTML: < ul id=" menuID" class=" customclass" > < li id=" menuID-1" > < your href=" url/" > Palate Item 1< /a> < /li> < li id=" menuID-2" > < your href=" other/" > Palate Item 2< /a> < /li> < /ul> This makes the CMS form of a purist. Additional attributes is often applied by the actual designer, but certainly not the structure once more. I know a number of … Continue reading

Posted in Web Design | Tagged , , , , , , , , , , , , , , , , , , , | Leave a comment