Thanks for your reaction. The book I am following is a new book; this book<http://www.google.nl/url?sa=t&source=web&ct=res&cd=1&ved=0CAkQFDAA&url=http%3A%2F%2Fbooks.google.nl%2Fbooks%3Fid%3DyHrEqCqmsqQC%26dq%3Dbeginning%2Bzend%2Bframework%2Ba%2Bpadilla%26printsec%3Dfrontcover%26source%3Dbl%26ots%3Dr7Jw3yShco%26sig%3DMJqVQ64eZHBr87gGfuLfL6Fejjc%26hl%3Dnl%26ei%3D8zYMS4fnEcHP-Qar3rirCA%26sa%3DX%26oi%3Dbook_result%26ct%3Dresult%26resnum%3D1%26ved%3D0CAoQ6AEwAA&ei=8zYMS4fnEcHP-Qar3rirCA&usg=AFQjCNG5FAxe5YUiHfDPgVpSFe0JOP5iyw&sig2=8CX9S9ey0Z0I5q_UEspF5A> I am also suprised that it isnt using zend_config and these kind of stuff.
if i use zend_acl and zend_auth will my session problem be solved then? On Tue, Nov 24, 2009 at 8:31 PM, Fred Jiles <[email protected]> wrote: > I would reccomend using zend_acl and zend_auth!! You will love it, and it > really isn't that hard to get going. For complex projects it will be way > better. > > I used the video tutorials on youtube by this person > http://www.youtube.com/user/integral30 > > <http://www.youtube.com/user/integral30>Or try the book > > Zend Framework 1.8 Web Application Development > http://www.packtpub.com/zend-framework-1-8-web-application-development/book > > If you want to continue the way that you are, you will need to check the > use of Zend_Session > > > On Tue, Nov 24, 2009 at 2:25 PM, Alexander Steshenko <[email protected]>wrote: > >> Not sure what means 'to set a session', but it is probably something else >> than 'to start one'. >> add session_start(); somewhere in the top of your index.php. >> >> 2. Change your book! :) >> >> >> On Tue, Nov 24, 2009 at 10:19 PM, Jigal sanders <[email protected]>wrote: >> >>> Well, >>> >>> This is according to the examples in the book. So this is a big mess with >>> all useless actions just to learn the zf. >>> 1. But the session is set in the public authenticateAction in the account >>> controller. >>> 2. The book doesn't use this in the examples. >>> 3. Probably >>> >>> >>> On Tue, Nov 24, 2009 at 8:16 PM, Alexander Steshenko >>> <[email protected]>wrote: >>> >>>> 1. Do you start your session anywhere? >>>> 2. You better use Zend_Session instead >>>> 3. The rest should be also refactored I guess >>>> >>>> >>>> On Tue, Nov 24, 2009 at 10:09 PM, Jigal sanders >>>> <[email protected]>wrote: >>>> >>>>> Hello everyone. >>>>> I am trying something in the zend Framework >>>>> I have create a project with zend_tool. >>>>> >>>>> I have 2 controllers >>>>> >>>>> 1. artist controler >>>>> 2. account controler >>>>> >>>>> Within the accountcontroller whenever the user login the >>>>> $_SESSION['id'] is set to the user id. But as soon as I leave the >>>>> accountcontroller and go to the Artist controller, my session variable is >>>>> empty. >>>>> >>>>> Here is a link to both full files http://www.codedump.be/code/435/ >>>>> >>>>> If you look at the saveArtistAction() >>>>> >>>>> Here I am always redirected to the login form: >>>>> >>>>> if(!isset($_SESSION['id'])){ >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> $this->_forward('login', 'account'); >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> } >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> I am using zf 1.9.5 >>>>> >>>>> And following the book: "Beginning zend framework." This might sound >>>>> famillair for a few of you. >>>>> >>>>> Can anyone tell me how to solve the problem? >>>>> >>>>> >>>>> Thanks for your help. >>>>> >>>>> J. Sanders >>>>> >>>> >>>> >>>> >>>> -- >>>> Alexander Steshenko | http://lcf.name >>>> >>>> >>> >>> >>> -- >>> Met vriendelijke groet, >>> >>> Jigal Sanders >>> A.J. Ernststraat 739 >>> 1082 LK Amsterdam >>> Mobiel: 06-42111489 >>> >> >> >> >> -- >> Alexander Steshenko | http://lcf.name >> >> > -- Met vriendelijke groet, Jigal Sanders A.J. Ernststraat 739 1082 LK Amsterdam Mobiel: 06-42111489
