How to create global variables in CakePHP?

The majority of the developers, develop skepticism in which, what’s the correct place/Page in which they should declare the constant variable in cakephp.

Previous going to variable declaration, we must consider that any of us will work over a MVC platform and also we should not break the rules of MVC.

There are many place in which we are able to establish the particular constant variables in cakephp, these include practices

METHOD-1
Get a file referred to as core.php inside app/config/ folder involving cakephp setup listing.
Presently there you will need to open the particular core.php.
app/config/core.php
For you to declare a constant global variable in cakephp, core.php only create following synta

– Read the full Blog at: How to create global variables in CakePHP?

You can check more informative blogs and tutorials at java development blogs section and can also browse the java questions and answers forum for posting and viewing latest questions on Java development.

Apart from this, If you have any Php issue, you can post it at Php developer forum.

Advertisements
How to create global variables in CakePHP?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s