I tried to insert it in the session in the first action so I can retrieve it in the next action but got the message: 'You cannot serialize or unserialize PDO instances' I'm not using symfony forms in this module because this is an overly complex screen with lots of validations and calculated fields and it would be much more complicated to use. Join GitHub today. GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together. Best How To: Is there any better way to do this? Yes with symfony forms. I'm not using symfony forms in this module because this is an overly complex screen with lots of validations and calculated fields and it would be much more complicated to use the forms. As complex as you want. Using symfony forms for mapping, the view and with the symfony validation are very very powerful tools. Writing your own forms and mapping and validations is unnecessary. What's the best way of sending a PDO between actions in Symfony2? Tintin pdf in bengali. The answer is definitely not to save Doctrine entities to a session or Memcache and the reason is: // copied from the comment Think in scopes. PHP starts, does something, terminates. You can only hold data whose scope is not limited. For example a simple string has no scope. Morrissey 'Vauxhall and I' (1994) Why Don't You Find Out For Yourself. Morrissey 'Vauxhall and I' (1994) Lifeguard Sleeping, Girl Drowning. Morrissey vauxhall and i rapidshare downloader. Get Free Music Downloader APP! Morrissey - Vauxhall and I [Full Album]. Playlist: MORRISSEY - Vauxhall And I (1994 - Full Album) 4 [HD] Playlist. You can only store such type of data, but no smart PDO objects. For example doctrine entities are actually only some attributes with getters and setters, but doctrine is doing some magic to implement a proxy-pattern for them. Romancing with life dev anand pdf free download. Thus they extend some accessing logic saying if any setter or getter is invoked, load the object from the database first. If you would store them and reload them, they would have dead references to the objects. Coming from a modest framework (CI) I must say that I like the Yii aproach but I find it very hard to put the pieces together in order to create a general idea about what goes where does what. The documentation refers too many objects and links too many pieces in one phrase which makes it almost scary for Yii beginners like me. I searched for a simple thing like how to add language strings or how to edit the default language and I landed here. If you look at the page you will notice about 50 links going to 50 pages but still, my answer is nowhere to be found or maybe I’m lost in so many page relations (it’s like the wikipedia). I think you have another comment in that page from another user like me.: I understand perfectly all these concepts. But I don’t know where these things fit into YII. Don’t know if this user-provided example is any good or applies to me. I need sample code of EXACTLY STEP BY STEP like “put blablabla in /protected/configs/main.php” like in the blog guide. So I can see EXACTLY. If you want me understand how machine works don’t describe about all the different parts, point me WHERE it is in the machine, say tweak this, and then I can SEE how all the other parts are affected. I don’t know WHERE to do this stuff that you are talking about. Unfortunately I don’t know what to point as an improvement but I can definitely say that the documentation is very complex, scary and very hard to digest. At least for people starting up with Yii. Please have a look at CI’s documentation and read their pages about each thing in part. There is no LINK to NO Api etc. Each page tells you everything you need to know about something from start to finish, very simple explanations to approach new users very smoothly. Very well sectioned into “how to load”, “how to edit settings”, “Usage Examples (VERY important - this is the part where our brain understands best)”, “where should be used” and nothing else.
0 Comments
Leave a Reply. |