Welcome Guest, Not a member yet? Register   Sign In
BackendPro 0.6.1
#31

[eluser]adamp1[/eluser]
When a user logs in all their details are stored in a session cookie, to to get their user_id it should be something along the lines of
Code:
$this->session->userdata('id');

This isn't yet documented in the user guide but it should be soon.
#32

[eluser]zknight[/eluser]
[quote author="adamp1" date="1207773254"]When a user logs in all their details are stored in a session cookie, to to get their user_id it should be something along the lines of
Code:
$this->session->userdata('id');

This isn't yet documented in the user guide but it should be soon.[/quote]

Sweet. It automagically works! I am sure I have only been able to envision a small capacity of BeP functionality and how I might be able to use it. Looking forward to the journey! Thanks.
#33

[eluser]adamp1[/eluser]
Yes, as said not every feature has been documented fully or explained, so there is already alot in the system which people don't know about. It juts finding time to document it.
#34

[eluser]nikolaaa[/eluser]
I try 3 times to install this and after successful installation
I only see blank page.
Do you have idea where could be a problem?
#35

[eluser]Tom Glover[/eluser]
Can you check your Apache access and error log's and report back with any thing that looks like the cause. black screens are to do with missing files usually, and your error log will show this.
#36

[eluser]nikolaaa[/eluser]
Can this help:

Code:
[Fri Apr 11 18:36:14 2008] [error] [client 127.0.0.1] File does not exist: /Applications/MAMP/htdocs/backendpro/index.html
[Fri Apr 11 20:21:33 2008] [error] [client 127.0.0.1] File does not exist: /Applications/MAMP/htdocs/backendpro/index.html
[Fri Apr 11 22:04:15 2008] [notice] caught SIGTERM, shutting down
[Sat Apr 12 16:53:10 2008] [notice] Digest: generating secret for digest authentication ...
[Sat Apr 12 16:53:10 2008] [notice] Digest: done
[Sat Apr 12 16:53:10 2008] [notice] Apache/2.0.59 (Unix) PHP/4.4.4 DAV/2 mod_ssl/2.0.59 OpenSSL/0.9.7l configured -- resuming normal operations

Here is php errorlog

Code:
[12-Apr-2008 17:42:59] PHP Stack trace:
[12-Apr-2008 17:42:59] PHP   1. {main}() /Applications/MAMP/htdocs/backendpro/index.php:0
[12-Apr-2008 17:42:59] PHP   2. require_once() /Applications/MAMP/htdocs/backendpro/index.php:115
[12-Apr-2008 17:42:59] PHP   3. load_class() /Applications/MAMP/htdocs/backendpro/system/codeigniter/CodeIgniter.php:137
[12-Apr-2008 17:43:43] PHP Parse error:  syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /Applications/MAMP/htdocs/backendpro/system/application/libraries/MY_Controller.php on line 26
[12-Apr-2008 17:43:43] PHP Stack trace:
[12-Apr-2008 17:43:43] PHP   1. {main}() /Applications/MAMP/htdocs/backendpro/index.php:0
[12-Apr-2008 17:43:43] PHP   2. require_once() /Applications/MAMP/htdocs/backendpro/index.php:115
[12-Apr-2008 17:43:43] PHP   3. load_class() /Applications/MAMP/htdocs/backendpro/system/codeigniter/CodeIgniter.php:137

and log from CI

Code:
DEBUG - 2008-04-12 17:43:43 --> Config Class Initialized
DEBUG - 2008-04-12 17:43:43 --> Hooks Class Initialized
DEBUG - 2008-04-12 17:43:43 --> URI Class Initialized
DEBUG - 2008-04-12 17:43:43 --> Matchbox Class Initialized
DEBUG - 2008-04-12 17:43:43 --> Router Class Initialized
DEBUG - 2008-04-12 17:43:43 --> Output Class Initialized
DEBUG - 2008-04-12 17:43:43 --> Input Class Initialized
DEBUG - 2008-04-12 17:43:43 --> XSS Filtering completed
DEBUG - 2008-04-12 17:43:43 --> XSS Filtering completed
DEBUG - 2008-04-12 17:43:43 --> XSS Filtering completed
DEBUG - 2008-04-12 17:43:43 --> XSS Filtering completed
DEBUG - 2008-04-12 17:43:43 --> XSS Filtering completed
DEBUG - 2008-04-12 17:43:43 --> XSS Filtering completed
DEBUG - 2008-04-12 17:43:43 --> XSS Filtering completed
DEBUG - 2008-04-12 17:43:43 --> XSS Filtering completed
DEBUG - 2008-04-12 17:43:43 --> XSS Filtering completed
DEBUG - 2008-04-12 17:43:43 --> Global POST and COOKIE data sanitized
DEBUG - 2008-04-12 17:43:43 --> Language Class Initialized
#37

[eluser]adamp1[/eluser]
As said above, blank pages are to do with pages missing.

Just looking at the php errorlog. Its says that it doesn't like line 26 of MY_Controller. This is a static variable declaration. Can I ask did you try to load the app twice? Because the second stack trace dosn't have the error. Also what version of php are you using?

I would also check that your server is setup to access index.php files instead of index.html, this may be a cause to the issue.
#38

[eluser]nikolaaa[/eluser]
PHP Version 4.4.4

I try again and php error is still

Code:
[12-Apr-2008 21:56:54] PHP Parse error:  syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /Applications/MAMP/htdocs/backendpro/system/application/libraries/MY_Controller.php on line 26
[12-Apr-2008 21:56:54] PHP Stack trace:
[12-Apr-2008 21:56:54] PHP   1. {main}() /Applications/MAMP/htdocs/backendpro/index.php:0
[12-Apr-2008 21:56:54] PHP   2. require_once() /Applications/MAMP/htdocs/backendpro/index.php:117
[12-Apr-2008 21:56:54] PHP   3. load_class() /Applications/MAMP/htdocs/backendpro/system/codeigniter/CodeIgniter.php:137

I try many times to copy CI base and your pack and to be sure that all files are on place.

Do you have idea what else could be problem?
#39

[eluser]adamp1[/eluser]
OK next thing to try is forgot BackendPro, can you get a basic CodeIgniter website (i.e the default welcome controller working?) on its own. Nothing else.
#40

[eluser]nikolaaa[/eluser]
Yes yes, I'm developing long time in CI on this local server




Theme © iAndrew 2016 - Forum software by © MyBB