(SOLVED)Calling a const field of a Model from Controller? |
[eluser]juanvillegas[/eluser]
I don't know if this would be the ideal CI way, but im making some tests here! Let's say you've got model Code: class Test_model extends Model { and CONTROLLER Code: class Register extends Controller { How would i normally access const MYVALUE from the controller? I have tried a few but couldnt get it working. Thanks!
[eluser]danmontgomery[/eluser]
Code: Test_model::MYVALUE http://www.php.net/manual/en/language.oo...stants.php
|
Welcome Guest, Not a member yet? Register Sign In |