routing to class?

General discussions related to php

Moderators: macek, egami, gesf

New php-forum User
New php-forum User
Posts: 4
Joined: Thu Jul 11, 2013 7:07 pm

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.


User avatar
New php-forum User
New php-forum User
Posts: 182
Joined: Sat Mar 23, 2013 8:24 am

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.

Return to “PHP General”

Who is online

Users browsing this forum: No registered users and 4 guests