Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Klasa registry :( i kilka problemow z Auth i Orm
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
evoll  
View profile   Translate to Translated (View Original)
 More options Aug 30 2011, 6:39 pm
From: evoll <evollan...@gmail.com>
Date: Tue, 30 Aug 2011 15:39:00 -0700 (PDT)
Subject: Klasa registry :( i kilka problemow z Auth i Orm
Cieszac sie z wydania kolejnej wersji ochoczo zabralem sie do
sprawdzania i "cudowania" i natrafilem na kilka rzeczy, ktore troszke
irytuja.

1 Orm :
w poprzedniej wersji Sf sf_Orm laczyl sie z baza samorzutnie, zas w
tej wersji wyskakuje wyjatek db (1*) not found
pomaga na to

        $dbc = new \Spawn\Db\Connect();
        $dbc->connect();
        $dbc->register();

dodane prze uzyciem Orm'a. Printujac zawartosc klasy registry jest ona
pusta w momencie wywolywania w Db\Manager -> GetDb;

Jest to z gory zamierzone dzialanie ?

2 Auth. Podobnie jak w poprzednim wyjatek
Session was not found in the registry

#0 /srv/http/Library/Spawn/Auth.php(47): Spawn\Session::load()
#1 /srv/http/Application/View/main.php(48): Spawn\Auth->__construct()
#2 /srv/http/Library/Spawn/View.php(221): include('/srv/http/
Appli...')
#3 /srv/http/Application/Controller/News.php(38): Spawn\View->render()
#4 /srv/http/Library/Spawn/Spawn.php(85): Controller\News-

>indexAction(Object(Spawn\Request))

#5 /srv/http/index.php(33): Spawn\Spawn->init()
#6 {main}

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
evoll  
View profile   Translate to Translated (View Original)
 More options Aug 30 2011, 6:41 pm
From: evoll <evollan...@gmail.com>
Date: Tue, 30 Aug 2011 15:41:49 -0700 (PDT)
Local: Tues, Aug 30 2011 6:41 pm
Subject: Re: Klasa registry :( i kilka problemow z Auth i Orm
W przypadku Auth nie mam pojecie jak to zmusic do dzialania.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Spawnm  
View profile   Translate to Translated (View Original)
 More options Aug 31 2011, 10:08 am
From: Spawnm <spawn...@gmail.com>
Date: Wed, 31 Aug 2011 07:08:58 -0700 (PDT)
Local: Wed, Aug 31 2011 10:08 am
Subject: Re: Klasa registry :( i kilka problemow z Auth i Orm
Tak Db jak i Session nie są już singletonami.
Możesz je przekazywać przez dependency injection lub zarejestrować.
Rejestracji można dokonać np w bootstrapie:
W przypadku Db dokonujemy tego przy pomocy DbConnect z użyciem
Dbmanagera , czyli
$dbc = new \Spawn\Db\Connect();
$dbc->connect();
$dbc->register();

Przy Session możesz wykonać
$session = new \Spawn\Session();
$session -> register();

Warto zwrócić uwagę że Session posiada wbudowane funkcje
bezpieczeństwa które warto użyć przed rejestracją klasy.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »