Board index   FAQ   Search  
Register  Login
Board index PHP PHP General

routing to class?

General discussions related to php

Moderators: macek, egami, gesf

routing to class?

Postby adahox » Sat Jul 13, 2013 12:55 pm

hello, its me more one.

i want everytime to someone enter o my site, the php rout to the class index{}


let me explain. in the project. the pagens will be class.

class index{}
class about{}
class portifolio{}

and i want the php redirect to class index{} all time. the archive name will be named the same name of class.

index.php
about.php
portifolio.php
adahox
New php-forum User
New php-forum User
 
Posts: 4
Joined: Thu Jul 11, 2013 7:07 pm

Re: routing to class?

Postby Strider64 » Sun Jul 14, 2013 4:32 am

I'm trying not to sound rude, but what you are asking makes no sense and I don't understand what you're trying to convey.

A class may contain its own constants, variables (called "properties"), and functions (called "methods").

A class is just another coding tool.
User avatar
Strider64
New php-forum User
New php-forum User
 
Posts: 44
Joined: Sat Mar 23, 2013 8:24 am


Return to PHP General

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron