Welcome Guest, Not a member yet? Register   Sign In
No response from ion-auth functions
#1

[eluser]bobdobbs[/eluser]
I have installed ion-auth successfully.

I want to test it's functions before I start using it.
The following code is embedded in a view. When the view load, I can see "Testing now...", and "test done".

But, none of the logic anywhere in between returns anything.

What am I missing?

Code:
<?php
  
   echo "<p>Testing now...</p>" ;
  
   if ($this->ion_auth->logged_in())
     {
       echo "<p> you are logged in </p>" ;
     }
   else     {
     "<p> you are not logged in </p>" ;
   }

   echo "<p>test done </p> ;
   ?&gt;
#2

[eluser]ghprod[/eluser]
wew .. so strange ..

btw make sure you've load ion auth library, setup database, load database library Smile

regards
#3

[eluser]bobdobbs[/eluser]
[quote author="ghprod" date="1311924155"]wew .. so strange ..

btw make sure you've load ion auth library, setup database, load database library Smile

regards[/quote]

As far as I can tell, all of those conditions are satisfied.

I've installed the ion_auth libraries.
I've installed the ion_auth tables in the database called by the application.
My database.config successfully access this database.

Also, if any one of these condition hasn't been met, then shouldn't I get an error message?
Like, I'd expect at least an error message on the page, if not in the apache error log file.
#4

[eluser]DirkZz[/eluser]
I think you have to auto-load or atleast load the library.
#5

[eluser]bobdobbs[/eluser]
[quote author="DirkZz" date="1311944228"]I think you have to auto-load or atleast load the library.[/quote]

I have autoloaded the library.

I'm pretty sure that if I hadn't loaded the library, I'd get errors.
#6

[eluser]ghprod[/eluser]
Ah i got it ... on 2nd condition you forgot to "echo" Smile

i hope its fix ur probs Smile
#7

[eluser]bobdobbs[/eluser]
[quote author="ghprod" date="1311948037"]Ah i got it ... on 2nd condition you forgot to "echo" Smile

i hope its fix ur probs Smile[/quote]


hehe...

It does fix the problem indeed.
Thanks Smile
#8

[eluser]ghprod[/eluser]
great ... than have a nice day Big Grin




Theme © iAndrew 2016 - Forum software by © MyBB